IS_VEHICLE_WINDOW_INTACT
Signature
BOOL IS_VEHICLE_WINDOW_INTACT(Vehicle vehicle, int windowIndex);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The target vehicle. |
windowIndex | int | The window index. |
Returns BOOL
Description
See the client-side IS_VEHICLE_WINDOW_INTACT for a window indexes list.
Usage
local retval = IsVehicleWindowIntact(vehicle, windowIndex)
-- always works, by hash
local retval = Citizen.InvokeNative(0xac4ef23d, vehicle, windowIndex, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsVehicleWindowIntact(vehicle, windowIndex);
// by hash
const retval = Citizen.invokeNative('0xac4ef23d', vehicle, windowIndex, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xac4ef23d, vehicle, windowIndex);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.