GetEventHandlers: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
{{Server client function}}
{{Server client function}}
{{New feature/item|4.0132|1.3.1|4973|
{{New feature/item|4.0132|1.3.1|4973|
This function gets the attached functions from the event and attached to element.
This function gets the attached functions from the element attached to event.
}}
}}



Revision as of 08:42, 17 February 2013

ADDED/UPDATED IN VERSION 1.3.1 r4973:

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

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.