ENH - refine native weather presentation

This commit is contained in:
Type
2026-08-08 18:57:56 +02:00
parent 921a481510
commit 897aab9ebb
17 changed files with 140 additions and 192 deletions
+2
View File
@@ -257,10 +257,12 @@ end
RegisterNUICallback("weather:get", function(_, cb)
local coords = GetEntityCoords(PlayerPedId())
local weather_hash = GetPrevWeatherTypeHashName()
local next_weather_hash = GetNextWeatherTypeHashName()
cb({
success = true,
data = {
condition = weather_types[weather_hash] or "clear",
nextCondition = weather_types[next_weather_hash] or weather_types[weather_hash] or "clear",
region = weather_region(coords),
clock = {
year = GetClockYear(),