GET_VEHICLE_DOOR_STATUS
Returns the open position of the specified door on the target vehicle.
Signature
int GET_VEHICLE_DOOR_STATUS(Vehicle vehicle, int doorIndex);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The target vehicle. |
doorIndex | int | Index of door to check (0-6). |
Returns int — A number from 0 to 7.
Description
Returns the open position of the specified door on the target vehicle.
Usage
local retval = GetVehicleDoorStatus(vehicle, doorIndex)
-- always works, by hash
local retval = Citizen.InvokeNative(0x6e35c49c, vehicle, doorIndex, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetVehicleDoorStatus(vehicle, doorIndex);
// by hash
const retval = Citizen.invokeNative('0x6e35c49c', vehicle, doorIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x6e35c49c, vehicle, doorIndex);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.