RedM Natives

VERIFY_PASSWORD_HASH

Hash0x2E310ACD
Runtime nameVerifyPasswordHash
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

BOOL VERIFY_PASSWORD_HASH(char* password, char* hash);

Parameters

NameTypeDescription
passwordchar*—
hashchar*—

Returns BOOL

Usage

Lua
local retval = VerifyPasswordHash(password, hash)

-- always works, by hash
local retval = Citizen.InvokeNative(0x2e310acd, password, hash, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = VerifyPasswordHash(password, hash);

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

See also

Sources

Cfx.re native reference

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