RedM Natives

GET_HASH_KEY

This native converts the passed string to a hash.

Hash0x98EFF6F1
Runtime nameGetHashKey
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

Hash GET_HASH_KEY(char* model);

Parameters

NameTypeDescription
modelchar*—

Returns Hash

Description

Cfx.re native reference

This native converts the passed string to a hash.

Usage

Lua
local retval = GetHashKey(model)

-- always works, by hash
local retval = Citizen.InvokeNative(0x98eff6f1, model, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetHashKey(model);

// by hash
const retval = Citizen.invokeNative('0x98eff6f1', model, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x98eff6f1, model);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.