FearlessStudios

ClearLocalClockOverride

Client export to release the calling resource's local clock

Removes the calling resource's override created with SetLocalClockOverride. It cannot clear another resource's override.

Usage

client.lua
local cleared = exports["FS-Weather"]:ClearLocalClockOverride()

The next active resource override takes over immediately. If none remain, the player resumes current server time when clock sync is enabled, including a frozen server clock. Otherwise the native clock override is cleared. Overrides are also released when their owning resource stops.

Returns

  • boolean: True if an override was removed; false if the calling resource had no override.