fivem-ts

a library to speed up the development of Fivem scripts and frameworks


Project maintained by Purpose-Dev Hosted on GitHub Pages — Theme by mattgraham

fivem-ts - Documentation v0.7.5Docs


fivem-ts - Documentation v0.7.5 / Shared / WeatherTypeHash

Enumeration: 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:

Enumeration Members

Blizzard

Blizzard: 669657108

Represents blizzard conditions.

Defined in

shared/hashes/WeatherTypeHash.ts:40


Clear

Clear: 916995460

Represents clear weather.

Defined in

shared/hashes/WeatherTypeHash.ts:42


Clearing

Clearing: 1840358669

Represents clearing weather.

Defined in

shared/hashes/WeatherTypeHash.ts:44


Clouds

Clouds: 821931868

Represents cloudy weather.

Defined in

shared/hashes/WeatherTypeHash.ts:46


Extrasunny

Extrasunny: -1750463879

Represents extra sunny weather.

Defined in

shared/hashes/WeatherTypeHash.ts:48


Foggy

Foggy: -1368164796

Represents foggy weather.

Defined in

shared/hashes/WeatherTypeHash.ts:50


Halloween

Halloween: -921030142

Represents Halloween-themed weather.

Defined in

shared/hashes/WeatherTypeHash.ts:52


Neutral

Neutral: -1530260698

Represents neutral weather conditions.

Defined in

shared/hashes/WeatherTypeHash.ts:54


Overcast

Overcast: -1148613331

Represents overcast weather.

Defined in

shared/hashes/WeatherTypeHash.ts:56


Rain

Rain: 1420204096

Represents rainy weather.

Defined in

shared/hashes/WeatherTypeHash.ts:58


Smog

Smog: 282916021

Represents smoggy weather.

Defined in

shared/hashes/WeatherTypeHash.ts:60


Snow

Snow: -273223690

Represents snowy weather.

Defined in

shared/hashes/WeatherTypeHash.ts:62


Snowlight

Snowlight: 603685163

Represents light snow.

Defined in

shared/hashes/WeatherTypeHash.ts:64


Thunder

Thunder: -1233681761

Represents stormy weather with thunder.

Defined in

shared/hashes/WeatherTypeHash.ts:66


Unknown

Unknown: -1

Represents an unknown weather state.

Defined in

shared/hashes/WeatherTypeHash.ts:38


Xmas

Xmas: -1429616491

Represents Christmas-themed weather.

Defined in

shared/hashes/WeatherTypeHash.ts:68