UCR.RemoveRole
Optional integration
This method requires UncomplicatedCustomRoles.
Removes a player's UCR role.
Syntax
UCR.RemoveRole @player reset_role?
Returns
bool value
Arguments
| Name | Required | Type | Description |
|---|---|---|---|
player | Yes | Player value e.g. @player, with EXACTLY 1 player. | |
reset role | No | bool (true or false) value | Default: keep the current base role |
Details
Returns false when the player did not have a UCR role. Enable reset role to discard health and other changes made by the role.
On a running server
Use serhelp UCR.RemoveRole to inspect the reference generated by your installed SER version.