# Vehicle Inventory (scripting commands)

- [addItemCargo](../../commands/addItemCargo.md): Creates new items and stores them in given container. Works with items, weapons, magazines, equipment and glasses but not backpacks. In the latter case use addBackpackCargo instead.
- [addItemCargoGlobal](../../commands/addItemCargoGlobal.md): Global variant of addItemCargo.
- [addMagazineAmmoCargo](../../commands/addMagazineAmmoCargo.md): Adds magazines with specified ammo count to the cargo space of a vehicle or a container.
- [addWeapon](../../commands/addWeapon.md): Add a weapon to a unit. For a global version of this command see addWeaponGlobal.
- [addWeaponGlobal](../../commands/addWeaponGlobal.md): Add a weapon to a unit. Infantry units can only carry weapons in their respective slots (primary, secondary and handgun), the addWeaponGlobal command will replace the weapon currently in a slot with the added weapon if…
- [addWeaponWithAttachmentsCargo](../../commands/addWeaponWithAttachmentsCargo.md): Adds a weapon into the cargo space of a vehicle / box with given attachments / magazines. Ignores available cargo space.
- [addWeaponWithAttachmentsCargoGlobal](../../commands/addWeaponWithAttachmentsCargoGlobal.md): Adds a weapon into the cargo space of a vehicle / box with given attachments / magazines. Ignores available cargo space.
- [currentMagazine](../../commands/currentMagazine.md): Returns class name of currently loaded vehicle's / unit's magazine.
- [currentMagazineDetail](../../commands/currentMagazineDetail.md): Returns description of vehicle's currently loaded magazine, its ammo count (current/default) and its id.
- [everyContainer](../../commands/everyContainer.md): Returns array of all containers (uniforms, vests, backpacks) stored in given crate or vehicle. Used for accessing containers content stored in ammo box or ground holder.
- [getAmmoCargo](../../commands/getAmmoCargo.md): Returns the amount (1 is full) of ammo resources in the cargo space of a rearm vehicle.
- [getFuelCargo](../../commands/getFuelCargo.md): Returns the fuel amount (1 is full) in the cargo space of a refueling vehicle.
- [getItemCargo](../../commands/getItemCargo.md): Returns all items names and count from ammo box (or any general weapon holder container).
- [getMagazineCargo](../../commands/getMagazineCargo.md): Returns all magazines types and count from the cargo space
- [getRepairCargo](../../commands/getRepairCargo.md): Returns the amount (1 is full) of repair resources in the cargo space of a repair vehicle.
- [getWeaponCargo](../../commands/getWeaponCargo.md): Returns all weapons types and count from the cargo space
- [itemCargo](../../commands/itemCargo.md): Get array with items from ammo box (or any general weapon holder container).
- [magazineCargo](../../commands/magazineCargo.md): Get array with magazines from ammo box (or any general weapon holder container).
- [magazines](../../commands/magazines.md): Returns array of type names of all vehicle's magazines. When applied to a unit, the command behaves differently and will omit magazines already loaded into unit's weapons.
- [magazinesAmmo](../../commands/magazinesAmmo.md): Returns all vehicle's magazines and their ammo count (also works on supply boxes). When applied to a unit (soldier), the command behaves differently and will omit magazines already loaded into unit's weapons.
- [magazinesAmmoCargo](../../commands/magazinesAmmoCargo.md): Returns an array of subarrays with the type names and ammo left of all the vehicle's cargo or container magazines.
- [magazinesAmmoFull](../../commands/magazinesAmmoFull.md): Returns array of arrays of all unit's or vehicle's magazines with extended information about them. The magazines returned are for primary gunner. If you need magazines for all turrets, see magazinesAllTurrets.
- [magazinesDetail](../../commands/magazinesDetail.md): Returns an array of strings with description of all vehicle's magazines, their ammo count (current/default) and their ids for the primary gunner.
- [removeWeapon](../../commands/removeWeapon.md): Remove weapon from a unit. The unit must be local to the computer where command is executed. For a global version of this command, see removeWeaponGlobal.
- [removeWeaponAttachmentCargo](../../commands/removeWeaponAttachmentCargo.md): Remove attachment linked to a weapon from the vehicle cargo space.
- [removeWeaponCargo](../../commands/removeWeaponCargo.md): Remove weapon from the vehicle cargo space.
- [removeWeaponGlobal](../../commands/removeWeaponGlobal.md): Remove a weapon from a unit. An attempt to remove a weapon, which is not in unit's possession, is simply ignored.
- [setAmmo](../../commands/setAmmo.md): Sets custom ammo count in the currently loaded magazine of the specified weapon or muzzle.
- [setAmmoCargo](../../commands/setAmmoCargo.md): Set amount of ammo resources in cargo space of a rearm vehicle. Ammo resource is used to resupply vehicles that take ammo. Soldiers use individual magazines instead.
- [setFuelCargo](../../commands/setFuelCargo.md): Sets fuel amount in cargo space of refuel vehicles. Note that the carrying capacity of each side's refuel trucks differ.
- [setRepairCargo](../../commands/setRepairCargo.md): Set amount of repair resources in cargo space of repair vehicle. Amount 1 is full cargo.
- [setVehicleAmmo](../../commands/setVehicleAmmo.md): Sets how much ammunition (compared to a full state defined by the vehicle type) the vehicle has. Note that the ammo will be added only to local turrets. To check locality of turret use turretLocal.
- [setVehicleAmmoDef](../../commands/setVehicleAmmoDef.md): Sets how much ammunition (compared to the configuration of magazines defined in the vehicle's class) the vehicle has. Note that the ammo will only be added to local turrets.
- [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).
- [weapons](../../commands/weapons.md): Returns array of names of all unit's weapons.
- [weaponsItems](../../commands/weaponsItems.md): Returns an array with subarrays contains class names and also names of connected items of all the vehicle's weapons.
- [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.
