---
name: "setMaxLoad"
type: command
status: ok
groups: ["Unit Inventory"]
arma3_since: "2.08"
locality: {"argument": null, "effect": null, "server_exec": true}
source: https://community.bistudio.com/wiki/setMaxLoad
revid: 309142
updated: 2022-05-03T11:53:13Z
---

# setMaxLoad

*Command · Unit Inventory · Arma 3 v2.08*

Locality: **server execution only**

## Description

Sets maximum load limit for a uniform/vest/backpack containers, vehicle cargo, supply boxes and weapon holders. In MP this command should be executed on the server and will persist on given container for JIP.

> [!NOTE]
> Cannot be set on a unit, as unit max load value is static config type

## Syntax

```sqf
container setMaxLoad maxLoadValue
```

**Parameters:**

- `container`: [Object](../topics/Object.md) - uniform/vest/backpack container, vehicle cargo, supply box, weapon holder
- `maxLoadValue`: [Number](../topics/Number.md) - max load limit

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

## Examples

### Example 1

```sqf
_yaMum setMaxLoad _maxLoad;
```

## See also

[maxLoad](../commands/maxLoad.md) · [load](../commands/load.md) · [loadAbs](../commands/loadAbs.md) · [loadBackpack](../commands/loadBackpack.md) · [loadUniform](../commands/loadUniform.md) · [loadVest](../commands/loadVest.md) · [getContainerMaxLoad](../commands/getContainerMaxLoad.md)

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