GET_HASH_KEY
Returns the Jenkins one-at-a-time hash of string, used to identify models, weapons and other assets.
Signature
Hash GET_HASH_KEY(const char* string); // 0xFD340785ADF8CFB7 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | string | const char* |
Facts
| 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.
local hash = Citizen.InvokeNative(0xFD340785ADF8CFB7, -- GET_HASH_KEY
"text", -- const char* string
Citizen.ResultAsInteger()
)
print(hash)const hash = Citizen.invokeNative("0xFD340785ADF8CFB7", // GET_HASH_KEY
"text", // const char* string
Citizen.resultAsInteger()
);
console.log(hash)int hash = Function.Call<int>((Hash)0xFD340785ADF8CFB7, // GET_HASH_KEY
"text" // const char* string
);Related MISC natives
- _GET_NEXT_WEATHER_TYPE_HASH_NAME
- _GET_PREV_WEATHER_TYPE_HASH_NAME
- GET_HEADING_FROM_VECTOR_2D
- GET_ANGLE_BETWEEN_2D_VECTORS
- GET_BENCHMARK_ITERATIONS
- GET_BENCHMARK_PASS
- GET_BITS_IN_RANGE
- GET_CLOSEST_POINT_ON_LINE
- GET_COORDS_OF_PROJECTILE_TYPE_WITHIN_DISTANCE
- GET_CURR_WEATHER_STATE
- GET_DISTANCE_BETWEEN_COORDS
- GET_FRAME_COUNT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.