{"hash":"0x5D48A77E4B668B57","ns":"ITEMDATABASE","name":"_ITEMDATABASE_GET_BUNDLE_ITEM_INFO","slug":"_ITEMDATABASE_GET_BUNDLE_ITEM_INFO","official":false,"named":true,"luaName":"ItemdatabaseGetBundleItemInfo","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"bundleId","type":"int"},{"name":"data","type":"Any*"},{"name":"index","type":"int"},{"name":"outBundle","type":"Hash*"}],"summary":"Outputs bundle item info.","descriptions":[{"source":"alloc8or","format":"text","body":"Outputs bundle item info.\nstruct BundleItemInfo\n{\n\talignas(8) Hash item;\n\talignas(8) Hash slotId;\n\talignas(8) int  unk2;\n\talignas(8) int  unk3;\n};"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ITEMDATABASE/_ITEMDATABASE_GET_BUNDLE_ITEM_INFO","markdownUrl":"https://natives.borderlinerp.com/natives/ITEMDATABASE/_ITEMDATABASE_GET_BUNDLE_ITEM_INFO.md","snippets":{"lua":"local retval, data, outBundle = ItemdatabaseGetBundleItemInfo(bundleId, index)","luaInvoke":"local retval, data, outBundle = Citizen.InvokeNative(0x5D48A77E4B668B57, bundleId, Citizen.PointerValueInt(), index, Citizen.PointerValueInt(), Citizen.ReturnResultAnyway())","js":"const [retval, data, outBundle] = ItemdatabaseGetBundleItemInfo(bundleId, index);","jsInvoke":"const [retval, data, outBundle] = Citizen.invokeNative('0x5D48A77E4B668B57', bundleId, Citizen.pointerValueInt(), index, Citizen.pointerValueInt(), Citizen.returnResultAnyway());","csharp":"var data = new OutputArgument();\nvar outBundle = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x5D48A77E4B668B57, bundleId, data, index, outBundle);\n// data.GetResult<int>()\n// outBundle.GetResult<int>()","notes":["Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.","`Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}