isExtraBrokenOff
IS_EXTRA_BROKEN_OFF0x534E36D4DB9ECC5DThe 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.
isExtraBrokenOff(vehicle: Vehicle, extraId: number): booleanisExtraBrokenOff(vehicle: Vehicle, extraId: integer): booleanUsage
JavaScript
const result = isExtraBrokenOff(vehicle, extraId);Lua
local result = isExtraBrokenOff(vehicle, extraId)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
extraId | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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