KillTimer
Stops a timer.
Syntax
Section titled “Syntax”KillTimer(id)| Parameter | Type | |
|---|---|---|
id |
number | the id SetTimer returned |
Returns
Section titled “Returns”boolean - true when there was such a timer
Example
Section titled “Example”local heartbeat = SetTimer(function() Log("alive") end, 60000, true)-- ...KillTimer(heartbeat)See also
Section titled “See also”SetTimer · the Server and timers group of the index
