CancelLatentEvent: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
m (change example)
Line 1: Line 1:
{{Needs_Example}}
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}
Line 26: Line 25:


==Example==
==Example==
<syntaxhighlight lang="lua">
{{Example}}
--TODO
</syntaxhighlight>


==Requirements==
==Requirements==

Revision as of 01:28, 13 September 2015

Stops a latent event from completing

Syntax

Click to collapse [-]
Server
bool cancelLatentEvent( player thePlayer, int handle )

Required Arguments

  • thePlayer: The player who is receiving the event.
  • handle: A handle previous got from getLatentEventHandles.
Click to collapse [-]
Client
bool cancelLatentEvent( int handle )

Required Arguments

Returns

Returns a true if the latent event was successfully cancelled, or false if it was not

Example

Accessories-text-editor.png Script Example Missing Function CancelLatentEvent needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.
-- TODO


Requirements

This template will be deleted.

See Also