Garry's Mod Wiki

Player:IsUserGroup

boolean Player:IsUserGroup( string groupname )

Description

Returns true/false if the player is in specified group or not.

Arguments

1 string groupname
Group to check the player for.

Returns

1 boolean
isInUserGroup

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.

Page Links


Special Pages


Wikis

?

Render Time: 40ms

DB GetPage 7
Generate Html 3
SaveChanges (1) 14
Render Body 0
Render Sidebar 13