function addEvent (shared-side)
Available since version: 0.3.0
This function will register a new custom event with specified name.
Declaration
boolean addEvent(string eventName, bool allowRemoteTrigger)
Parameters
stringeventName: The name of the event.boolallowRemoteTrigger: Whether the event can be triggered remotely. (Optional)
Returns boolean
True on success, false if the event already exists.