Player/SetUserGroup

From Garry's Mod
Revision as of 06:23, 21 February 2018 by GGG KILLER (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 Player:SetUserGroup( )

Contents

Description

Sets the usergroup of the player.

Arguments

string groupName

The user group of the player.

Examples

Example

Make the player superadmin and print their group.

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

Output:

superadmin
Personal tools
Navigation