open.mp | SetVehicleParamsCarWindows
  • Home
  • FAQ
  • Forum
  • Servers
  • Docs
  • Blog
  • Login
  • Englishاللغة العربيةar-TNবাংলাbosanski jezikDeutschΕλληνικάEspañoleestiفارسیFrançaisHrvatskimagyarBahasa IndonesiaItaliano日本語ქართულიlietuvių kalbaNederlandsNorskjęzyk polskiPortuguêsRomânăРусскийslovenski jezikсрпски језикไทยWikang TagalogTürkçeУкраїнськаاردوTiếng Việt简体中文繁體中文
warning Not Translated

This page has not been translated into the language that your browser requested. The English content is being shown as a fallback.

If you want to contribute a translation for 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.

NameDescription
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.

Returns

[edit]

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

Community

  • Discord
  • Instagram
  • Twitter
  • Twitch
  • YouTube
  • Facebook
  • VK

More

  • SA-MP
  • Blog
  • GitHub