The Lab
COLLECTABLE native

_COLLECTABLE_SET_ITEM_HASH_DISCOVERED

returns Hash1 parambuild 1207

Marks the collectable item as discovered and returns a hash.

Signature

C
Hash _COLLECTABLE_SET_ITEM_HASH_DISCOVERED(Hash collectableItem); // 0xEC3959E9950BF56B b1207

Parameters

#NameType
1collectableItemHash

Facts

Facts about _COLLECTABLE_SET_ITEM_HASH_DISCOVERED
Name
_COLLECTABLE_SET_ITEM_HASH_DISCOVERED
Hash
0xEC3959E9950BF56B
Namespace
Returns
Hash
Game build
1207

Examples

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

Lua
local hash = Citizen.InvokeNative(0xEC3959E9950BF56B, -- _COLLECTABLE_SET_ITEM_HASH_DISCOVERED
  GetHashKey("name"), -- Hash collectableItem
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0xEC3959E9950BF56B", // _COLLECTABLE_SET_ITEM_HASH_DISCOVERED
  GetHashKey("name"), // Hash collectableItem
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0xEC3959E9950BF56B, // _COLLECTABLE_SET_ITEM_HASH_DISCOVERED
  (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.