Vehicle::isDoorFullyOpen

From RAGE Multiplayer Wiki
Jump to navigation Jump to search


Syntax

vehicle.isDoorFullyOpen(doorIndex);

Required Arguments

  • doorIndex: int

Doors

  • 0 = Front Left Door
  • 1 = Front Right Door
  • 2 = Back Left Door
  • 3 = Back Right Door
  • 4 = Hood
  • 5 = Trunk
  • 6 = Trunk2

Return value

  • Boolean

Example

let vehicle = mp.players.local.vehicle;

if (vehicle.isDoorFullyOpen(1)) { // If the Front left door is fully open
vehicle.setDoorShut(1, false); // Close it gently.
}

See also