PauseTimer

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
PauseTimer

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

Description

Pauses the specified timer.

Syntax

PauseTimer(timer)

Parameters

  • timer
    The timer identifier

Return Value

  • Returns true on success, false on error.

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