---
name: "weaponAccessoriesCargo"
type: command
status: ok
groups: ["Vehicle Inventory", "Containers", "Unit Inventory"]
arma3_since: "1.22"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/weaponAccessoriesCargo
revid: 352198
updated: 2024-02-01T23:26:01Z
---

# weaponAccessoriesCargo

*Command · Vehicle Inventory, Containers, Unit Inventory · Arma 3 v1.22*

## Description

Returns array with all items assigned to the given weapon in given cargo container.

> [!WARNING]
> This is unofficial documentation. All Information here is as it exists in the Engine. It might not reflect the reality.

## Syntax

```sqf
container weaponAccessoriesCargo [weaponId, creatorId]
```

**Parameters:**

- `container`: [Object](../topics/Object.md) - cargo container
- `weaponId`: [Number](../topics/Number.md)
- `creatorId`: [Number](../topics/Number.md)

**Returns:** [Array](../topics/Array.md) - [silencer, laserpointer/flashlight, optics, bipod]

## Examples

### Example 1

-

## See also

[weaponAccessories](../commands/weaponAccessories.md) · [primaryWeaponItems](../commands/primaryWeaponItems.md) · [handgunItems](../commands/handgunItems.md) · [secondaryWeaponItems](../commands/secondaryWeaponItems.md) · [weaponsItems](../commands/weaponsItems.md) · [weaponsItemsCargo](../commands/weaponsItemsCargo.md) · [removeWeaponAttachmentCargo](../commands/removeWeaponAttachmentCargo.md) · [removeWeaponCargo](../commands/removeWeaponCargo.md)

<sub>Source: [BI Community Wiki — weaponAccessoriesCargo](https://community.bistudio.com/wiki/weaponAccessoriesCargo) (revision 352198).</sub>
