Skip to main content

UCR.RemoveRole

Optional integration

This method requires UncomplicatedCustomRoles.

Removes a player's UCR role.

Syntax​

UCR.RemoveRole @player reset_role?

Returns​

bool value

Arguments​

NameRequiredTypeDescription
playerYesPlayer value e.g. @player, with EXACTLY 1 player.
reset roleNobool (true or false) valueDefault: 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.