RedM Natives

IS_VEHICLE_WINDOW_INTACT

Hash0x0E7910A63E05B12C
Runtime nameIsVehicleWindowIntact
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1436
GTA V hash0x46E571A0E20D01F1

Signature

BOOL IS_VEHICLE_WINDOW_INTACT(Vehicle vehicle, int windowIndex);

Parameters

NameTypeDescription
vehicleVehicle—
windowIndexint—

Returns BOOL

Usage

Lua
local retval = IsVehicleWindowIntact(vehicle, windowIndex)

-- always works, by hash
local retval = Citizen.InvokeNative(0x0E7910A63E05B12C, vehicle, windowIndex, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsVehicleWindowIntact(vehicle, windowIndex);

// by hash
const retval = Citizen.invokeNative('0x0E7910A63E05B12C', vehicle, windowIndex, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x0E7910A63E05B12C, vehicle, windowIndex);

Enums and flags

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.