note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
SetVehicleParamsCarWindows
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 windows of a vehicle.
Name | Description |
---|---|
vehicleid | The ID of the vehicle to set the window state of |
bool:frontLeft | The state of the driver's window. 0 to open, 1 to close. |
bool:frontRight | The state of the passenger window. 0 to open, 1 to close. |
bool:rearLeft | The state of the rear left window (if available). 0 to open, 1 to close. |
bool:rearRight | The state of the rear right window (if available). 0 to open, 1 to close. |
Returns
true - The function executed successfully.
false - The function failed to execute. This means the vehicle does not exist.
Related Functions
- SetVehicleParamsCarDoors: Open and close the doors of a vehicle.
- GetVehicleParamsCarDoors: Retrive the current state of a vehicle's doors.
- GetVehicleParamsCarWindows: Retrive the current state of a vehicle's windows