# VEHICLE::SET_VEHICLE_DOOR_LATCHED

- **Hash:** `0x06F8A202EB312A3C`
- **Namespace:** VEHICLE
- **Runtime name (Lua/JS):** `SetVehicleDoorLatched`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/VEHICLE/SET_VEHICLE_DOOR_LATCHED

## Signature

```c
void SET_VEHICLE_DOOR_LATCHED(Vehicle vehicle, int doorId, BOOL p2, BOOL p3, BOOL p4);
```

## Parameters

- `vehicle` (`Vehicle`)
- `doorId` (`int`)
- `p2` (`BOOL`)
- `p3` (`BOOL`)
- `p4` (`BOOL`)

## Returns

`void`

## Description

doorId: see SET_VEHICLE_DOOR_SHUT

## Usage

### Lua

```lua
SetVehicleDoorLatched(vehicle, doorId, p2, p3, p4)

-- always available, by hash
Citizen.InvokeNative(0x06F8A202EB312A3C, vehicle, doorId, p2, p3, p4)
```

### JavaScript

```js
SetVehicleDoorLatched(vehicle, doorId, p2, p3, p4);

// by hash
Citizen.invokeNative('0x06F8A202EB312A3C', vehicle, doorId, p2, p3, p4);
```

### C#

```csharp
Function.Call((Hash)0x06F8A202EB312A3C, vehicle, doorId, p2, p3, p4);
```

## Related enums

- [eDoorId](https://natives.borderlinerp.com/enums/eDoorId.md) — 13 values

*Sources: alloc8or RDR3 NativeDB.*
