The Lab
ENTITY native

_GET_LAST_ENTITY_TO_DAMAGE_ENTITY

returns Entity1 parambuild 1311

Returns the last entity that damaged the given entity.

Signature

C
Entity _GET_LAST_ENTITY_TO_DAMAGE_ENTITY(Entity entity); // 0xAF72EC7E1B54539B b1311

Parameters

#NameType
1entityEntity

Facts

Facts about _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
Name
_GET_LAST_ENTITY_TO_DAMAGE_ENTITY
Hash
0xAF72EC7E1B54539B
Namespace
Returns
Entity
Game build
1311

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local entity = Citizen.InvokeNative(0xAF72EC7E1B54539B, -- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
  PlayerPedId(), -- Entity entity
  Citizen.ResultAsInteger()
)
print(entity)
JavaScript
const entity = Citizen.invokeNative("0xAF72EC7E1B54539B", // _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
  PlayerPedId(), // Entity entity
  Citizen.resultAsInteger()
);
console.log(entity)
C#
int entity = Function.Call<int>((Hash)0xAF72EC7E1B54539B, // _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
  API.PlayerPedId() // Entity entity
);
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.