getVehicleNumOfBrokenOffParts
GET_VEHICLE_NUM_OF_BROKEN_OFF_PARTS0x42A4BEB35D372407The GTA V native GET_VEHICLE_NUM_OF_BROKEN_OFF_PARTS of the VEHICLE namespace, as LS:MP client scripts call it: the global function getVehicleNumOfBrokenOffParts, in JavaScript and in Lua.
getVehicleNumOfBrokenOffParts(vehicle: Vehicle): numbergetVehicleNumOfBrokenOffParts(vehicle: Vehicle): integerUsage
JavaScript
const result = getVehicleNumOfBrokenOffParts(vehicle);Lua
local result = getVehicleNumOfBrokenOffParts(vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
Returns
int JavaScript number, Lua integerNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Also includes some "turnOffBones" when vehicle mods are installed.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
int GET_VEHICLE_NUM_OF_BROKEN_OFF_PARTS(Vehicle vehicle)- Hash
0x42A4BEB35D372407- Formerly
_GET_VEHICLE_NUMBER_OF_BROKEN_OFF_BONES