Gameplay::getPrevWeatherTypeHashName

From RAGE Multiplayer Wiki
Revision as of 15:35, 29 April 2024 by Shr0x (talk | contribs) (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets the hash name of the previous weather type ===Return value=== *''' {{RageType|number}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getPrevWeatherTypeHashName(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const previousWeather = mp.game.gameplay.getPrevWeatherTypeHashName(); mp.console.logInfo(`Previous weather hash type is: ${previousWeather}`) </syntaxhighlight> }} ==See also...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax

Gets the hash name of the previous weather type

Return value

  • number

Syntax

mp.game.gameplay.getPrevWeatherTypeHashName();

Example

const previousWeather = mp.game.gameplay.getPrevWeatherTypeHashName();
mp.console.logInfo(`Previous weather hash type is: ${previousWeather}`)


See also