{"name":"weaponsItemsCargo","title":"weaponsItemsCargo","type":"command","url":"https://community.bistudio.com/wiki/weaponsItemsCargo","revid":378085,"updated":"2026-02-12T12:40:27Z","groups":["Containers","Vehicle Inventory"],"status":"ok","games":{"arma3":"1.22"},"since":"arma3 1.22","arma3_since":"1.22","description":"Returns an array with subarrays contains class names and also names of connected items of all the vehicle's cargo weapons in weaponsItems format. If weapon has no magazine, an empty array [] is returned instead of magazine info. If the argument is a vehicle with weapons, vehicles cargo is searched, unlike with weaponsItems command, which will return vehicle's weapons instead.\n\n> [!NOTE]\n> Since Arma 3 v1.96 the returned array always contains secondary muzzle magazine info and is consistent with getUnitLoadout format for weapon items.","syntaxes":[{"syntax":"weaponsItemsCargo vehicle","params":[{"name":"vehicle","type":"Object ammobox or vehicle","type_expr":"Object"}],"returns":{"type":"Array","type_expr":"Array","description":"see weaponsItems"},"form":"unary","right":{"text":"vehicle"}},{"syntax":"weaponsItemsCargo [vehicle, extended]","since":"arma3 2.14","params":[{"name":"vehicle","type":"Object","description":"ammobox or vehicle","type_expr":"Object"},{"name":"extended","type":"Boolean","description":"true to include muzzle information","type_expr":"Boolean"}],"returns":{"type":"Array","type_expr":"Array","description":"see weaponsItems"},"form":"unary","right":{"text":"[vehicle, extended]"}}],"examples":[{"code":["weaponsItemsCargo vehicle player;"]},{"code":["weaponsItemsCargo _weaponholder;"]}],"see_also":["weaponsItems","primaryWeaponItems","secondaryWeaponItems","handgunItems","addPrimaryWeaponItem","addSecondaryWeaponItem","addHandgunItem","primaryWeapon","secondaryWeapon","handgunWeapon","weaponAccessories","weaponAccessoriesCargo","addWeaponWithAttachmentsCargoGlobal"]}