---
name: "lockedCargo"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/lockedCargo
revid: 321015
updated: 2022-05-13T11:15:18Z
---

# lockedCargo

*Command · Object Manipulation · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Check whether cargo position of the vehicle is locked.

## Syntax

```sqf
vehicle lockedCargo cargoIndex
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md)
- `cargoIndex`: [Number](../topics/Number.md)

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

## Examples

### Example 1

```sqf
_result = vehicleName lockedCargo 0;
```

## See also

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

## Community notes

**AgentRev** — 2016-05-04

For some vehicles, the command returns [Nothing](../topics/Nothing.md) if the cargo index is invalid (i.e. -1)

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