# Containers (scripting commands)

- [addBackpack](../../commands/addBackpack.md): Adds a backpack for a unit. If a unit already has a backpack, the old backpack will be placed on the ground under the unit. Items defined in the backpack's config will be added as well.
- [addBackpackCargo](../../commands/addBackpackCargo.md): Add backpack(s) to the cargo space of vehicle. Classname list of available backpacks is here.
- [addBackpackCargoGlobal](../../commands/addBackpackCargoGlobal.md): Add backpack(s) to the cargo space of vehicle.
- [addItemToBackpack](../../commands/addItemToBackpack.md): Create new item and store it to soldier's backpack. The item can also be a weapon or a magazine.
- [addMagazineCargo](../../commands/addMagazineCargo.md): Add magazines to the cargo space of vehicles, which can be taken out by infantry units. Once the magazine cargo space is filled up, any further addMagazineCargo commands are ignored.
- [addMagazineCargoGlobal](../../commands/addMagazineCargoGlobal.md): Add magazines to the cargo space of vehicles, which can be taken out by infantry units.
- [addWeaponCargo](../../commands/addWeaponCargo.md): Add weapons to the cargo space of vehicles, which can be taken out by infantry units. Ignores available cargo space.
- [addWeaponCargoGlobal](../../commands/addWeaponCargoGlobal.md): Add weapons to the cargo space of vehicles, which can be taken out by infantry units.
- [backpack](../../commands/backpack.md): Returns a class of a backpack.
- [backpackCargo](../../commands/backpackCargo.md): Get array with backpacks from ammo box (or any general weapon holder container).
- [backpackContainer](../../commands/backpackContainer.md): Returns a cargo container of a unit's backpack.
- [backpackItems](../../commands/backpackItems.md): Get array with all items (of any kind, even weapons) in backpack of the given unit.
- [backpackMagazines](../../commands/backpackMagazines.md): Get array with all magazines from backpack of the given unit.
- [backpackSpaceFor](../../commands/backpackSpaceFor.md): Returns how much space is in backpack for given weapon or magazine
- [canAddItemToBackpack](../../commands/canAddItemToBackpack.md): Checks if given object can be stored into soldier's backpack.
- [clearAllItemsFromBackpack](../../commands/clearAllItemsFromBackpack.md): Removes all items from backpack of a unit.
- [clearBackpackCargo](../../commands/clearBackpackCargo.md): Removes all backpacks from ammo box (or any general weapon holder container).
- [clearBackpackCargoGlobal](../../commands/clearBackpackCargoGlobal.md): Removes all backpacks from the vehicle cargo space; MP-synchronised.
- [clearItemCargo](../../commands/clearItemCargo.md): Removes all items from ammo box (or any general weapon holder container).
- [clearItemCargoGlobal](../../commands/clearItemCargoGlobal.md): Removes all items from ammo box (or any general weapon holder container). It also removes vests and uniforms.
- [clearMagazineCargo](../../commands/clearMagazineCargo.md): Remove all magazines from the given vehicle's magazine cargo space.
- [clearMagazineCargoGlobal](../../commands/clearMagazineCargoGlobal.md): Removes all magazines from the vehicle cargo space. MP synchronized.
- [clearWeaponCargo](../../commands/clearWeaponCargo.md): Remove all weapons from the given vehicle's weapon cargo space.
- [clearWeaponCargoGlobal](../../commands/clearWeaponCargoGlobal.md): Removes all weapons from the vehicle cargo space. MP synchronized.
- [everyBackpack](../../commands/everyBackpack.md): Returns array of backpacks stored in given crate or vehicle. Used for accessing backpack content of a backpack on ground.
- [firstBackpack](../../commands/firstBackpack.md): Returns the first stored backpack.
- [forceAddUniform](../../commands/forceAddUniform.md): Create a new uniform and hard link it into slot (without any restrictions).
- [getBackpackCargo](../../commands/getBackpackCargo.md): Returns all backpack types and count from the cargo space.
- [getMagazineCargo](../../commands/getMagazineCargo.md): Returns all magazines types and count from the cargo space
- [getWeaponCargo](../../commands/getWeaponCargo.md): Returns all weapons types and count from the cargo space
- [loadBackpack](../../commands/loadBackpack.md): Returns current percentage of mass from items stored in a backpack relative to the maximum capacity of the backpack.
- [magazineCargo](../../commands/magazineCargo.md): Get array with magazines from ammo box (or any general weapon holder container).
- [removeAllItemsWithMagazines](../../commands/removeAllItemsWithMagazines.md): Removes all itemsWithMagazines from the uniform, vest and backpack. Command essentially clears all unit's containers.
- [removeBackpack](../../commands/removeBackpack.md): Removes unit's backpack
- [removeItemFromBackpack](../../commands/removeItemFromBackpack.md): Removes item from soldier's backpack.
- [removeItemFromUniform](../../commands/removeItemFromUniform.md): Removes item from soldier's uniform. Can be used with magazines and weapons too.
- [removeItemFromVest](../../commands/removeItemFromVest.md): Removes item from soldier's vest.
- [removeUniform](../../commands/removeUniform.md): Removes uniform from unit.
- [removeVest](../../commands/removeVest.md): Removes vest from unit.
- [uniform](../../commands/uniform.md): Returns name of uniform.
- [uniformContainer](../../commands/uniformContainer.md): Returns a cargo container of a unit's uniform.
- [uniformMagazines](../../commands/uniformMagazines.md): Get array with all magazines from uniform of the given unit.
- [unitBackpack](../../commands/unitBackpack.md): Returns unit's backpack
- [vest](../../commands/vest.md): nameof vest.
- [vestContainer](../../commands/vestContainer.md): Returns a cargo container of a unit's vest.
- [weaponAccessoriesCargo](../../commands/weaponAccessoriesCargo.md): Returns array with all items assigned to the given weapon in given cargo container.
- [weaponCargo](../../commands/weaponCargo.md): Get array with weapons from ammo box (or any general weapon holder container).
- [weaponsItemsCargo](../../commands/weaponsItemsCargo.md): Returns an array with subarrays contains class names and also names of connected items of all the vehicle's cargo weapons in weaponsItems format.
