SetVehicleParamsCarDoors

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 11:55, 13 January 2017
Burridge (Talk | contribs)

← Previous diff
Current revision
OstGot (Talk | contribs)

Line 10: Line 10:
{{Param|backleft|The state of the rear left door (if available). '''1''' to open, '''0''' to close.}} {{Param|backleft|The state of the rear left door (if available). '''1''' to open, '''0''' to close.}}
{{Param|backright|The state of the rear right door (if available). '''1''' to open, '''0''' to close.}} {{Param|backright|The state of the rear right door (if available). '''1''' to open, '''0''' to close.}}
 +
 +{{ReturnsSuccess||This means the vehicle does not exist.}}
{{RelatedFunctions}} {{RelatedFunctions}}

Current revision


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.


Parameters:
(vehicleid, driver, passenger, backleft, backright)
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.


Return Values:

  • 1: The function executed successfully.
  • 0: The function failed to execute. This means the vehicle does not exist.


Related Functions

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

Personal tools