hasRole
Checks if the player has a role.
Learn more on Roles and Permissions.
Syntax
player.hasRole(role);
Parameters
| Name | Type | Description |
|---|---|---|
role | string | The role to check for the player. |
Returns
boolean- Whether the player has the role.
Example
player.hasRole('role_2jd1TjKpCYjhFKDhw8hmTH');
Available on: Client Server