networkGetEntityKillerOfPlayer
NETWORK_GET_ENTITY_KILLER_OF_PLAYER0x42B2DAA6B596F5F8The GTA V native NETWORK_GET_ENTITY_KILLER_OF_PLAYER of the NETWORK namespace, as LS:MP client scripts call it: the global function networkGetEntityKillerOfPlayer, in JavaScript and in Lua.
networkGetEntityKillerOfPlayer(player: Player): [
entity: Entity,
weaponHash: Hash
]networkGetEntityKillerOfPlayer(player: Player): Entity, HashUsage
JavaScript
const [entity, weaponHash] = networkGetEntityKillerOfPlayer(player);Lua
local entity, weaponHash = networkGetEntityKillerOfPlayer(player)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
player | Player | number | integer |
Returns
2 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | entity | Entity | number | integer | The native’s own return value. |
| 2 | weaponHash | Hash | number | integer | output |
Reference
- Namespace
- Network NETWORK
- In the game
Entity NETWORK_GET_ENTITY_KILLER_OF_PLAYER(Player player, Hash* weaponHash)- Hash
0x42B2DAA6B596F5F8