GET_HASH_KEY
This native converts the passed string to a hash.
Signature
Hash GET_HASH_KEY(char* model);Parameters
| Name | Type | Description |
|---|---|---|
model | char* | — |
Returns Hash
Description
This native converts the passed string to a hash.
Usage
local retval = GetHashKey(model)
-- always works, by hash
local retval = Citizen.InvokeNative(0x98eff6f1, model, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetHashKey(model);
// by hash
const retval = Citizen.invokeNative('0x98eff6f1', model, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x98eff6f1, model);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.