SetVehicleParamsCarDoors

warning

This function was added in SA-MP 0.3.7 and will not work in earlier versions!

Description

Allows you to open and close the doors of a vehicle.

NameDescription
vehicleidThe ID of the vehicle to set the door state of
driverThe state of the driver's door. 1 to open, 0 to close.
passengerThe state of the passenger door. 1 to open, 0 to close.
backleftThe state of the rear left door (if available). 1 to open, 0 to close.
backrightThe state of the rear right door (if available). 1 to open, 0 to close.

Returns

[edit]

Related Functions