Upload files to "client"

This commit is contained in:
tanthius 2026-02-12 04:23:31 +00:00
parent 4560426d52
commit 84526ca6da
2 changed files with 32 additions and 0 deletions

15
client/time.lua Normal file
View File

@ -0,0 +1,15 @@
print("^2[time]^7 Client time sync loaded")
local h, m = 12, 0
RegisterNetEvent("time:sync", function(hour, minute)
h, m = hour, minute
NetworkOverrideClockTime(h, m, 0)
end)
CreateThread(function()
while true do
NetworkOverrideClockTime(h, m, 0)
Wait(1000)
end
end)

17
client/weather.lua Normal file
View File

@ -0,0 +1,17 @@
print("^2[weather]^7 Client weather sync loaded")
local weather = "CLEAR"
RegisterNetEvent("weather:sync", function(w)
weather = w
ClearOverrideWeather()
ClearWeatherTypePersist()
SetWeatherTypeNowPersist(weather)
end)
CreateThread(function()
while true do
SetWeatherTypeNowPersist(weather)
Wait(10000)
end
end)