GetStreetNameFromHashKey
Docslocal retval = GetStreetNameFromHashKey(hash)Description
Converts the hash of a street name into a readable string. To retrieve a hash for a given (street) coordinate, see <code>GET_STREET_NAME_AT_COORD</code>.
Parameters
| Name | Type | Description |
|---|---|---|
hash | Hash | — |
Quick Snippet: Load Model Hashhash
hashModels must be loaded before use. This snippet handles requesting and releasing properly.
-- Properly load a model before spawning/using it
local modelName = "prop_barrel_01a" -- change to your model
local modelHash = GetHashKey(modelName)
RequestModel(modelHash)
while not HasModelLoaded(modelHash) do
Wait(0)
end
print("Model loaded: " .. modelName .. " (" .. modelHash .. ")")
-- Release when done:
-- SetModelAsNoLongerNeeded(modelHash)Returns
char*