---
name: "removeWeaponCargo"
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/removeWeaponCargo
revid: 352183
updated: 2024-02-01T23:25:50Z
---

# removeWeaponCargo

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

## Description

Remove 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 removeWeaponCargo [weaponID,creatorID]
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
rearmTruckOne removeWeaponCargo [19, 1];
```

## See also

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

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