---
name: "currentWeapon"
type: command
status: ok
groups: ["Weapons", "Unit Inventory"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/currentWeapon
revid: 378862
updated: 2026-07-22T17:08:42Z
---

# currentWeapon

*Command · Weapons, Unit Inventory · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Return the name of the currently selected weapon (on the primary turret for vehicles).

## Syntax

```sqf
currentWeapon vehicle
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md)

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

## Examples

### Example 1

```sqf
_weaponClass = currentWeapon (vehicle player);//Example: "M16A2GL"
```

### Example 2

```sqf
_weaponClass = currentWeapon player;
```

## See also

[currentMagazine](../commands/currentMagazine.md) · [currentMuzzle](../commands/currentMuzzle.md) · [currentThrowable](../commands/currentThrowable.md) · [currentVisionMode](../commands/currentVisionMode.md) · [currentWeaponMode](../commands/currentWeaponMode.md) · [currentZeroing](../commands/currentZeroing.md) · [magazinesTurret](../commands/magazinesTurret.md) · [weaponsTurret](../commands/weaponsTurret.md) · [currentWeaponTurret](../commands/currentWeaponTurret.md) · [weaponState](../commands/weaponState.md)

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