Skip to content

function addEvent (shared-side)

Available since version: 0.3.0

Register a new custom event with specified name.

Declaration

boolean addEvent(string eventName, boolean allowRemoteTrigger)

Parameters

  • string eventName: The name of the event.
  • boolean allowRemoteTrigger: Whether the event can be triggered remotely. (Optional)

Returns boolean

True on success, false if the event already exists.