# Inventory (functions)

- [BIS_fnc_addVirtualBackpackCargo](../../functions/BIS_fnc_addVirtualBackpackCargo.md): Add virtual backpacks to an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- [BIS_fnc_addVirtualItemCargo](../../functions/BIS_fnc_addVirtualItemCargo.md): Add virtual items to an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- [BIS_fnc_addVirtualMagazineCargo](../../functions/BIS_fnc_addVirtualMagazineCargo.md): Add virtual magazines to an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- [BIS_fnc_addVirtualWeaponCargo](../../functions/BIS_fnc_addVirtualWeaponCargo.md): Add virtual weapons to an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- [BIS_fnc_addWeapon](../../functions/BIS_fnc_addWeapon.md): Adds a weapon to the specified unit, with magazine classnames taken from the weapon's config (in CfgWeapons).
- [BIS_fnc_arsenal](../../functions/BIS_fnc_arsenal.md): Function used for the Virtual Arsenal. The function features four different modes, each mode comes with its own parameters.
- [BIS_fnc_basicBackpack](../../functions/BIS_fnc_basicBackpack.md): Determines basic backpack with no equipment present (ie empty).
- [BIS_fnc_compatibleItems](../../functions/BIS_fnc_compatibleItems.md) **[deprecated]**: Return all compatible weapon attachments.
- [BIS_fnc_deleteInventory](../../functions/BIS_fnc_deleteInventory.md): Delete loadout saved using BIS_fnc_saveInventory.
- [BIS_fnc_exportInventory](../../functions/BIS_fnc_exportInventory.md): Exports unit's loadout as a String, also copies it to clipboard.
- [BIS_fnc_getVirtualBackpackCargo](../../functions/BIS_fnc_getVirtualBackpackCargo.md): Get virtual backpacks from an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- [BIS_fnc_getVirtualItemCargo](../../functions/BIS_fnc_getVirtualItemCargo.md): Get virtual items from an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- [BIS_fnc_getVirtualMagazineCargo](../../functions/BIS_fnc_getVirtualMagazineCargo.md): Get virtual magazines from an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- [BIS_fnc_getVirtualWeaponCargo](../../functions/BIS_fnc_getVirtualWeaponCargo.md): Get virtual weapons from an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- [BIS_fnc_hasItem](../../functions/BIS_fnc_hasItem.md): Returns true if object contains given item in inventory / cargo storage.
- [BIS_fnc_inv](../../functions/BIS_fnc_inv.md): Returns inventory contents of given vehicle (unit). For vehicles it returns mounted gun and its ammo, not cargo weapons and ammo.
- [BIS_fnc_invAdd](../../functions/BIS_fnc_invAdd.md): Adds item to inventory - checks if there is room for it. Checks if add was done by engine.
- [BIS_fnc_invCodeToArray](../../functions/BIS_fnc_invCodeToArray.md): Converts inventory code (used in configs) to array with numbers for weapons and magazines (and their counts).
- [BIS_fnc_inventoryExists](../../functions/BIS_fnc_inventoryExists.md): Check if loadout with given name exists.
- [BIS_fnc_invRemove](../../functions/BIS_fnc_invRemove.md): Removes from inventory. Given number of items. Returns actually removed items count.
- [BIS_fnc_invSlots](../../functions/BIS_fnc_invSlots.md): Returns config inventory slots of given unit (total numbers of available slots in array).
- [BIS_fnc_invSlotsEmpty](../../functions/BIS_fnc_invSlotsEmpty.md): Returns empty inventory slots of given unit.
- [BIS_fnc_invSlotType](../../functions/BIS_fnc_invSlotType.md): Returns empty inventory slots of given unit.
- [BIS_fnc_invString](../../functions/BIS_fnc_invString.md): Returns inventory contents of given vehicle (unit).
- [BIS_fnc_isThrowable](../../functions/BIS_fnc_isThrowable.md) **[deprecated]**: Returns true if given magazine is throwable.
- [BIS_fnc_itemType](../../functions/BIS_fnc_itemType.md): Returns item category and type.
- [BIS_fnc_limitAmmunition](../../functions/BIS_fnc_limitAmmunition.md): Limits the number of magazines carried by individual unit. Each container (uniform, vest and backpack) can be limited separately or left untouched.
- [BIS_fnc_limitItems](../../functions/BIS_fnc_limitItems.md): Keeps or removes unit's items (including NVGs and binocular/designator) based on probability user sets.
- [BIS_fnc_limitWeaponItems](../../functions/BIS_fnc_limitWeaponItems.md): Keeps or remove unit's weapon attachments based on probability user sets. Apply for primary, secondary or handgun weapon separately.
- [BIS_fnc_loadInventory](../../functions/BIS_fnc_loadInventory.md): Adds a predefined loadout (either via `CfgVehicles`, `CfgRespawnInventory`, or a custom inventory saved via BIS_fnc_saveInventory) to a specified unit.
- [BIS_fnc_removeVirtualBackpackCargo](../../functions/BIS_fnc_removeVirtualBackpackCargo.md): Remove virtual backpacks from an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- [BIS_fnc_removeVirtualItemCargo](../../functions/BIS_fnc_removeVirtualItemCargo.md): Remove virtual items from an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- [BIS_fnc_removeVirtualMagazineCargo](../../functions/BIS_fnc_removeVirtualMagazineCargo.md): Remove virtual magazines from an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- [BIS_fnc_removeVirtualWeaponCargo](../../functions/BIS_fnc_removeVirtualWeaponCargo.md): Remove virtual weapons from an object (e.g., ammo box). Virtual items can be selected in the Arsenal.
- [BIS_fnc_saveInventory](../../functions/BIS_fnc_saveInventory.md): Save unit's loadout.
- [BIS_fnc_unitHeadgear](../../functions/BIS_fnc_unitHeadgear.md): Randomise headgear and facewear of a character.
