VehicleClient

areAllVehicleWindowsIntact

ARE_ALL_VEHICLE_WINDOWS_INTACT0x11D862A3E977A9EF

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

SignatureJavaScript
areAllVehicleWindowsIntact(vehicle: Vehicle): boolean
SignatureLua
areAllVehicleWindowsIntact(vehicle: Vehicle): boolean

Usage

JavaScript
const result = areAllVehicleWindowsIntact(vehicle);
Lua
local result = areAllVehicleWindowsIntact(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Appears to return false if any window is broken.

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL ARE_ALL_VEHICLE_WINDOWS_INTACT(Vehicle vehicle)
Hash
0x11D862A3E977A9EF
Formerly
_ARE_ALL_VEHICLE_WINDOWS_INTACT

Open in the interactive natives reference