SetVehicleParamsCarWindows

SetVehicleParamsCarWindows

Description:
Function SetVehicleParamsCarWindows allows you to open and close the windows of a vehicle.
Function SetVehicleParamsCarWindows was added in 0.3.7 and will not work in earlier versions!


Parameters:
(vehicleid, driver, passenger, backleft, backright)
int vehicleid The ID of the vehicle to set the window state of.
bool driver The state of the driver's window. 0 to open, 1 to close.
bool passenger The state of the passenger window. 0 to open, 1 to close.
bool backleft The state of the rear left window (if available). 0 to open, 1 to close.
bool backright The state of the rear right window (if available). 0 to open, 1 to close.


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


Examples:
--


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