The Lab
HUD native

GET_STRING_FROM_HASH_KEY

returns const char*1 parambuild 1207

Returns the text associated with the label hash labelHash.

Signature

C
const char* GET_STRING_FROM_HASH_KEY(Hash labelHash); // 0xBD5DD5EAE2B6CE14 b1207

Parameters

#NameType
1labelHashHash

Facts

Facts about GET_STRING_FROM_HASH_KEY
Name
GET_STRING_FROM_HASH_KEY
Hash
0xBD5DD5EAE2B6CE14
Namespace
Returns
const char*
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xBD5DD5EAE2B6CE14, -- GET_STRING_FROM_HASH_KEY
  GetHashKey("name"), -- Hash labelHash
  Citizen.ResultAsString()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xBD5DD5EAE2B6CE14", // GET_STRING_FROM_HASH_KEY
  GetHashKey("name"), // Hash labelHash
  Citizen.resultAsString()
);
console.log(result)
C#
string result = Function.Call<string>((Hash)0xBD5DD5EAE2B6CE14, // GET_STRING_FROM_HASH_KEY
  (uint)API.GetHashKey("name") // Hash labelHash
);
All HUD natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.