a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Shared / WeatherTypeHash
Enum representing weather types as hashed integer values.
This enum provides a mapping of weather conditions to their corresponding hash values, which are typically used in environments like game development for efficiently identifying different weather states. The integer values are signed and correspond to specific weather conditions. The enum also includes a special value for unknown weather.
Example usage:
const nextWeather = GetNextWeatherTypeHashName();
if (nextWeather === WeatherTypeHash.Clear) {
console.log("Next weather is clear.");
}
Enum Values:
Unknown
: Represents an unknown weather state with a value of -1
.Blizzard
: Represents blizzard conditions, hash value 669657108
.Clear
: Represents clear weather, hash value 916995460
.Clearing
: Represents clearing weather, hash value 1840358669
.Clouds
: Represents cloudy weather, hash value 821931868
.Extrasunny
: Represents extra sunny weather, hash value -1750463879
.Foggy
: Represents foggy weather, hash value -1368164796
.Halloween
: Represents Halloween-themed weather, hash value -921030142
.Neutral
: Represents neutral weather conditions, hash value -1530260698
.Overcast
: Represents overcast weather, hash value -1148613331
.Rain
: Represents rainy weather, hash value 1420204096
.Smog
: Represents smoggy weather, hash value 282916021
.Snow
: Represents snowy weather, hash value -273223690
.Snowlight
: Represents light snow, hash value 603685163
.Thunder
: Represents stormy weather with thunder, hash value -1233681761
.Xmas
: Represents Christmas-themed weather, hash value -1429616491
.Blizzard:
669657108
Represents blizzard conditions.
shared/hashes/WeatherTypeHash.ts:40
Clear:
916995460
Represents clear weather.
shared/hashes/WeatherTypeHash.ts:42
Clearing:
1840358669
Represents clearing weather.
shared/hashes/WeatherTypeHash.ts:44
Clouds:
821931868
Represents cloudy weather.
shared/hashes/WeatherTypeHash.ts:46
Extrasunny:
-1750463879
Represents extra sunny weather.
shared/hashes/WeatherTypeHash.ts:48
Foggy:
-1368164796
Represents foggy weather.
shared/hashes/WeatherTypeHash.ts:50
Halloween:
-921030142
Represents Halloween-themed weather.
shared/hashes/WeatherTypeHash.ts:52
Neutral:
-1530260698
Represents neutral weather conditions.
shared/hashes/WeatherTypeHash.ts:54
Overcast:
-1148613331
Represents overcast weather.
shared/hashes/WeatherTypeHash.ts:56
Rain:
1420204096
Represents rainy weather.
shared/hashes/WeatherTypeHash.ts:58
Smog:
282916021
Represents smoggy weather.
shared/hashes/WeatherTypeHash.ts:60
Snow:
-273223690
Represents snowy weather.
shared/hashes/WeatherTypeHash.ts:62
Snowlight:
603685163
Represents light snow.
shared/hashes/WeatherTypeHash.ts:64
Thunder:
-1233681761
Represents stormy weather with thunder.
shared/hashes/WeatherTypeHash.ts:66
Unknown:
-1
Represents an unknown weather state.
shared/hashes/WeatherTypeHash.ts:38
Xmas:
-1429616491
Represents Christmas-themed weather.