Skip to content

SetWorldTime

Sets the world clock for everyone.

Every client’s calendar follows. The game’s own calendar only moves forward: a jump backwards is applied as a jump to the same time the next day.

SetWorldTime(hours)
Parameter Type
hours number hours since midnight, 0 .. 24 (13.5 = 13:30)

nothing

-- /time hh:mm
local h, m = args:match("^(%d+):(%d+)$")
if h then SetWorldTime(tonumber(h) + tonumber(m) / 60) end

GetWorldTime · SetTimeRatio · FormatWorldTime · the The world - clock, weather, terrain, the navmesh, the geometry group of the index