{"hash":"0xCD9A485F2B383B44","ns":"INVENTORY","name":"_INVENTORY_GET_INVENTORY_ITEM_CHILD","slug":"_INVENTORY_GET_INVENTORY_ITEM_CHILD","official":false,"named":true,"luaName":"InventoryGetInventoryItemChild","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"inventoryId","type":"int"},{"name":"parentGuid","type":"Any*"},{"name":"childIndex","type":"Any"},{"name":"outInventoryItem","type":"Any*"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_GET_INVENTORY_ITEM_CHILD","markdownUrl":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_GET_INVENTORY_ITEM_CHILD.md","snippets":{"lua":"local retval, parentGuid, outInventoryItem = InventoryGetInventoryItemChild(inventoryId, childIndex)","luaInvoke":"local retval, parentGuid, outInventoryItem = Citizen.InvokeNative(0xCD9A485F2B383B44, inventoryId, Citizen.PointerValueInt(), childIndex, Citizen.PointerValueInt(), Citizen.ReturnResultAnyway())","js":"const [retval, parentGuid, outInventoryItem] = InventoryGetInventoryItemChild(inventoryId, childIndex);","jsInvoke":"const [retval, parentGuid, outInventoryItem] = Citizen.invokeNative('0xCD9A485F2B383B44', inventoryId, Citizen.pointerValueInt(), childIndex, Citizen.pointerValueInt(), Citizen.returnResultAnyway());","csharp":"var parentGuid = new OutputArgument();\nvar outInventoryItem = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0xCD9A485F2B383B44, inventoryId, parentGuid, childIndex, outInventoryItem);\n// parentGuid.GetResult<int>()\n// outInventoryItem.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."]}}