跳到主要內容

GetVehicleParamsCarDoors

注意

此函式於 SA-MP 0.3.7 版本中新增,在更早的版本中無法使用!

Description​

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

NameDescription
vehicleidThe ID of the vehicle
&frontLeftThe integer to save the state of the driver's door to.
&frontRightThe integer to save the state of the passenger's door to.
&rearLeftThe integer to save the state of the rear left door to (if available).
&rearRightThe integer to save the state of the rear right door to (if available).

Returns​

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

Notes​

備註

The values returned in each variable are as follows:

  • -1: Door state not set
  • 1: Open
  • 0: Closed