---
name: "getVehicleCargo"
type: command
status: ok
groups: ["Vehicle in Vehicle Transport"]
arma3_since: "1.62"
locality: {"argument": "global", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/getVehicleCargo
revid: 330010
updated: 2022-08-14T12:55:01Z
---

# getVehicleCargo

*Command · Vehicle in Vehicle Transport · Arma 3 v1.62*

Locality: arguments **global** · effect **global**

## Description

Get a list of vehicles loaded as cargo inside this vehicle. The returned array is in the order the cargo vehicles were added to containing vehicle.

## Syntax

```sqf
getVehicleCargo storingVehicle
```

**Parameters:**

- `storingVehicle`: [Object](../topics/Object.md)

**Returns:** [Array](../topics/Array.md) - vehicles loaded in storingVehicle, in order of their loading

## Examples

### Example 1

```sqf
_vehicleCargo = getVehicleCargo blackfish; // returns [] if empty
```

### Example 2

```sqf
_vehicleCargo = getVehicleCargo blackfish; // returns [quad_3, quad_1, quad_2] as they were loaded in this order
```

## See also

Arma 3: Vehicle in Vehicle Transport · [canVehicleCargo](../commands/canVehicleCargo.md) · [setVehicleCargo](../commands/setVehicleCargo.md) · [enableVehicleCargo](../commands/enableVehicleCargo.md) · [isVehicleCargo](../commands/isVehicleCargo.md) · [vehicleCargoEnabled](../commands/vehicleCargoEnabled.md)

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