VehicleClientChecked by LS:MP

removeVehicleWindow

REMOVE_VEHICLE_WINDOW0xA711568EEDB43069

The GTA V native REMOVE_VEHICLE_WINDOW of the VEHICLE namespace, as LS:MP client scripts call it: the global function removeVehicleWindow, in JavaScript and in Lua.

SignatureJavaScript
removeVehicleWindow(vehicle: Vehicle, windowIndex: number): void
SignatureLua
removeVehicleWindow(vehicle: Vehicle, windowIndex: integer)

Usage

JavaScript
removeVehicleWindow(vehicle, windowIndex);
Lua
removeVehicleWindow(vehicle, windowIndex)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
windowIndexintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

On LS:MP

ℹ
Checked by LS:MP

windowIndex must be between 0 and 7. Otherwise the call is ignored: nothing reaches the game, and no error is raised.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

windowIndex:
0 = Front Right Window
1 = Front Left Window
2 = Back Right Window
3 = Back Left Window
4 = Unknown
5 = Unknown
6 = Windscreen
7 = Rear Windscreen

Reference

Namespace
Vehicle VEHICLE
In the game
void REMOVE_VEHICLE_WINDOW(Vehicle vehicle, int windowIndex)
Hash
0xA711568EEDB43069

Open in the interactive natives reference