The Lab
STATS native

CHAL_MISSION_GET_NUM_GOALS_COMPLETE

returns int1 parambuild 1207

Returns how many goals of the mission challenge missionHash are complete.

Signature

C
int CHAL_MISSION_GET_NUM_GOALS_COMPLETE(Hash missionHash); // 0xA785A52B59B7E7B2 b1207

Parameters

#NameType
1missionHashHash

Facts

Facts about CHAL_MISSION_GET_NUM_GOALS_COMPLETE
Name
CHAL_MISSION_GET_NUM_GOALS_COMPLETE
Hash
0xA785A52B59B7E7B2
Namespace
Returns
int
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xA785A52B59B7E7B2, -- CHAL_MISSION_GET_NUM_GOALS_COMPLETE
  GetHashKey("name"), -- Hash missionHash
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xA785A52B59B7E7B2", // CHAL_MISSION_GET_NUM_GOALS_COMPLETE
  GetHashKey("name"), // Hash missionHash
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xA785A52B59B7E7B2, // CHAL_MISSION_GET_NUM_GOALS_COMPLETE
  (uint)API.GetHashKey("name") // Hash missionHash
);
All STATS natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.