SetLocalClockOverride
Client export to hold a local clock for character creators and scenes
Holds the local player's clock at the requested time. Other players keep the server time. Server time and dashboard updates continue underneath the override, including when server time is frozen.
Usage
Call from your resource's client script when opening a creator or scene:
local ok = exports["FS-Weather"]:SetLocalClockOverride(12, 0, 0)
-- When the creator or scene closes:
exports["FS-Weather"]:ClearLocalClockOverride()Parameters
Prop
Type
Ownership and cleanup
Each override belongs to the calling resource. The most recently added resource override takes priority. Updating an existing override keeps its place in that order. Clearing it, or stopping its resource, restores the next active override. When none remain, the player resumes the current server time if clock sync is enabled; otherwise the clock override is cleared.
Returns
- boolean: True when accepted; false for invalid clock values or a call without a resource owner.