---
name: "BIS_fnc_vehicleRoles"
type: function
status: ok
groups: ["Vehicles"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_vehicleRoles
revid: 330776
updated: 2022-11-01T15:58:26Z
---

# BIS_fnc_vehicleRoles

*Function · Vehicles · Arma 3 v1.00*

## Description

Returns vehicle roles.

## Syntax

```sqf
vehicle call BIS_fnc_vehicleRoles
```

**Parameters:**

- [Object](../topics/Object.md) or [String](../topics/String.md) - vehicle itself or a classname

**Returns:** [Array](../topics/Array.md) - to format [[role, path], [role, path], …] like this:

```sqf
[
    ["Driver",[]],
    ["Turret",[0]],
    ["Turret",[0,0]],
    ["Cargo",[0]],
    ["Cargo",[1]],
    // ...
]
```

## Examples

### Example 1

```sqf
cursorObject call BIS_fnc_vehicleRoles;
```

### Example 2

```sqf
"B_MBT_01_cannon_F" call BIS_fnc_vehicleRoles;
```

## See also

[BIS_fnc_moveIn](../functions/BIS_fnc_moveIn.md) · [assignedVehicleRole](../commands/assignedVehicleRole.md) · [weaponsTurret](../commands/weaponsTurret.md)

<sub>Source: [BI Community Wiki — BIS fnc vehicleRoles](https://community.bistudio.com/wiki/BIS_fnc_vehicleRoles) (revision 330776).</sub>
