GetEventHandlers

From Multi Theft Auto: Wiki
Revision as of 08:40, 17 February 2013 by Kenix1 (talk | contribs) (Created page with "__NOTOC__ {{Server client function}} {{New feature/item|4.0132|1.3.1|4973| This function gets the attached functions to the event attached to element. }} ==Syntax== <syntaxhighlight lang="lua"> ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.3.1 r4973:

This function gets the attached functions to the event attached to element.

Syntax

table getEventHandlers ( string eventName, element attachedTo )


Required Arguments

  • eventName: The name of the event. For example ( "onPlayerWasted" ).
  • attachedTo: The element attached to.

Returns

Returns table with attached functions, false otherwise.