getStreetNameFromHashKey
GET_STREET_NAME_FROM_HASH_KEY0xD0EF8A959B8A4CB9The 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.
getStreetNameFromHashKey(hash: Hash): stringgetStreetNameFromHashKey(hash: Hash): stringUsage
JavaScript
const text = getStreetNameFromHashKey(hash);Lua
local text = getStreetNameFromHashKey(hash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
hash | Hash | number | integer |
Returns
string JavaScript string, Lua stringNotes
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