முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

GetVehicleParamsCarWindows

எச்சரிக்கை

செயல்பாடு என்பது SA-MP 0.3.7 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

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

NameDescription
vehicleidThe ID of the vehicle
&frontLeftThe integer to save the state of the drivers window to.
&frontRightThe integer to save the state of the passengers window to.
&rearLeftThe integer to save the state of the rear left window to (if available).
&rearRightThe 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​

குறிப்பு

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