Skip to main content

UCR.SetRole

Optional integration

This method requires UncomplicatedCustomRoles.

Sets the UCR role of a player.

Syntax​

UCR.SetRole @player role_id

Arguments​

NameRequiredTypeDescription
playerYesPlayer value e.g. @player, with EXACTLY 1 player.
role idYesAny 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.