VehicleClient

isVehicleTyreBurst

IS_VEHICLE_TYRE_BURST0xBA291848A0815CA9

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

SignatureJavaScript
isVehicleTyreBurst(
  vehicle: Vehicle,
  wheelID: number,
  completely: boolean
): boolean
SignatureLua
isVehicleTyreBurst(
  vehicle: Vehicle,
  wheelID: integer,
  completely: boolean
): boolean

Usage

JavaScript
const result = isVehicleTyreBurst(vehicle, wheelID, completely);
Lua
local result = isVehicleTyreBurst(vehicle, wheelID, completely)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
wheelIDintnumberinteger
completelyBOOLbooleanboolean

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.

wheelID used for 4 wheelers seem to be (0, 1, 4, 5)
completely - is to check if tire completely gone from rim.

'0 = wheel_lf / bike, plane or jet front
'1 = wheel_rf
'2 = wheel_lm / in 6 wheels trailer, plane or jet is first one on left
'3 = wheel_rm / in 6 wheels trailer, plane or jet is first one on right
'4 = wheel_lr / bike rear / in 6 wheels trailer, plane or jet is last one on left
'5 = wheel_rr / in 6 wheels trailer, plane or jet is last one on right
'45 = 6 wheels trailer mid wheel left
'47 = 6 wheels trailer mid wheel right

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL IS_VEHICLE_TYRE_BURST(Vehicle vehicle, int wheelID, BOOL completely)
Hash
0xBA291848A0815CA9

Open in the interactive natives reference