---
name: "canAddItemToUniform"
type: command
status: ok
groups: ["Unit Inventory"]
arma3_since: "1.04"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/canAddItemToUniform
revid: 376946
updated: 2025-12-31T22:55:22Z
---

# canAddItemToUniform

*Command · Unit Inventory · Arma 3 v1.04*

## Description

Checks if given object can be stored into soldier's uniform.

> [!IMPORTANT]
> Avoid passing an empty string `""` to this command as it will create a warning dialog:
>
> This message will show once per mission restart.

## Syntax

### Syntax 1

```sqf
unit canAddItemToUniform item
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)
- `item`: [String](../topics/String.md)

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

### Syntax 2

*since arma3 1.56*

```sqf
unit canAddItemToUniform [item, count, ignoreSoldierMaxLoad]
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)
- `item`: [String](../topics/String.md)
- `count`: [Number](../topics/Number.md)
- `ignoreSoldierMaxLoad`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) [true](../commands/true.md) to ignore 'soldierMaxLoad' param, container [maxLoad](../commands/maxLoad.md) is still counted. *(since arma3 2.18)*

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

## Examples

### Example 1

```sqf
_item = "HandGrenade";
_fits = player canAddItemToUniform _item;
if (_fits) then
{
    player addItemToUniform _item;
}
else
{
    hint "no room!";
};
```

## See also

[canAdd](../commands/canAdd.md) · [canAddItemToBackpack](../commands/canAddItemToBackpack.md) · [canAddItemToVest](../commands/canAddItemToVest.md)

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