Garry's Mod Wiki

Player:SetUserGroup

Player:SetUserGroup

  Player:SetUserGroup( string groupName )

Description

Sets the usergroup of the player. Same as Player:SetNWString('UserGroup',string groupName).

Arguments

1 string groupName
The user group of the player.

Example

Make the player superadmin and print their group.

Entity( 1 ):SetUserGroup( "superadmin" ) print( Entity( 1 ):GetUserGroup() )
Output:
superadmin

Special Pages


Wikis

?

Render Time: 73ms

DB GetPage 55
Generate Html 2
SaveChanges (1) 7
Render Body 0
Render Sidebar 8