Skip to content

Classes

Owain edited this page Oct 24, 2019 · 2 revisions

Several default Garry's Mod classes have been overridden to allow for as much default compatibility as possible.

Player

:GetUserGroup

Desc: Used to get a the target's usergroup

Returns:

Name Type
group string

:GetGroupPower

Desc: Used to get a the target's usergroup power

Returns:

Name Type
power integer

:GetGroupTable

Desc: Used to get the target's usergroup table

Returns:

Name Type
group table

:IsAdmin

Desc: Used to get if the target is an admin

:IsSuperadmin

Desc: Used to get if the target is a superadmin

:IsUserGroup

Desc: Used to check if the target is the provided usergroup

Arguments:

Argument Type
group string

Returns:

Name Type
isgroup boolean

:HasPower

Desc: Used to check if the target has the provided power

Arguments:

Argument Type
group integer

Returns:

Name Type
haspower boolean

:SetUserGroup

Desc: Used to set an online user's active rank

Arguments:

Argument Type
group string
Clone this wiki locally