getLastEntityHitByEntity
_GET_LAST_ENTITY_HIT_BY_ENTITY0xA75EE4F689B85391The GTA V native _GET_LAST_ENTITY_HIT_BY_ENTITY of the ENTITY namespace, as LS:MP client scripts call it: the global function getLastEntityHitByEntity, in JavaScript and in Lua.
getLastEntityHitByEntity(entity: Entity): EntitygetLastEntityHitByEntity(entity: Entity): EntityUsage
JavaScript
const result = getLastEntityHitByEntity(entity);Lua
local result = getLastEntityHitByEntity(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
Entity JavaScript number, Lua integerGame handle of an entity: a ped, a vehicle or an object. Not an LS:MP netId. Convert one with lsmp.getEntityFromNetId.
Reference
- Namespace
- Entity ENTITY
- In the game
Entity _GET_LAST_ENTITY_HIT_BY_ENTITY(Entity entity)- Hash
0xA75EE4F689B85391- Introduced
- Game build 2802 legacy numbering