2025-01-08 06:33:31 -05:00
|
|
|
if GetResourceState('qb-weathersync') ~= 'started' then return end
|
2025-03-10 02:08:52 -04:00
|
|
|
Weather = Weather or {}
|
2025-01-08 06:33:31 -05:00
|
|
|
|
2025-03-03 01:37:29 -05:00
|
|
|
---comment
|
|
|
|
|
---@param toggle boolean
|
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
|
|
|
|
|
end
|