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
stringeventName: The name of the event.booleanallowRemoteTrigger: Whether the event can be triggered remotely. (Optional)
Returns boolean
True on success, false if the event already exists.