Summary
Functions
can(action, object)shared
Checks whether the player held in the current_player global may perform an action.
Functions
On the server
Checks whether the player held in the current_player global may perform an action. Server-side variant; returns false when that global is not a valid player.
Parameters
- action String permission ID
- object String optional, defaults to
nilobject name the permission was allowed for
Returns
- Boolean
On the client
Checks whether the local player may perform an action. Client-side variant.
Parameters
- action String permission ID
- object String optional, defaults to
nilobject name the permission was allowed for
Returns
- Boolean