networkGetDestroyerOfEntity
NETWORK_GET_DESTROYER_OF_ENTITY0xC434133D9BA52777The 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.
networkGetDestroyerOfEntity(entity: Entity): [
player: Player,
weaponHash: Hash
]networkGetDestroyerOfEntity(entity: Entity): Player, HashUsage
JavaScript
const [player, weaponHash] = networkGetDestroyerOfEntity(entity);Lua
local player, weaponHash = networkGetDestroyerOfEntity(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
2 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | player | Player | number | integer | The native’s own return value. |
| 2 | weaponHash | Hash | number | integer | output |
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