[Release] Freezing weather

If you want to freeze the weather on your server;

-- Weather conditions
Citizen.CreateThread(function()
    while true do
		SetWeatherTypePersist("THUNDER")
        	SetWeatherTypeNowPersist("THUNDER")
       		SetWeatherTypeNow("THUNDER")
       		SetOverrideWeather("THUNDER")
    		Citizen.Wait(1)
	end
end)

You can set several options;

"CLEAR"
"EXTRASUNNY"
"CLOUDS"
"OVERCAST"
"RAIN"
"CLEARING"
"THUNDER"
"SMOG"
"FOGGY"
"XMAS"
"SNOWLIGHT"
"BLIZZARD"
3 Likes

Sorry to bother you. Could you give me a quick summary or detail as to what each of these functions do internally? Mostly so i can understand the importance of them all being set when they seem like theyd do about the same thing :stuck_out_tongue: Thanks in advance

Well… it’s more a thing to make sure it happens. These;

       		SetWeatherTypeNow("THUNDER")
       		SetOverrideWeather("THUNDER")

Would probably do it though.

Alright thanks for the info

That where file??? Resource? can’t find that about weather?? really that weak guide no show which file location.

You what now? Natives can only be ran in the client file. This then tells you this is a client script.

very useful script thank you

@Boss Could you make a random version for VRP gamemode?
THanks

Hah, nice!