resetTimer
Shared
Starts a timer's countdown over, with the same interval. The repeats left do not change.
bool resetTimer(timer timer)
Parameters
| Name | Type | Description |
|---|---|---|
| timer | timer | The timer, the number setTimer returned. |
Returns
true if the timer was reset, false if it does not exist in this resource.
Example
local idle = setTimer(function()
outputDebugString("idle for 5 minutes")
end, 300000, 1)
addEventHandler("onClientKey", root, function()
resetTimer(idle)
end)