Skip to main content

Ui::getCurrentAreaNameHash

Not available on SYNC MP yet

This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Client-side JavaScript). Calling it does nothing or throws.

Client-side function

JavaScript​

Gets area name hash based on current player position.

Return Value​

  • hash number

Syntax​

mp.game.hud.getCurrentAreaNameHash();

Example​

Client-Side

const areaNameHash = mp.game.hud.getCurrentAreaNameHash();
mp.console.logWarning(`Area name hash: ${areaNameHash}`)