setDontProcessVehicleGlass
SET_DONT_PROCESS_VEHICLE_GLASS0x1087BC8EC540DAEBThe GTA V native SET_DONT_PROCESS_VEHICLE_GLASS of the VEHICLE namespace, as LS:MP client scripts call it: the global function setDontProcessVehicleGlass, in JavaScript and in Lua.
setDontProcessVehicleGlass(vehicle: Vehicle, toggle: boolean): voidsetDontProcessVehicleGlass(vehicle: Vehicle, toggle: boolean)Usage
JavaScript
setDontProcessVehicleGlass(vehicle, toggle);Lua
setDontProcessVehicleGlass(vehicle, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
toggle | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
R* used it to "remove" vehicle windows when "nightshark" had some mod, which adding some kind of armored windows. When enabled, you can't break vehicles glass. All your bullets wiil shoot through glass. You also will not able to break the glass with any other way (hitting and etc)
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_DONT_PROCESS_VEHICLE_GLASS(Vehicle vehicle, BOOL toggle)- Hash
0x1087BC8EC540DAEB- Introduced
- Game build 1103 legacy numbering
- Formerly
_SET_DISABLE_VEHICLE_WINDOW_COLLISIONS