NetworkClient1 output

networkGetDestroyerOfEntity

NETWORK_GET_DESTROYER_OF_ENTITY0xC434133D9BA52777

The GTA V native NETWORK_GET_DESTROYER_OF_ENTITY of the NETWORK namespace, as LS:MP client scripts call it: the global function networkGetDestroyerOfEntity, in JavaScript and in Lua.

SignatureJavaScript
networkGetDestroyerOfEntity(entity: Entity): [
  player: Player,
  weaponHash: Hash
]
SignatureLua
networkGetDestroyerOfEntity(entity: Entity): Player, Hash

Usage

JavaScript
const [player, weaponHash] = networkGetDestroyerOfEntity(entity);
Lua
local player, weaponHash = networkGetDestroyerOfEntity(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

2 values, in this order: an array in JavaScript, multiple return values in Lua.

#ValueTypeJavaScriptLuaDescription
1playerPlayernumberintegerThe native’s own return value.
2weaponHashHashnumberintegeroutput

Reference

Namespace
Network NETWORK
In the game
Player NETWORK_GET_DESTROYER_OF_ENTITY(Entity entity, Hash* weaponHash)
Hash
0xC434133D9BA52777
Introduced
Game build 463 legacy numbering
Formerly
_NETWORK_GET_DESTROYER_OF_ENTITY

Open in the interactive natives reference