structura foldere
mutat kq- folders in un singur folder [kq]
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
--[[
|
||||
Here you have the weather tyme configuration, you can modify it or even
|
||||
create your own! In case your inventory is not here, you can ask the
|
||||
creator to create a file following this example and add it!
|
||||
]]
|
||||
|
||||
if Config.Weather ~= 'cd_easytime' then
|
||||
return
|
||||
end
|
||||
|
||||
RegisterNetEvent('advancedgarages:GetWeatherSync')
|
||||
AddEventHandler('advancedgarages:GetWeatherSync', function(bool, time)
|
||||
if bool then
|
||||
Wait(150)
|
||||
TriggerEvent('cd_easytime:PauseSync', true)
|
||||
NetworkOverrideClockTime(time, 0, 0)
|
||||
ClearOverrideWeather()
|
||||
ClearWeatherTypePersist()
|
||||
SetWeatherTypePersist('CLEAR')
|
||||
SetWeatherTypeNow('CLEAR')
|
||||
SetWeatherTypeNowPersist('CLEAR')
|
||||
else
|
||||
Wait(150)
|
||||
TriggerEvent('cd_easytime:PauseSync', false)
|
||||
Debug('Time was resynchronized to the original')
|
||||
end
|
||||
end)
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
--[[
|
||||
Here you have the weather tyme configuration, you can modify it or even
|
||||
create your own! In case your inventory is not here, you can ask the
|
||||
creator to create a file following this example and add it!
|
||||
]]
|
||||
|
||||
if Config.Weather ~= 'qb-weathersync' then
|
||||
return
|
||||
end
|
||||
|
||||
RegisterNetEvent('advancedgarages:GetWeatherSync')
|
||||
AddEventHandler('advancedgarages:GetWeatherSync', function(bool, time)
|
||||
if bool then
|
||||
Wait(150)
|
||||
TriggerEvent('qb-weathersync:client:DisableSync')
|
||||
NetworkOverrideClockTime(time, 0, 0)
|
||||
ClearOverrideWeather()
|
||||
ClearWeatherTypePersist()
|
||||
SetWeatherTypePersist('CLEAR')
|
||||
SetWeatherTypeNow('CLEAR')
|
||||
SetWeatherTypeNowPersist('CLEAR')
|
||||
else
|
||||
Wait(150)
|
||||
TriggerEvent('qb-weathersync:client:EnableSync')
|
||||
Debug('Time was resynchronized to the original')
|
||||
end
|
||||
end)
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
--[[
|
||||
Here you have the weather tyme configuration, you can modify it or even
|
||||
create your own! In case your inventory is not here, you can ask the
|
||||
creator to create a file following this example and add it!
|
||||
]]
|
||||
|
||||
if Config.Weather ~= 'vSync' then
|
||||
return
|
||||
end
|
||||
|
||||
RegisterNetEvent('advancedgarages:GetWeatherSync')
|
||||
AddEventHandler('advancedgarages:GetWeatherSync', function(bool, time)
|
||||
if bool then
|
||||
Wait(150)
|
||||
TriggerEvent('vSync:updateWeather', 'EXTRASUNNY', false)
|
||||
NetworkOverrideClockTime(time, 0, 0)
|
||||
ClearOverrideWeather()
|
||||
ClearWeatherTypePersist()
|
||||
SetWeatherTypePersist('CLEAR')
|
||||
SetWeatherTypeNow('CLEAR')
|
||||
SetWeatherTypeNowPersist('CLEAR')
|
||||
else
|
||||
Wait(150)
|
||||
TriggerEvent('vSync:toggle', true)
|
||||
TriggerServerEvent('vSync:requestSync')
|
||||
Debug('Time was resynchronized to the original')
|
||||
end
|
||||
end)
|
||||
Reference in New Issue
Block a user