SetVehicleParamsCarDoors
From SA-MP Wiki
Revision as of 08:03, 7 September 2019; view current revision
←Older revision | Newer revision→
←Older revision | Newer revision→
Description:
Allows you to open and close the doors of a vehicle.
(vehicleid, driver, passenger, backleft, backright)
vehicleid | The ID of the vehicle to set the door state of |
driver | The state of the driver's door. 1 to open, 0 to close. |
passenger | The state of the passenger door. 1 to open, 0 to close. |
backleft | The state of the rear left door (if available). 1 to open, 0 to close. |
backright | The state of the rear right door (if available). 1 to open, 0 to close. |
Return Values:
- 1: The function executed successfully.
- 0: The function failed to execute. This means the vehicle does not exist.
[edit]
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- GetVehicleParamsCarDoors: Retrive the current state of a vehicle's doors.
- SetVehicleParamsCarWindows: Open and close the windows of a vehicle.
- GetVehicleParamsCarWindows: Retrive the current state of a vehicle's windows