Skip to main content

IsAllowed

Sets whether or not the event is allowed to run.

Syntax

IsAllowed isAllowed

Arguments

NameRequiredTypeDescription
isAllowedYesbool (true or false) value

Details

In order for it to have any impact, the script in which the method is used must be triggered by an event, and that event must be cancellable.

Validated examples using this method

On a running server

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