Description
Returns all items names and count from ammo box (or any general weapon holder container).
Syntax
getItemCargo box
Parameters:
box: Object
Returns: Array with [classes, counts]
Examples
Example 1
getItemCargo cursorTarget;
/*
returns e.g
[
["5ItemA", "10ItemB"]
[5, 10]
]
*/
See also
itemCargo · addItemCargo · addItemCargoGlobal · clearItemCargo · clearItemCargoGlobal