VehicleClient

isExtraBrokenOff

IS_EXTRA_BROKEN_OFF0x534E36D4DB9ECC5D

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

SignatureJavaScript
isExtraBrokenOff(vehicle: Vehicle, extraId: number): boolean
SignatureLua
isExtraBrokenOff(vehicle: Vehicle, extraId: integer): boolean

Usage

JavaScript
const result = isExtraBrokenOff(vehicle, extraId);
Lua
local result = isExtraBrokenOff(vehicle, extraId)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
extraIdintnumberinteger

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.

Returns true if specified extra part is broken off. It only works for extras that can break off during collisions, non-breakable extras always return false. Also returns true if the breakable extra is toggled off through script.

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL IS_EXTRA_BROKEN_OFF(Vehicle vehicle, int extraId)
Hash
0x534E36D4DB9ECC5D
Introduced
Game build 1493 legacy numbering
Formerly
_DOES_VEHICLE_TYRE_EXIST

Open in the interactive natives reference