# CFX::GET_VEHICLE_DOOR_STATUS

- **Hash:** `0x6E35C49C`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetVehicleDoorStatus`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_DOOR_STATUS

## Signature

```c
int GET_VEHICLE_DOOR_STATUS(Vehicle vehicle, int doorIndex);
```

## Parameters

- `vehicle` (`Vehicle`) — The target vehicle.
- `doorIndex` (`int`) — Index of door to check (0-6).

## Returns

`int` — A number from 0 to 7.

## Description

*Source: Cfx.re native reference*

Returns the open position of the specified door on the target vehicle.

## Usage

### Lua

```lua
local retval = GetVehicleDoorStatus(vehicle, doorIndex)

-- always available, by hash
local retval = Citizen.InvokeNative(0x6e35c49c, vehicle, doorIndex, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetVehicleDoorStatus(vehicle, doorIndex);

// by hash
const retval = Citizen.invokeNative('0x6e35c49c', vehicle, doorIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x6e35c49c, vehicle, doorIndex);
```

*Sources: Cfx.re native reference.*
