SetVehicleParamsCarWindows

From SA-MP Wiki

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

← Previous diff
Revision as of 11:56, 13 January 2017
Burridge (Talk | contribs)

Next diff →
Line 1: Line 1:
{{Scripting}} {{Scripting}}
-{{AddedIn0.3.7|function}}+{{AddedIn|0.3.7||function}}
{{Description|Allows you to open and close the windows of a vehicle.}} {{Description|Allows you to open and close the windows of a vehicle.}}

Revision as of 11:56, 13 January 2017


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 windows of a vehicle.


Parameters:
(vehicleid, driver, passenger, backleft, backright)
vehicleidThe ID of the vehicle to set the window state of
driverThe state of the driver's window. 0 to open, 1 to close.
passengerThe state of the passenger window. 0 to open, 1 to close.
backleftThe state of the rear left window (if available). 0 to open, 1 to close.
backrightThe state of the rear right window (if available). 0 to open, 1 to close.


Related Functions

The following functions may be helpful as they relate to this function in one way or another.

Personal tools