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

# removeWeaponAttachmentCargo

*Command · Vehicle Inventory · Arma 3 v1.22*

## Description

Remove attachment linked to a weapon from the vehicle cargo space.

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

## Syntax

```sqf
object removeWeaponAttachmentCargo [weaponID,creatorID,attachment]
```

**Parameters:**

- `object`: [Object](../topics/Object.md) - vehicle or ammo box
- `weaponID`: [Number](../topics/Number.md)
- `creatorID`: [Number](../topics/Number.md)
- `attachment`: [String](../topics/String.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
rearmTruckOne removeWeaponAttachmentCargo [weaponID, creatorID, "attachment"];
```

## See also

[removeWeaponCargo](../commands/removeWeaponCargo.md) · [weaponAccessoriesCargo](../commands/weaponAccessoriesCargo.md)

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