The Lab
STATS native

WEEKLY_COLLECTIBLE_GET_ITEM_IN_SET

returns BOOL5 paramsbuild 1207

Retrieves the item at itemIndex in set setIndex of the weekly collectible challenge chalHash, writing its hash to p3. Returns true on success.

Signature

C
BOOL WEEKLY_COLLECTIBLE_GET_ITEM_IN_SET(Hash chalHash, int setIndex, int itemIndex, Hash* p3, int* p4); // 0xBA61BA6205A3F5A8 b1207

Parameters

#NameType
1chalHashHash
2setIndexint
3itemIndexint
4p3Hash* (out pointer)
5p4int* (out pointer)

Facts

Facts about WEEKLY_COLLECTIBLE_GET_ITEM_IN_SET
Name
WEEKLY_COLLECTIBLE_GET_ITEM_IN_SET
Hash
0xBA61BA6205A3F5A8
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result, p3, p4 = Citizen.InvokeNative(0xBA61BA6205A3F5A8, -- WEEKLY_COLLECTIBLE_GET_ITEM_IN_SET
  GetHashKey("name"), -- Hash chalHash
  0, -- int setIndex
  0, -- int itemIndex
  Citizen.PointerValueInt(), -- Hash* p3
  Citizen.PointerValueInt(), -- int* p4
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, p3, p4] = Citizen.invokeNative("0xBA61BA6205A3F5A8", // WEEKLY_COLLECTIBLE_GET_ITEM_IN_SET
  GetHashKey("name"), // Hash chalHash
  0, // int setIndex
  0, // int itemIndex
  Citizen.pointerValueInt(), // Hash* p3
  Citizen.pointerValueInt(), // int* p4
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var p3Arg = new OutputArgument();
var p4Arg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xBA61BA6205A3F5A8, // WEEKLY_COLLECTIBLE_GET_ITEM_IN_SET
  (uint)API.GetHashKey("name"), // Hash chalHash
  0, // int setIndex
  0, // int itemIndex
  p3Arg, // Hash* p3
  p4Arg // int* p4
);
int p3 = p3Arg.GetResult<int>();
int p4 = p4Arg.GetResult<int>();
All STATS natives

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