Garry's Mod Wiki

Garry's Mod Wiki

  boolean Player:IsUserGroup( string groupName )

Description

Returns whether the player is in specified group or not. See Player:GetUserGroup for a way to get player's user group.

Arguments

1 string groupName
Group to check the player for.

Returns

1 boolean
true if the player has the given user group.

Example

Prints in the players console "yes, I'm awesome!" if he's in the superadmin group.

if ( Entity( 1 ):IsUserGroup( "superadmin" ) ) then print( "Yes, I'm awesome!" ) end
Output: "Yes, I'm awesome!" in console.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...