UCR.SetRole
Optional integration
This method requires UncomplicatedCustomRoles.
Sets the UCR role of a player.
Syntax
UCR.SetRole @player role_id
Arguments
| Name | Required | Type | Description |
|---|---|---|---|
player | Yes | Player value e.g. @player, with EXACTLY 1 player. | |
role id | Yes | Any whole number |
Possible errors
- The role ID is not registered in UCR.
On a running server
Use serhelp UCR.SetRole to inspect the reference generated by your installed SER version.