VehicleClient

getDoesVehicleHaveDamageDecals

GET_DOES_VEHICLE_HAVE_DAMAGE_DECALS0xBCDC5017D3CE1E9E

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

SignatureJavaScript
getDoesVehicleHaveDamageDecals(vehicle: Vehicle): boolean
SignatureLua
getDoesVehicleHaveDamageDecals(vehicle: Vehicle): boolean

Usage

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

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

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.

Appears to return true if the vehicle has any damage, including cosmetically.

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL GET_DOES_VEHICLE_HAVE_DAMAGE_DECALS(Vehicle vehicle)
Hash
0xBCDC5017D3CE1E9E
Formerly
_IS_VEHICLE_DAMAGED

Open in the interactive natives reference