---
title: "GetVehicleParamsCarWindows | open.mp"
description: "Allows you to retrieve the current state of a vehicle's windows."
canonical: https://omp.itsneufox.com/docs/scripting/functions/GetVehicleParamsCarWindows
language: en
---

# GetVehicleParamsCarWindows

warning

This function was added in SA-MP 0.3.7 and will not work in earlier versions!

## Description

Allows you to retrieve the current state of a vehicle's windows

| Name | Description |
| --- | --- |
| vehicleid | The ID of the vehicle |
| &frontLeft | The integer to save the state of the drivers window to. |
| &frontRight | The integer to save the state of the passengers window to. |
| &rearLeft | The integer to save the state of the rear left window to (if available). |
| &rearRight | The integer to save the state of the rear right window to (if available). |

## Returns

The vehicle's windows state is stored in the specified variables.

## Notes

note

The values returned in each variable are as follows:

-   **\-1**: Window state not set (generally closed, unless set explicitly to -1)
-   **0**: Open
-   **1**: Closed

## Related Functions

-   [SetVehicleParamsCarWindows](https://omp.itsneufox.com/docs/scripting/functions/SetVehicleParamsCarWindows): Open and close the windows of a vehicle.
-   [GetVehicleParamsCarDoors](https://omp.itsneufox.com/docs/scripting/functions/GetVehicleParamsCarDoors): Retrive the current state of a vehicle's doors.
-   [SetVehicleParamsCarDoors](https://omp.itsneufox.com/docs/scripting/functions/SetVehicleParamsCarDoors): Open and close the doors of a vehicle.
