ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getTimerInfo

Function

getTimerInfo

Server and clientTimersTrilogy Hub only

Returns a description of the timer as a table: remaining, repeats, interval, paused and resource.

Syntax

table getTimerInfo(timer timer)

Arguments

timertimer
The timer.

Returns

The description table or false.

Example

local t = setTimer(function() end, 1000, 0)
setTimerPaused(t, true)
local info = getTimerInfo(t)
print(info.paused, info.remaining, info.interval)