RedM Natives

CHAL_MISSION_GET_NUM_GOALS

Hash0x0B0576DD3A75E58D
Runtime nameChalMissionGetNumGoals
NamespaceSTATS
SideClient
NameOfficial
Docs
Since build1207

Signature

int CHAL_MISSION_GET_NUM_GOALS(Hash missionHash);

Parameters

NameTypeDescription
missionHashHash—

Returns int

Usage

Lua
local retval = ChalMissionGetNumGoals(missionHash)

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

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