GetVehicleDoorState

From GTA Network Wiki
Jump to: navigation, search

GetVehicleDoorState
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Will return whether a specific vehicle door is opened or closed. If it returns true it is open and it returns false it is closed.

Syntax

bool NAPI.Vehicle.GetVehicleDoorState(Vehicle vehicle, int door);
  • vehicle: parameter input should be in Vehicle type.
  • door: parameter input should be in int type.

Usage example(s)

if (NAPI.Vehicle.GetVehicleDoorState(someVehicleHandle, 0)) {
  // The door is open!
}

Changelog

Version Description
1.0 Release.

References