The Lab
ITEMDATABASE native

_ITEMDATABASE_GET_BUNDLE_ITEM_INFO

returns BOOL4 paramsbuild 1207

Retrieves item index of the bundle bundleId, writing its hash to outBundle. Returns true on success.

Signature

C
BOOL _ITEMDATABASE_GET_BUNDLE_ITEM_INFO(int bundleId, Any* data, int index, Hash* outBundle); // 0x5D48A77E4B668B57 b1207

Parameters

#NameType
1bundleIdint
2dataAny* (out pointer)
3indexint
4outBundleHash* (out pointer)

Facts

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

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