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 / WeatherEnum
Enum representing various weather types as string values.
This enum is used to manipulate and identify different weather conditions in environments such as game development, simulations, or any application that requires weather state management. Each value in this enum corresponds to a specific weather condition, represented by a descriptive string.
Example usage:
if (IsNextWeatherType(WeatherEnum.Clear)) {
console.log("The next weather is clear.");
}
Enum Values:
Unknown
: Represents an unknown weather state, value -1
.Blizzard
: Represents blizzard conditions, value 'BLIZZARD'
.Clear
: Represents clear weather, value 'CLEAR'
.Clearing
: Represents clearing weather, value 'CLEARING'
.Clouds
: Represents cloudy weather, value 'CLOUDS'
.Extrasunny
: Represents extra sunny weather, value 'EXTRASUNNY'
.Foggy
: Represents foggy weather, value 'FOGGY'
.Halloween
: Represents Halloween-themed weather, value 'HALLOWEEN'
.Neutral
: Represents neutral weather conditions, value 'NEUTRAL'
.Overcast
: Represents overcast weather, value 'OVERCAST'
.Rain
: Represents rainy weather, value 'RAIN'
.Smog
: Represents smoggy weather, value 'SMOG'
.Snow
: Represents snowy weather, value 'SNOW'
.Snowlight
: Represents light snow, value 'SNOWLIGHT'
.Thunder
: Represents stormy weather with thunder, value 'THUNDER'
.Xmas
: Represents Christmas-themed weather, value 'XMAS'
.Blizzard:
"BLIZZARD"
Represents blizzard conditions.
shared/enums/WeatherEnum.ts:37
Clear:
"CLEAR"
Represents clear weather.
shared/enums/WeatherEnum.ts:39
Clearing:
"CLEARING"
Represents clearing weather.
shared/enums/WeatherEnum.ts:41
Clouds:
"CLOUDS"
Represents cloudy weather.
shared/enums/WeatherEnum.ts:43
Extrasunny:
"EXTRASUNNY"
Represents extra sunny weather.
shared/enums/WeatherEnum.ts:45
Foggy:
"FOGGY"
Represents foggy weather.
shared/enums/WeatherEnum.ts:47
Halloween:
"HALLOWEEN"
Represents Halloween-themed weather.
shared/enums/WeatherEnum.ts:49
Neutral:
"NEUTRAL"
Represents neutral weather conditions.
shared/enums/WeatherEnum.ts:51
Overcast:
"OVERCAST"
Represents overcast weather.
shared/enums/WeatherEnum.ts:53
Rain:
"RAIN"
Represents rainy weather.
shared/enums/WeatherEnum.ts:55
Smog:
"SMOG"
Represents smoggy weather.
shared/enums/WeatherEnum.ts:57
Snow:
"SNOW"
Represents snowy weather.
shared/enums/WeatherEnum.ts:59
Snowlight:
"SNOWLIGHT"
Represents light snow.
shared/enums/WeatherEnum.ts:61
Thunder:
"THUNDER"
Represents stormy weather with thunder.
shared/enums/WeatherEnum.ts:63
Unknown:
-1
Represents an unknown weather state.
shared/enums/WeatherEnum.ts:35
Xmas:
"XMAS"
Represents Christmas-themed weather.