RedM Natives

IS_VEHICLE_WINDOW_INTACT

Hash0xAC4EF23D
Runtime nameIsVehicleWindowIntact
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

BOOL IS_VEHICLE_WINDOW_INTACT(Vehicle vehicle, int windowIndex);

Parameters

NameTypeDescription
vehicleVehicle

The target vehicle.

windowIndexint

The window index.

Returns BOOL

Description

Cfx.re native reference

See the client-side IS_VEHICLE_WINDOW_INTACT for a window indexes list.

Usage

Lua
local retval = IsVehicleWindowIntact(vehicle, windowIndex)

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

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

Sources

Cfx.re native reference

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