RedM Natives

CHAL_ACHIEVEMENT_GET_PROGRESS_INT

Hash0x808712E428F697B8
Runtime nameChalAchievementGetProgressInt
NamespaceSTATS
SideClient
NameOfficial
Docs
Since build1232

Signature

int CHAL_ACHIEVEMENT_GET_PROGRESS_INT(Hash p0, Hash p1);

Parameters

NameTypeDescription
p0Hash—
p1Hash—

Returns int

Usage

Lua
local retval = ChalAchievementGetProgressInt(p0, p1)

-- always works, by hash
local retval = Citizen.InvokeNative(0x808712E428F697B8, p0, p1, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = ChalAchievementGetProgressInt(p0, p1);

// by hash
const retval = Citizen.invokeNative('0x808712E428F697B8', p0, p1, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x808712E428F697B8, p0, p1);
  • 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.