Skip to main content

Registering

Runs before UCR registers a custom role. Use IsAllowed false to stop the registration.

Start a script section​

!-- OnUCR Registering
-- require *evRole $evIsAllowed

# Add your instructions here
  • Group: CustomRoleEvents
  • Cancellable: Yes
  • Event data: CustomRoleRegisteringEventArgs

Injected variables​

VariableTypeDescription
*evRolereference to UCRRole objectThe UCR role involved in this event.
$evIsAllowedbool valueWhether UCR will continue the action.