---
name: "setAmmoCargo"
type: command
status: ok
groups: ["Vehicle Inventory"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/setAmmoCargo
revid: 379463
updated: 2026-10-31T00:09:52Z
---

# setAmmoCargo

*Command · Vehicle Inventory · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

Locality: arguments **local** · effect **global**

## Description

Set amount of ammo resources in cargo space of a rearm vehicle. Ammo resource is used to resupply vehicles that take ammo. Soldiers use individual magazines instead.

The actual **quantity** to work with is determined by the model's class in CfgVehicles

## Syntax

```sqf
vehicleName setAmmoCargo ammoCargo
```

**Parameters:**

- `vehicleName`: [Object](../topics/Object.md)
- `ammoCargo`: [Number](../topics/Number.md) in range 0..1

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

## Examples

### Example 1

```sqf
_ammoTruck1 setAmmoCargo 0.5;
```

## See also

[getAmmoCargo](../commands/getAmmoCargo.md) · [setFuelCargo](../commands/setFuelCargo.md) · [setRepairCargo](../commands/setRepairCargo.md)

## Community notes

**PlacidBox** — 2011-08-31

While the amount of total 'ammo' that can be reloaded is defined in the truck/supply point's CfgVehicles entry, the amount each round of ammunition takes from that total is defined in the CfgAmmo 'Cost' entry for that round.

Your typical truck has 300000 ammo capacity, and the tunguska's missiles have a Cost of 50000. So the tunguska can reload a total of 6 missiles from the ammo truck before the ammo capacity is depleted and needs to be set with setAmmoCargo.

A similar thing applies with a vehicle's cfgVehicle Cost entry for repairing, and the vehicle's fuelCapacity entry when refuelling.

---

**Waffle SS.** — 2015-07-10

(Arma 3 1.44) **setAmmoCargo** will have no effect if the vehicle doesn't support [getAmmoCargo](../commands/getAmmoCargo.md).

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