GetWorldTime
The world clock, in hours since midnight.
Syntax
Section titled “Syntax”GetWorldTime()Returns
Section titled “Returns”number - 0 .. 24; 13.5 = 13:30
Example
Section titled “Example”if GetWorldTime() > 20 or GetWorldTime() < 5 then GivePlayerItem(pid, "torch_weapon") endSee also
Section titled “See also”SetWorldTime · FormatWorldTime · GetTimeRatio · the The world - clock, weather, terrain, the navmesh, the geometry group of the index
