GetVehicleParamsCarWindows

From SA-MP Wiki

Jump to: navigation, search

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


Parameters:
(vehicleid, &driver, &passenger, &backleft, &backright)
vehicleidThe ID of the vehicle
&driverThe integer to save the state of the drivers window to.
&passengerThe integer to save the state of the passengers window to.
&backleftThe integer to save the state of the rear left window to (if available).
&backrightThe integer to save the state of the rear right window to (if available).


Return Values:

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


Image:32px-Ambox_warning_orange.png

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

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

Personal tools