GetVehicleParamsCarDoors

GetVehicleParamsCarDoors

Description:
Function GetVehicleParamsCarDoors allows you to retrieve the current state of a vehicle's doors.
Function GetVehicleParamsCarDoors was added in 0.3.7 and will not work in earlier versions!
The values returned in each variable are as follows:
  • -1: Door state not set
  • 1: Open
  • 0: Closed


Parameters:
(vehicleid, &driver, &passenger, &backleft, &backright)
int vehicleid The ID of the vehicle.
bool driver The integer to save the state of the driver's door to.
bool passenger The integer to save the state of the passenger's door to.
bool backleft The integer to save the state of the rear left door to (if available).
bool backright The integer to save the state of the rear right door to (if available).


Return Values:
The vehicle's doors state is stored in the specified variables.


Examples:
--


Related Functions
The following functions may be useful, as they are related to this function in one way or another.