2025-06-07 22:50:13 -04:00
|
|
|
---@diagnostic disable: duplicate-set-field
|
2025-05-18 23:45:37 -04:00
|
|
|
if GetResourceState('qb-weathersync') == 'missing' then return end
|
2025-03-10 02:08:52 -04:00
|
|
|
Weather = Weather or {}
|
2025-01-08 06:33:31 -05:00
|
|
|
|
2025-06-07 22:50:13 -04:00
|
|
|
---This will toggle the players weather/time sync
|
2025-03-03 01:37:29 -05:00
|
|
|
---@param toggle boolean
|
2025-06-07 22:50:13 -04:00
|
|
|
---@return nil
|
2025-01-08 06:33:31 -05:00
|
|
|
Weather.ToggleSync = function(toggle)
|
|
|
|
|
if toggle then
|
|
|
|
|
TriggerEvent("qb-weathersync:client:EnableSync")
|
|
|
|
|
else
|
|
|
|
|
TriggerEvent("qb-weathersync:client:DisableSync")
|
|
|
|
|
end
|
2025-05-10 00:01:56 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
return Weather
|