setTimerPaused | Multi Theft Auto: Wiki Skip to content

setTimerPaused

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function is used to either pause or resume a timer.

Syntax

setTimerPaused ( )

Code Examples

server

This example pauses all current timers from this resource.

-- Get a table of all current timers from this resource
local timers = getTimers ( )
-- Loop through the table of timers
for timerIndex, timerValue in ipairs( timers ) do
-- pause each timer
setTimerPaused ( timerValue, true )
end