Preskoči na vsebino

Weather IDs

A list of weather IDs used by SetWeather and SetPlayerWeather functions.

IDNameTypeDescription (in singleplayer)
0EXTRASUNNY_LABlue skiesLos Santos specific weather
1SUNNY_LABlue skiesLos Santos specific weather
2EXTRASUNNY_SMOG_LABlue skiesLos Santos specific weather
3SUNNY_SMOG_LABlue skiesLos Santos specific weather
4CLOUDY_LABlue skiesLos Santos specific weather
5SUNNY_SFBlue skiesSan Fierro specific weather
6EXTRASUNNY_SFBlue skiesSan Fierro specific weather
7CLOUDY_SFBlue skiesSan Fierro specific weather
8RAINY_SFStormySan Fierro specific weather
9FOGGY_SFCloudy and foggySan Fierro specific weather
10SUNNY_VEGASClear blue skyLas Venturas specific weather
11EXTRASUNNY_VEGASHeat wavesLas Venturas specific weather
12CLOUDY_VEGASDull, colourlessLas Venturas specific weather
13EXTRASUNNY_COUNTRYSIDEDull, colourlessCountryside specific weather
14SUNNY_COUNTRYSIDEDull, colourlessCountryside specific weather
15CLOUDY_COUNTRYSIDEDull, colourlessCountryside specific weather
16RAINY_COUNTRYSIDEDull, cloudy, rainyCountryside specific weather
17EXTRASUNNY_DESERTHeat wavesBone County specific weather
18SUNNY_DESERTHeat wavesBone County specific weather
19SANDSTORM_DESERTSandstormBone County specific weather
20UNDERWATERGreenish, foggyUsed internally when camera is underwater
21EXTRACOLOURS_1Very dark, gradiented skyline, purpleWeather used in interiors
22EXTRACOLOURS_2Very dark, gradiented skyline, purpleWeather used in interiors

There are 23 different weather IDs (0-22), the last two of which being the extra colour weather types. However, the game does not feature any range checking for weather IDs and thus you can use weather IDs upto 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 works correctly but other IDs result undefined behavior: strange effects such as pink sky and flashing textures during certain times.

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

  • 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