GetLatentEventHandles: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Server client function}} Gets the currently queued latent events. The last one in the table is always the latest event queued. Each returned handle can be used with [...")
 
No edit summary
Line 4: Line 4:


==Syntax==
==Syntax==
Server:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
table getLatentEventHandles ( element player )
table getLatentEventHandles ( element player )
</syntaxhighlight>
Client:
<syntaxhighlight lang="lua">
table getLatentEventHandles ()
</syntaxhighlight>
</syntaxhighlight>



Revision as of 10:30, 29 January 2012

Gets the currently queued latent events. The last one in the table is always the latest event queued. Each returned handle can be used with getLatentEventStatus or cancelLatentEvent

Syntax

Server:

table getLatentEventHandles ( element player )

Client:

table getLatentEventHandles ()

Required Arguments

  • player: (Only required if called on the server) The player who is receiving the events.

Returns

Returns a table of handles or false if invalid arguments were passed.

Example

--TODO

See Also