RedM Natives

HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY

Hash0x7B6E7BEC1143AC86
Runtime nameHasEntityBeenDamagedByEntity
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xC86D67D52A707CF8

Signature

BOOL HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY(Entity entity1, Entity entity2, BOOL p2, BOOL p3);

Parameters

NameTypeDescription
entity1Entity—
entity2Entity—
p2BOOL—
p3BOOL—

Returns BOOL

Usage

Lua
local retval = HasEntityBeenDamagedByEntity(entity1, entity2, p2, p3)

-- always works, by hash
local retval = Citizen.InvokeNative(0x7B6E7BEC1143AC86, entity1, entity2, p2, p3, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = HasEntityBeenDamagedByEntity(entity1, entity2, p2, p3);

// by hash
const retval = Citizen.invokeNative('0x7B6E7BEC1143AC86', entity1, entity2, p2, p3, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x7B6E7BEC1143AC86, entity1, entity2, p2, p3);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.