# VEHICLE::SET_VEHICLE_DOOR_OPEN

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

## Signature

```c
void SET_VEHICLE_DOOR_OPEN(Vehicle vehicle, int doorId, BOOL loose, BOOL openInstantly);
```

## Parameters

- `vehicle` (`Vehicle`)
- `doorId` (`int`)
- `loose` (`BOOL`)
- `openInstantly` (`BOOL`)

## Returns

`void`

## Description

doorId: see SET_VEHICLE_DOOR_SHUT
Can also be used on trains and its wagons

## Usage

### Lua

```lua
SetVehicleDoorOpen(vehicle, doorId, loose, openInstantly)

-- always available, by hash
Citizen.InvokeNative(0x550CE392A4672412, vehicle, doorId, loose, openInstantly)
```

### JavaScript

```js
SetVehicleDoorOpen(vehicle, doorId, loose, openInstantly);

// by hash
Citizen.invokeNative('0x550CE392A4672412', vehicle, doorId, loose, openInstantly);
```

### C#

```csharp
Function.Call((Hash)0x550CE392A4672412, vehicle, doorId, loose, openInstantly);
```

## Related enums

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

*Sources: alloc8or RDR3 NativeDB.*
