---
name: "BIS_fnc_hasItem"
type: function
status: ok
groups: ["Inventory"]
arma3_since: "1.94"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_hasItem
revid: 328409
updated: 2022-07-13T16:00:50Z
---

# BIS_fnc_hasItem

*Function · Inventory · Arma 3 v1.94*

## Description

Returns [true](../commands/true.md) if object contains given item in inventory / cargo storage.

> [!IMPORTANT]
> This function performs a deep search of inventory / cargo storage, thus is not suitable for per-frame execution.

## Syntax

```sqf
[object, item, searchCrew] call BIS_fnc_hasItem
```

**Parameters:**

- `object`: [Object](../topics/Object.md) or [Group](../topics/Group.md) - unit, vehicle, container or group of units (since v1.95)
- `item`: [String](../topics/String.md) - item to find
- `searchCrew`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) [true](../commands/true.md) to search vehicle crew as well if object is a vehicle

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if has item

## Examples

### Example 1

```sqf
[player, "ItemMap"] call BIS_fnc_hasItem;
```

### Example 2

```sqf
[tank, "FirstAidKit", true] call BIS_fnc_hasItem;
```

<sub>Source: [BI Community Wiki — BIS fnc hasItem](https://community.bistudio.com/wiki/BIS_fnc_hasItem) (revision 328409).</sub>
