KillTimer: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
__NOTOC__  
{{Server client function}}
This function allows you to kill/halt existing timers, by passing a timerID as a parameter.
__NOTOC__
This function allows you to kill/halt existing timers.


==Syntax==  
==Syntax==  
Line 16: Line 17:
This example creates a timer then destroys it straight away.
This example creates a timer then destroys it straight away.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
myTimer = setTimer ( "delayedChat", 1000, 1, "Hello, World!" )
myTimer = setTimer ( delayedChat, 1000, 1, "Hello, World!" )
killTimer ( myTimer )
killTimer ( myTimer )
</syntaxhighlight>
</syntaxhighlight>

Revision as of 19:39, 16 August 2007