---
name: "BIS_fnc_initVehicleCrew"
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_initVehicleCrew
revid: 349419
updated: 2023-11-08T16:27:32Z
---

# BIS_fnc_initVehicleCrew

*Function · Vehicles · Arma 3 v1.00*

## Description

Moves units into vehicle seats. When units don't exist, it will create them in a group of vehicle's side.

## Syntax

```sqf
[object, params, deleteCrew, anySeat, agents] call BIS_fnc_initVehicleCrew
```

**Parameters:**

- `object`: [Object](../topics/Object.md)
- `params`: [Array](../topics/Array.md) - in format:
  - 0: crewType: [Object](../topics/Object.md) or [String](../topics/String.md) - unit or unit type (will be created)
  - 1: role: [String](../topics/String.md) - Can be:
    - "driver"
    - "turret"
    - "cargo"
  - 2: index: [Number](../topics/Number.md) or [Array](../topics/Array.md) - Cargo index or turret path
- `deleteCrew`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) [true](../commands/true.md) to delete existing crew
- `anySeat`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) when desired seats are occuppied, move crew in the vehicle to any other available seat
- `agents`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) create crew as [agents](../commands/agents.md)

**Returns:** [Array](../topics/Array.md) - created units

## Examples

### Example 1

```sqf
[someVehicle, [player, "driver", 0], true, true] call BIS_fnc_initVehicleCrew;
```

## See also

[createVehicle](../commands/createVehicle.md) · [crew](../commands/crew.md) · [driver](../commands/driver.md)

<sub>Source: [BI Community Wiki — BIS fnc initVehicleCrew](https://community.bistudio.com/wiki/BIS_fnc_initVehicleCrew) (revision 349419).</sub>
