qb/qbx weathersync
1. Open the file
2. Synchronize weather and time
RegisterNetEvent('qb-weathersync:server:RequestStateSync', function()
-- Your existing code...
-- ===== VMS Needs =====
local hour = math.floor(((baseTime+timeOffset)/60)%24)
local minute = math.floor((baseTime+timeOffset)%60)
TriggerEvent('vms_needs:temperature:update', CurrentWeather, hour, minute)
-- =====================
end)3. Synchronize time updates
4. Synchronize weather updates
5. Initiate the first synchronization after the server starts up
Last updated