RedM Natives

CHAL_MISSION_GET_NUM_GOALS_COMPLETE

Hash0xA785A52B59B7E7B2
Runtime nameChalMissionGetNumGoalsComplete
NamespaceSTATS
SideClient
NameOfficial
Docs
Since build1207

Signature

int CHAL_MISSION_GET_NUM_GOALS_COMPLETE(Hash missionHash);

Parameters

NameTypeDescription
missionHashHash—

Returns int

Usage

Lua
local retval = ChalMissionGetNumGoalsComplete(missionHash)

-- always works, by hash
local retval = Citizen.InvokeNative(0xA785A52B59B7E7B2, missionHash, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = ChalMissionGetNumGoalsComplete(missionHash);

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