---
name: "BIS_fnc_crewCount"
type: function
status: ok
groups: ["Object Manipulation"]
arma3_since: "1.08"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_crewCount
revid: 349180
updated: 2023-11-08T14:50:38Z
---

# BIS_fnc_crewCount

*Function · Object Manipulation · Arma 3 v1.08*

## Description

Function that counts amount of seats, both for crew and cargo seats.

## Syntax

```sqf
param call BIS_fnc_crewCount
```

**Parameters:**

- [String](../topics/String.md) - classname of vehicle.
- [Boolean](../topics/Boolean.md) - true if cargo seats should be included (see notes)

**Returns:** [Number](../topics/Number.md) - amount of seats in vehicle.

## Examples

### Example 1

```sqf
crewCount = ["B_Heli_Light_01_F", false] call BIS_fnc_crewCount; // Counts all available seats excluding cargo slots. Returns 6 (see notes).
```

### Example 2

```sqf
crewCount = ["B_Heli_Transport_01_F", true] call BIS_fnc_crewCount; // Counts all available seats including cargo slots. Returns 12.
```

## See also

[crew](../commands/crew.md)

<sub>Source: [BI Community Wiki — BIS fnc crewCount](https://community.bistudio.com/wiki/BIS_fnc_crewCount) (revision 349180).</sub>
