fixVehicleWindow
FIX_VEHICLE_WINDOW0x772282EBEB95E682The GTA V native FIX_VEHICLE_WINDOW of the VEHICLE namespace, as LS:MP client scripts call it: the global function fixVehicleWindow, in JavaScript and in Lua.
fixVehicleWindow(vehicle: Vehicle, windowIndex: number): voidfixVehicleWindow(vehicle: Vehicle, windowIndex: integer)Usage
fixVehicleWindow(vehicle, windowIndex);fixVehicleWindow(vehicle, windowIndex)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
windowIndex | int | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
On 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 Left Window
1 = Front Right Window
2 = Rear Left Window
3 = Rear Right Window
4 = Front Windscreen
5 = Rear Windscreen
6 = Mid Left
7 = Mid Right
8 = Invalid
Additional information: fixVehicleWindow (0x140D0BB88) references an array of bone vehicle indices (0x141D4B3E0) { 2Ah, 2Bh, 2Ch, 2Dh, 2Eh, 2Fh, 28h, 29h } that correspond to: window_lf, window_rf, window_lr, window_rr, window_lm, window_rm, windscreen, windscreen_r. This array is used by most vehwindow natives.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void FIX_VEHICLE_WINDOW(Vehicle vehicle, int windowIndex)- Hash
0x772282EBEB95E682