Skip to main content

GetVehicleParamsCarWindows

warning

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

คำอธิบาย​

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

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

ส่งคืน​

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

บันทึก​

หมายเหตุ

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

ฟังก์ชั่นที่เกี่ยวข้องกัน​

  • SetVehicleParamsCarWindows: Open and close the windows of a vehicle.
  • GetVehicleParamsCarDoors: Retrive the current state of a vehicle's doors.
  • SetVehicleParamsCarDoors: Open and close the doors of a vehicle.