ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. isEventAdded

Function

isEventAdded

Server and clientEventsTrilogy Hub only

Checks whether an event with this name exists (built in or added with addEvent).

Syntax

bool isEventAdded(string eventName)

Arguments

eventNamestring
Event name.

Returns

true when it exists.

Example

if not isEventAdded("onJobFinished") then addEvent("onJobFinished") end

See also