---
name: "lockDriver"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/lockDriver
revid: 364987
updated: 2024-07-04T19:58:05Z
---

# lockDriver

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

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

## Description

Lock the driver position of the vehicle. This command must be executed where vehicle is [local](../topics/Multiplayer_Scripting.md#locality). This command will remove user get in action (not get out) but will also stop player getting into vehicle via script commands unlike [lock](../commands/lock.md) command

## Syntax

```sqf
vehicle lockDriver lock
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
vehicleName lockDriver true;
```

## See also

[lock](../commands/lock.md) · [setVehicleLock](../commands/setVehicleLock.md) · [lockedDriver](../commands/lockedDriver.md) · [lockCargo](../commands/lockCargo.md) · [lockTurret](../commands/lockTurret.md)

## Community notes

**Sa-Matra** — 2023-04-03

Locked seats also aren't allowed to be controlled remotely through UAV terminal.

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