GetVehicleParamsCarDoors
From SA-MP Wiki
Description:
Allows you to retrieve the current state of a vehicle's doors
(vehicleid, &driver, &passenger, &backleft, &backright)
vehicleid | The ID of the vehicle |
&driver | The integer to save the state of the driver's door to. |
&passenger | The integer to save the state of the passenger's door to. |
&backleft | The integer to save the state of the rear left door to (if available). |
&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.
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SetVehicleParamsCarDoors: Open and close the doors of a vehicle.
- SetVehicleParamsCarWindows: Open and close the windows of a vehicle.
- GetVehicleParamsCarWindows: Retrive the current state of a vehicle's windows