ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setTimeFrozen

Function

setTimeFrozen

ServerWorldTrilogy Hub only

Stops or restarts the game clock for every player. A stopped clock keeps a constant time of day (e.g. eternal noon on a racing server). setTime can still change the hour.

Syntax

bool setTimeFrozen([bool frozen = true])

Arguments

frozenbool, optional = true
true = the clock stands still, false = it runs.

Returns

true on success.

Example

setTime(12, 0)
setTimeFrozen(true)

See also