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.
Syntax
Section titled “Syntax”SetWorldTime(hours)| Parameter | Type | |
|---|---|---|
hours |
number | hours since midnight, 0 .. 24 (13.5 = 13:30) |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”-- /time hh:mmlocal h, m = args:match("^(%d+):(%d+)$")if h then SetWorldTime(tonumber(h) + tonumber(m) / 60) endSee also
Section titled “See also”GetWorldTime · SetTimeRatio · FormatWorldTime · the The world - clock, weather, terrain, the navmesh, the geometry group of the index
