UnpauseTimer: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
No edit summary
 
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
function pauseTimers()
    for index, timer in ipairs(GetAllTimers()) do
        PauseTimer(timer)
    end
end
 
function resumeTimers()
    for index, timer in ipairs(GetAllTimers()) do
        UnpauseTimer(timer)
    end
end
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}

Latest revision as of 17:17, 27 May 2021

UnpauseTimer

Type: Function
Context: Server & Client
Introduced: v1.0

Description

Unpause an already paused timer with this function.

Syntax

UnpauseTimer(timer)

Parameters

  • timer
    The timer identifier

Return Value

  • Returns true on success.

Example

function pauseTimers()
    for index, timer in ipairs(GetAllTimers()) do
        PauseTimer(timer)
    end
end

function resumeTimers()
    for index, timer in ipairs(GetAllTimers()) do
        UnpauseTimer(timer)
    end
end

See also