getLastMaterialHitByEntity
GET_LAST_MATERIAL_HIT_BY_ENTITY0x5C3D0A935F535C4CThe GTA V native GET_LAST_MATERIAL_HIT_BY_ENTITY of the ENTITY namespace, as LS:MP client scripts call it: the global function getLastMaterialHitByEntity, in JavaScript and in Lua.
getLastMaterialHitByEntity(entity: Entity): HashgetLastMaterialHitByEntity(entity: Entity): HashUsage
JavaScript
const hash = getLastMaterialHitByEntity(entity);Lua
local hash = getLastMaterialHitByEntity(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
Hash JavaScript number, Lua integerA game hash. Natives return it unsigned (0 to 4294967295), the value lsmp.hash gives. As an argument, the signed and unsigned forms of a hash are the same value.
Reference
- Namespace
- Entity ENTITY
- In the game
Hash GET_LAST_MATERIAL_HIT_BY_ENTITY(Entity entity)- Hash
0x5C3D0A935F535C4C