Garry's Mod Wiki

Player:SetUserGroup

  Player:SetUserGroup( string groupName )

Description

Sets the usergroup of the player.

Arguments

1 string groupName
The user group of the player.

Example

Make the player superadmin and print their group.

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