முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

SetVehicleParamsCarDoors

எச்சரிக்கை

செயல்பாடு என்பது SA-MP 0.3.7 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

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

NameDescription
vehicleidThe ID of the vehicle to set the door state of
frontLeftThe state of the driver's door. 1 to open, 0 to close.
frontRightThe state of the passenger door. 1 to open, 0 to close.
rearLeftThe state of the rear left door (if available). 1 to open, 0 to close.
rearRightThe state of the rear right door (if available). 1 to open, 0 to close.

Returns​

true - The function executed successfully.

false - The function failed to execute. This means the vehicle does not exist.