---
name: "setVehicleAmmo"
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/setVehicleAmmo
revid: 376973
updated: 2026-01-01T06:03:41Z
---

# setVehicleAmmo

*Command · Vehicle Inventory · Arma 3 v0.50 · introduced in Armed Assault v1.00*

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

## Description

Sets how much ammunition (compared to a full state defined by the vehicle type) the vehicle has. Note that the ammo will be added only to [local](../topics/Multiplayer_Scripting.md#locality) turrets. To check locality of turret use [turretLocal](../commands/turretLocal.md).

## Syntax

```sqf
vehicleName setVehicleAmmo value
```

**Parameters:**

- `vehicleName`: [Object](../topics/Object.md)
- `value`: [Number](../topics/Number.md) in range 0..1 - 0: empty, 1: full

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

## Examples

### Example 1

```sqf
player setVehicleAmmo 0;
```

### Example 2

```sqf
_vehicle setVehicleAmmo 1;
```

## See also

[setVehicleAmmoDef](../commands/setVehicleAmmoDef.md) · [ammo](../commands/ammo.md) · [setAmmo](../commands/setAmmo.md) · [setAmmoCargo](../commands/setAmmoCargo.md) · [turretLocal](../commands/turretLocal.md)

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