RedM Natives

GET_PASSWORD_HASH

Hash0x23473EA4
Runtime nameGetPasswordHash
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

char* GET_PASSWORD_HASH(char* password);

Parameters

NameTypeDescription
passwordchar*—

Returns char*

Usage

Lua
local retval = GetPasswordHash(password)

-- always works, by hash
local retval = Citizen.InvokeNative(0x23473ea4, password, Citizen.ResultAsString())
JavaScript and C#
JavaScript
const retval = GetPasswordHash(password);

// by hash
const retval = Citizen.invokeNative('0x23473ea4', password, Citizen.returnResultAnyway(), Citizen.resultAsString());
C#
string retval = Function.Call<string>((Hash)0x23473ea4, password);

See also

Sources

Cfx.re native reference

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