bindEventHandler

From GTA Connected
Revision as of 19:57, 8 May 2020 by Mex (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

bindEventHandler

Signature: void bindEventHandler(string eventName, handle source, function handler)

Usage: add a handler to call when an event occurs for the source item

Parameters

string eventName The name of the event, case-insensitive.
handle source The source element.
function handler The scripting function to call when the event occurs for the source element.

Return

void

On failure: void