---
name: "BIS_fnc_exportCfgWeapons"
type: function
status: ok
groups: ["Diagnostic"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_exportCfgWeapons
revid: 353282
updated: 2024-03-15T16:46:12Z
---

# BIS_fnc_exportCfgWeapons

*Function · Diagnostic · Arma 3 v1.00*

Locality: executed with **spawn**

## Description

Export list of weapons for Community Wiki Arma 3 Assets Category.

## Syntax

```sqf
[mode, patches, types] spawn BIS_fnc_exportCfgWeapons
```

**Parameters:**

- `mode`: [String](../topics/String.md) - can be one of:
  - "Equipment"
  - "Item"
  - "VehicleWeapon"
  - "Weapon" - specific item type, based on [BIS_fnc_itemType](../functions/BIS_fnc_itemType.md)
  - internal use only: "screenshots" - create items one by one and take their screenshot. Works only on "Render" terrain.
  - internal use only: "screenshotsTest" - create items one by one without taking screen (to verify everything is ok)
- `patches`: [Array](../topics/Array.md) of [String](../topics/String.md)s - (Optional, default `[]`) list of CfgPatches classes. Only weapons belonging to these addons will be used
- `types`: [Array](../topics/Array.md) of [String](../topics/String.md)s - (Optional, default `[]`)

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) when done

## Examples

### Example 1

```sqf
["Weapon"]            spawn BIS_fnc_exportCfgWeapons;    // exports [[Arma 3: CfgWeapons Weapons]]
["VehicleWeapon"]    spawn BIS_fnc_exportCfgWeapons;    // exports [[Arma 3: CfgWeapons Vehicle Weapons]]
["Item"]            spawn BIS_fnc_exportCfgWeapons;    // exports [[Arma 3: CfgWeapons Items]]
["Equipment"]        spawn BIS_fnc_exportCfgWeapons;    // exports [[Arma 3: CfgWeapons Equipment]]
["screenshots"]        spawn BIS_fnc_exportCfgWeapons;    // screenshots
["screenshotsTest"]    spawn BIS_fnc_exportCfgWeapons;    // screenshots test mode, does nothing
```

<sub>Source: [BI Community Wiki — BIS fnc exportCfgWeapons](https://community.bistudio.com/wiki/BIS_fnc_exportCfgWeapons) (revision 353282).</sub>
