RedM Natives

CHAL_GET_NUM_RANKS_COMPLETED

Hash0x58CB53DB63F84DE9
Runtime nameChalGetNumRanksCompleted
NamespaceSTATS
SideClient
NameOfficial
Docs
Since build1207

Signature

int CHAL_GET_NUM_RANKS_COMPLETED(Hash chalHash);

Parameters

NameTypeDescription
chalHashHash—

Returns int

Usage

Lua
local retval = ChalGetNumRanksCompleted(chalHash)

-- always works, by hash
local retval = Citizen.InvokeNative(0x58CB53DB63F84DE9, chalHash, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = ChalGetNumRanksCompleted(chalHash);

// by hash
const retval = Citizen.invokeNative('0x58CB53DB63F84DE9', chalHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x58CB53DB63F84DE9, chalHash);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

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