The Lab
COLLECTABLE native

_COLLECTABLE_GET_NUM_FOUND

returns int1 parambuild 1207

Returns how many times the given collectable item has been found.

Signature

C
int _COLLECTABLE_GET_NUM_FOUND(Hash collectableItem); // 0xF83D3DDA4D3C8169 b1207

Parameters

#NameType
1collectableItemHash

Facts

Facts about _COLLECTABLE_GET_NUM_FOUND
Name
_COLLECTABLE_GET_NUM_FOUND
Hash
0xF83D3DDA4D3C8169
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(0xF83D3DDA4D3C8169, -- _COLLECTABLE_GET_NUM_FOUND
  GetHashKey("name"), -- Hash collectableItem
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xF83D3DDA4D3C8169", // _COLLECTABLE_GET_NUM_FOUND
  GetHashKey("name"), // Hash collectableItem
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xF83D3DDA4D3C8169, // _COLLECTABLE_GET_NUM_FOUND
  (uint)API.GetHashKey("name") // Hash collectableItem
);
All COLLECTABLE natives

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