---
name: "getCruiseControl"
type: command
status: ok
groups: ["Unit Control", "Object Manipulation"]
arma3_since: "2.06"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/getCruiseControl
revid: 377878
updated: 2026-01-04T15:56:01Z
---

# getCruiseControl

*Command · Unit Control, Object Manipulation · Arma 3 v2.06*

Locality: arguments **local** · effect **local**

## Description

Returns cruise control settings set with [setCruiseControl](../commands/setCruiseControl.md) command.

## Syntax

```sqf
getCruiseControl vehicle
```

**Parameters:**

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

**Returns:** [Array](../topics/Array.md) with [speedLimit, cruiseControlActive]
- speedLimit: [Number](../topics/Number.md) - defined speed limit
- cruiseControlActive: [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if cruise control is enabled, [false](../commands/false.md) if only speed was limited

## Examples

### Example 1

```sqf
getCruiseControl vehicle player params ["_speedLimit", "_cruiseControlActive"];
```

## See also

[setCruiseControl](../commands/setCruiseControl.md) · [limitSpeed](../commands/limitSpeed.md) · [forceSpeed](../commands/forceSpeed.md) · [setAirplaneThrottle](../commands/setAirplaneThrottle.md)

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