The Lab
MISC native

GET_HASH_KEY

returns Hash1 parambuild 1207

Returns the Jenkins one-at-a-time hash of string, used to identify models, weapons and other assets.

Signature

C
Hash GET_HASH_KEY(const char* string); // 0xFD340785ADF8CFB7 b1207

Parameters

#NameType
1stringconst char*

Facts

Facts about GET_HASH_KEY
Name
GET_HASH_KEY
Hash
0xFD340785ADF8CFB7
Namespace
Returns
Hash
Game build
1207

Examples

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

Lua
local hash = Citizen.InvokeNative(0xFD340785ADF8CFB7, -- GET_HASH_KEY
  "text", -- const char* string
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0xFD340785ADF8CFB7", // GET_HASH_KEY
  "text", // const char* string
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0xFD340785ADF8CFB7, // GET_HASH_KEY
  "text" // const char* string
);
All MISC natives

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