HUDClient

getStreetNameFromHashKey

GET_STREET_NAME_FROM_HASH_KEY0xD0EF8A959B8A4CB9

The GTA V native GET_STREET_NAME_FROM_HASH_KEY of the HUD namespace, as LS:MP client scripts call it: the global function getStreetNameFromHashKey, in JavaScript and in Lua.

SignatureJavaScript
getStreetNameFromHashKey(hash: Hash): string
SignatureLua
getStreetNameFromHashKey(hash: Hash): string

Usage

JavaScript
const text = getStreetNameFromHashKey(hash);
Lua
local text = getStreetNameFromHashKey(hash)

Parameters

ParameterTypeJavaScriptLua
hashHashnumberinteger

Returns

string JavaScript string, Lua string

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

This functions converts the hash of a street name into a readable string.

For how to get the hashes, see getStreetNameAtCoord.

Reference

Namespace
HUD HUD
In the game
const char* GET_STREET_NAME_FROM_HASH_KEY(Hash hash)
Hash
0xD0EF8A959B8A4CB9

Open in the interactive natives reference