Upload files to "client"
This commit is contained in:
parent
4560426d52
commit
84526ca6da
15
client/time.lua
Normal file
15
client/time.lua
Normal 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
17
client/weather.lua
Normal 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)
|
||||||
Loading…
Reference in New Issue
Block a user