RedM Natives

GET_VEHICLE_DOOR_STATUS

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

Hash0x6E35C49C
Runtime nameGetVehicleDoorStatus
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

int GET_VEHICLE_DOOR_STATUS(Vehicle vehicle, int doorIndex);

Parameters

NameTypeDescription
vehicleVehicle

The target vehicle.

doorIndexint

Index of door to check (0-6).

Returns int — A number from 0 to 7.

Description

Cfx.re native reference

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

Usage

Lua
local retval = GetVehicleDoorStatus(vehicle, doorIndex)

-- always works, by hash
local retval = Citizen.InvokeNative(0x6e35c49c, vehicle, doorIndex, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetVehicleDoorStatus(vehicle, doorIndex);

// by hash
const retval = Citizen.invokeNative('0x6e35c49c', vehicle, doorIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x6e35c49c, vehicle, doorIndex);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.