-
Notifications
You must be signed in to change notification settings - Fork 6
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.
Desc: Used to get a the target's usergroup
Returns:
| Name | Type |
|---|---|
| group | string |
Desc: Used to get a the target's usergroup power
Returns:
| Name | Type |
|---|---|
| power | integer |
Desc: Used to get the target's usergroup table
Returns:
| Name | Type |
|---|---|
| group | table |
Desc: Used to get if the target is an admin
Desc: Used to get if the target is a superadmin
Desc: Used to check if the target is the provided usergroup
Arguments:
| Argument | Type |
|---|---|
| group | string |
Returns:
| Name | Type |
|---|---|
| isgroup | boolean |
Desc: Used to check if the target has the provided power
Arguments:
| Argument | Type |
|---|---|
| group | integer |
Returns:
| Name | Type |
|---|---|
| haspower | boolean |
Desc: Used to set an online user's active rank
Arguments:
| Argument | Type |
|---|---|
| group | string |