EntityClient

getLastMaterialHitByEntity

GET_LAST_MATERIAL_HIT_BY_ENTITY0x5C3D0A935F535C4C

The 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.

SignatureJavaScript
getLastMaterialHitByEntity(entity: Entity): Hash
SignatureLua
getLastMaterialHitByEntity(entity: Entity): Hash

Usage

JavaScript
const hash = getLastMaterialHitByEntity(entity);
Lua
local hash = getLastMaterialHitByEntity(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

Hash JavaScript number, Lua integer

A 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

Open in the interactive natives reference