EntityClient

hasEntityBeenDamagedByAnyVehicle

HAS_ENTITY_BEEN_DAMAGED_BY_ANY_VEHICLE0xDFD5033FDBA0A9C8

The GTA V native HAS_ENTITY_BEEN_DAMAGED_BY_ANY_VEHICLE of the ENTITY namespace, as LS:MP client scripts call it: the global function hasEntityBeenDamagedByAnyVehicle, in JavaScript and in Lua.

SignatureJavaScript
hasEntityBeenDamagedByAnyVehicle(entity: Entity): boolean
SignatureLua
hasEntityBeenDamagedByAnyVehicle(entity: Entity): boolean

Usage

JavaScript
const result = hasEntityBeenDamagedByAnyVehicle(entity);
Lua
local result = hasEntityBeenDamagedByAnyVehicle(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Entity ENTITY
In the game
BOOL HAS_ENTITY_BEEN_DAMAGED_BY_ANY_VEHICLE(Entity entity)
Hash
0xDFD5033FDBA0A9C8

Open in the interactive natives reference