---
name: "BIS_fnc_exportInventory"
type: function
status: ok
groups: ["Inventory"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_exportInventory
revid: 378118
updated: 2026-02-20T08:53:31Z
---

# BIS_fnc_exportInventory

*Function · Inventory · Arma 3 v1.00*

## Description

Exports unit's loadout as a [String](../topics/String.md), also [copies](../commands/copyToClipboard.md) it to clipboard.

## Syntax

```sqf
[unit, type, includeIdentity] call BIS_fnc_exportInventory
```

**Parameters:**

- `unit`: [Object](../topics/Object.md) - (Optional, default [player](../commands/player.md)) unit whose loadout should be saved
- `type`: [String](../topics/String.md) - (Optional, default "script") export type, can be:
  - "script" - scripting commands, target is referred to as `_unit`
  - "init" - scripting commands, target is referred to as `this`
  - "config" - config attributes
- `includeIdentity`: [Boolean](../topics/Boolean.md) - (Optional, default [true](../commands/true.md)) [true](../commands/true.md) to also export face, voice and insignia (applicable to "script" and "init" only)

**Returns:** [String](../topics/String.md) - [SQF](../topics/SQF_Syntax.md) code or [Config](../topics/Config.md) text when "config" option is chosen

## Examples

### Example 1

```sqf
[player, "init", true] call BIS_fnc_exportInventory;
```

## See also

[BIS_fnc_loadInventory](../functions/BIS_fnc_loadInventory.md) · [BIS_fnc_deleteInventory](../functions/BIS_fnc_deleteInventory.md) · [BIS_fnc_saveInventory](../functions/BIS_fnc_saveInventory.md) · [getUnitLoadout](../commands/getUnitLoadout.md)

<sub>Source: [BI Community Wiki — BIS fnc exportInventory](https://community.bistudio.com/wiki/BIS_fnc_exportInventory) (revision 378118).</sub>
