getDoesVehicleHaveDamageDecals
GET_DOES_VEHICLE_HAVE_DAMAGE_DECALS0xBCDC5017D3CE1E9EThe 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.
getDoesVehicleHaveDamageDecals(vehicle: Vehicle): booleangetDoesVehicleHaveDamageDecals(vehicle: Vehicle): booleanUsage
JavaScript
const result = getDoesVehicleHaveDamageDecals(vehicle);Lua
local result = getDoesVehicleHaveDamageDecals(vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | 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.
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