Skip to main content

UCR.GetRole

Optional integration

This method requires UncomplicatedCustomRoles.

Returns a reference to the UCR role a player has.

Syntax

UCR.GetRole @player

Returns

reference value

Arguments

NameRequiredTypeDescription
playerYesPlayer value e.g. @player, with EXACTLY 1 player.

Details

Be sure to verify if the player has a role. The reference will be INVALID when the player doesn't have a role.

On a running server

Use serhelp UCR.GetRole to inspect the reference generated by your installed SER version.