SetTimerPaused: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Server client function}} __NOTOC__ {{New feature/item|3.0161|1.6.0|22701| This function allows you to pause existing running timers and resume existing paused ti...") |
No edit summary |
||
Line 2: | Line 2: | ||
__NOTOC__ | __NOTOC__ | ||
{{New feature/item|3.0161|1.6.0|22701| | {{New feature/item|3.0161|1.6.0|22701| | ||
This function | This function is used to either pause or resume a timer. | ||
}} | }} | ||
Line 9: | Line 9: | ||
bool setTimerPaused ( timer theTimer, bool paused ) | bool setTimerPaused ( timer theTimer, bool paused ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP|| | {{OOP|||paused}} | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''theTimer:''' The [[timer]] you wish to pause or resume. | *'''theTimer:''' The [[timer]] you wish to pause or resume. | ||
*'''paused:''' | *'''paused:''' a [[boolean]] value representing whether the timer should be paused or not. To pause the timer, use ''true''. | ||
===Returns=== | ===Returns=== |
Latest revision as of 10:26, 6 September 2024
Syntax
bool setTimerPaused ( timer theTimer, bool paused )
OOP Syntax Help! I don't understand this!
- Variable: .paused
Required Arguments
- theTimer: The timer you wish to pause or resume.
- paused: a boolean value representing whether the timer should be paused or not. To pause the timer, use true.
Returns
Returns true if the timer was successfully paused or resumed, false if no such timer existed.
Example
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
See Also
- addDebugHook
- base64Decode
- base64Encode
- debugSleep
- decodeString
- encodeString
- fromJSON
- generateKeyPair
- getColorFromString
- getDevelopmentMode
- getDistanceBetweenPoints2D
- getDistanceBetweenPoints3D
- getEasingValue
- getNetworkStats
- getNetworkUsageData
- getPerformanceStats
- getRealTime
- getTickCount
- getTimerDetails
- getTimers
- getFPSLimit
- getUserdataType
- getVersion
- gettok
- isTransferBoxVisible
- setTransferBoxVisible
- hash
- inspect
- interpolateBetween
- iprint
- isOOPEnabled
- isTimer
- killTimer
- md5
- passwordHash
- passwordVerify
- pregFind
- pregMatch
- pregReplace
- removeDebugHook
- resetTimer
- setDevelopmentMode
- setFPSLimit
- setTimer
- ref
- deref
- sha256
- split
- teaDecode
- teaEncode
- toJSON
- tocolor
- getProcessMemoryStats
- utfChar
- utfCode
- utfLen
- utfSeek
- utfSub
- bitAnd
- bitNot
- bitOr
- bitXor
- bitTest
- bitLRotate
- bitRRotate
- bitLShift
- bitRShift
- bitArShift
- bitExtract
- bitReplace