CancelLatentEvent

From Multi Theft Auto: Wiki

Jump to: navigation, search

Stops a latent event from completing

Syntax

Server:

table cancelLatentEvent( player thePlayer, int handle )

Client:

table cancelLatentEvent( int handle )

Required Arguments

  • thePlayer: (Only required if called on the server) The player who is receiving the event.
  • handle: A handle previous got from getLatentEventHandles.

Returns

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

Example

--TODO

Requirements

Minimum supported server 1.3.0-9.03772
Minimum supported client 1.3.0-9.03772
Note: Using this function requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section.

See Also

FROM VERSION 1.3.1 ONWARDS