This commit is contained in:
Nordi98 2025-08-06 16:37:06 +02:00
parent 510e3ffcf2
commit f43cf424cf
305 changed files with 34683 additions and 0 deletions

View file

@ -0,0 +1,11 @@
---@diagnostic disable: duplicate-set-field
Weather = Weather or {}
---This will toggle the players weather/time sync
---@param toggle boolean
---@return nil
Weather.ToggleSync = function(toggle)
end
return Weather

View file

@ -0,0 +1,12 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('cd_easytime') == 'missing' then return end
Weather = Weather or {}
---This will toggle the players weather/time sync
---@param toggle boolean
---@return nil
Weather.ToggleSync = function(toggle)
TriggerEvent('cd_easytime:PauseSync', toggle)
end
return Weather

View file

@ -0,0 +1,16 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('qb-weathersync') == 'missing' then return end
Weather = Weather or {}
---This will toggle the players weather/time sync
---@param toggle boolean
---@return nil
Weather.ToggleSync = function(toggle)
if toggle then
TriggerEvent("qb-weathersync:client:EnableSync")
else
TriggerEvent("qb-weathersync:client:DisableSync")
end
end
return Weather

View file

@ -0,0 +1,12 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('Renewed-Weathersync') == 'missing' then return end
Weather = Weather or {}
---This will toggle the players weather/time sync
---@param toggle boolean
---@return nil
Weather.ToggleSync = function(toggle)
LocalPlayer.state.syncWeather = toggle
end
return Weather