FearlessStudios

setTime

Server export to set synced time

setTime

Use this to set the game clock for the server. It returns false if real-time sync is on.

Usage

server.lua
local ok = exports["FS-Weather"]:setTime(18, 30)

Parameters

Prop

Type

Returns

  • boolean: True when time was updated.