إنتقل إلى المحتوى الرئيسي

SetVehicleParamsCarWindows

تحذير

أُضيف هذا العنصر (دالة) في الإصدار SA-MP 0.3.7 ولا يعمل في الإصدارات الأقدم!

Description​

Allows you to open and close the windows of a vehicle.

NameDescription
vehicleidThe ID of the vehicle to set the window state of
frontLeftThe state of the driver's window. 0 to open, 1 to close.
frontRightThe state of the passenger window. 0 to open, 1 to close.
rearLeftThe state of the rear left window (if available). 0 to open, 1 to close.
rearRightThe state of the rear right window (if available). 0 to open, 1 to close.

Returns​

true - The function executed successfully.

false - The function failed to execute. This means the vehicle does not exist.