WeatherID

From SA-MP Wiki

Jump to: navigation, search

To be used with SetWeather and SetPlayerWeather.

0 = EXTRASUNNY_LA
1 = SUNNY_LA
2 = EXTRASUNNY_SMOG_LA
3 = SUNNY_SMOG_LA
4 = CLOUDY_LA
5 = SUNNY_SF
6 = EXTRASUNNY_SF
7 = CLOUDY_SF
8 = RAINY_SF
9 = FOGGY_SF
10 = SUNNY_VEGAS
11 = EXTRASUNNY_VEGAS (heat waves)
12 = CLOUDY_VEGAS
13 = EXTRASUNNY_COUNTRYSIDE
14 = SUNNY_COUNTRYSIDE
15 = CLOUDY_COUNTRYSIDE
16 = RAINY_COUNTRYSIDE
17 = EXTRASUNNY_DESERT
18 = SUNNY_DESERT
19 = SANDSTORM_DESERT
20 = UNDERWATER (greenish, foggy)

There are 256 different weather IDs (0-255), values higher than 255 or lower than 0 are turned into remainder of the division by 256 (for example, weather ID 300 is the same as ID 44, because 300 % 256 = 44). Weather IDs 0-22 appear to work correctly but other IDs result in strange effects such as pink sky and flashing textures during certain times.

Image:32px-Ambox_warning_orange.png

Note

Some weathers appear very different at certain times. You can see here what different weather types look like at different times.


Image:32px-Ambox_warning_orange.png

Note

GTA San Andreas weather gallery explains the situation with weather IDs better than any words. You can also use it if you wish to view weathers at certain times and look for problematic weather that cause strange effects
Personal tools
Navigation
Toolbox