housing und dj

This commit is contained in:
Nordi98 2025-06-09 23:54:46 +02:00
parent 112c7b1761
commit 10a5d168d4
731 changed files with 506993 additions and 0 deletions

View file

@ -0,0 +1,18 @@
-- Function to manage weather synchronization
function WeatherSyncEvent(isSyncEnabled)
if isSyncEnabled then
-- Disable weather synchronization (entering a house)
TriggerEvent('qb-weathersync:client:DisableSync')
TriggerEvent('cd_easytime:PauseSync', true)
TriggerEvent('vSync:toggle', true)
TriggerEvent('av_weather:freeze', true, 23, 0, "CLEAR", false, false, false)
Debug("Weather synchronization disabled.")
else
-- Enable weather synchronization (exiting a house)
TriggerEvent('qb-weathersync:client:EnableSync')
TriggerEvent('cd_easytime:PauseSync', false)
TriggerEvent('vSync:toggle', false)
TriggerEvent('av_weather:freeze', false)
Debug("Weather synchronization enabled.")
end
end