VehicleClientChecked by LS:MP

isVehicleDoorFullyOpen

IS_VEHICLE_DOOR_FULLY_OPEN0x3E933CFF7B111C22

The GTA V native IS_VEHICLE_DOOR_FULLY_OPEN of the VEHICLE namespace, as LS:MP client scripts call it: the global function isVehicleDoorFullyOpen, in JavaScript and in Lua.

SignatureJavaScript
isVehicleDoorFullyOpen(vehicle: Vehicle, doorId: number): boolean
SignatureLua
isVehicleDoorFullyOpen(vehicle: Vehicle, doorId: integer): boolean

Usage

JavaScript
const result = isVehicleDoorFullyOpen(vehicle, doorId);
Lua
local result = isVehicleDoorFullyOpen(vehicle, doorId)

Parameters

ParameterTypeJavaScriptLuaDescription
vehicleVehiclenumberinteger
doorIdintnumberintegersee setVehicleDoorShut

Returns

BOOL JavaScript boolean, Lua boolean

On LS:MP

ℹ
Checked by LS:MP

doorId must be between 0 and 6. Otherwise the call is ignored and returns false: nothing reaches the game, and no error is raised.

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL IS_VEHICLE_DOOR_FULLY_OPEN(Vehicle vehicle, int doorId)
Hash
0x3E933CFF7B111C22

Open in the interactive natives reference