VehicleClient

getVehicleNumOfBrokenOffParts

GET_VEHICLE_NUM_OF_BROKEN_OFF_PARTS0x42A4BEB35D372407

The 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.

SignatureJavaScript
getVehicleNumOfBrokenOffParts(vehicle: Vehicle): number
SignatureLua
getVehicleNumOfBrokenOffParts(vehicle: Vehicle): integer

Usage

JavaScript
const result = getVehicleNumOfBrokenOffParts(vehicle);
Lua
local result = getVehicleNumOfBrokenOffParts(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

int JavaScript number, Lua integer

Notes

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

Open in the interactive natives reference