2025-06-07 22:50:13 -04:00
|
|
|
---@diagnostic disable: duplicate-set-field
|
2025-05-18 23:45:37 -04:00
|
|
|
if GetResourceState('cd_easytime') == 'missing' then return end
|
2025-03-10 01:35:58 -04:00
|
|
|
Weather = Weather or {}
|
|
|
|
|
|
2025-06-07 22:50:13 -04:00
|
|
|
---This will toggle the players weather/time sync
|
2025-03-10 01:35:58 -04:00
|
|
|
---@param toggle boolean
|
2025-06-07 22:50:13 -04:00
|
|
|
---@return nil
|
2025-03-10 01:35:58 -04:00
|
|
|
Weather.ToggleSync = function(toggle)
|
|
|
|
|
TriggerEvent('cd_easytime:PauseSync', toggle)
|
2025-05-10 00:01:56 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
return Weather
|