{"hash":"0x033EE4B89F3AC545","ns":"INVENTORY","name":"INVENTORY_GET_CHILDREN_IN_SLOT_COUNT","slug":"INVENTORY_GET_CHILDREN_IN_SLOT_COUNT","official":true,"named":true,"luaName":"InventoryGetChildrenInSlotCount","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"inventoryId","type":"int"},{"name":"guid","type":"Any*"},{"name":"slotId","type":"Hash"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/INVENTORY/INVENTORY_GET_CHILDREN_IN_SLOT_COUNT","markdownUrl":"https://natives.borderlinerp.com/natives/INVENTORY/INVENTORY_GET_CHILDREN_IN_SLOT_COUNT.md","snippets":{"lua":"local retval, guid = InventoryGetChildrenInSlotCount(inventoryId, slotId)","luaInvoke":"local retval, guid = Citizen.InvokeNative(0x033EE4B89F3AC545, inventoryId, Citizen.PointerValueInt(), slotId, Citizen.ResultAsInteger())","js":"const [retval, guid] = InventoryGetChildrenInSlotCount(inventoryId, slotId);","jsInvoke":"const [retval, guid] = Citizen.invokeNative('0x033EE4B89F3AC545', inventoryId, Citizen.pointerValueInt(), slotId, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var guid = new OutputArgument();\nint retval = Function.Call<int>((Hash)0x033EE4B89F3AC545, inventoryId, guid, slotId);\n// guid.GetResult<int>()","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","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."]}}