The Lab
ITEMDATABASE native

_ITEMDATABASE_GET_COMPONENT_ITEM

returns BOOL3 paramsbuild 1207

Writes the item key at index of collection collectionId to outKey. Returns true on success.

Signature

C
BOOL _ITEMDATABASE_GET_COMPONENT_ITEM(int collectionId, int index, Hash* outKey); // 0x8750F69A720C2E41 b1207

Parameters

#NameType
1collectionIdint
2indexint
3outKeyHash* (out pointer)

Facts

Facts about _ITEMDATABASE_GET_COMPONENT_ITEM
Name
_ITEMDATABASE_GET_COMPONENT_ITEM
Hash
0x8750F69A720C2E41
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, outKey = Citizen.InvokeNative(0x8750F69A720C2E41, -- _ITEMDATABASE_GET_COMPONENT_ITEM
  0, -- int collectionId
  0, -- int index
  Citizen.PointerValueInt(), -- Hash* outKey
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, outKey] = Citizen.invokeNative("0x8750F69A720C2E41", // _ITEMDATABASE_GET_COMPONENT_ITEM
  0, // int collectionId
  0, // int index
  Citizen.pointerValueInt(), // Hash* outKey
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var outKeyArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x8750F69A720C2E41, // _ITEMDATABASE_GET_COMPONENT_ITEM
  0, // int collectionId
  0, // int index
  outKeyArg // Hash* outKey
);
int outKey = outKeyArg.GetResult<int>();
All ITEMDATABASE natives

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