networkGetDestroyerOfNetworkId
NETWORK_GET_DESTROYER_OF_NETWORK_ID0x7A1ADEEF01740A24The GTA V native NETWORK_GET_DESTROYER_OF_NETWORK_ID of the NETWORK namespace, as LS:MP client scripts call it: the global function networkGetDestroyerOfNetworkId, in JavaScript and in Lua.
networkGetDestroyerOfNetworkId(netId: number): [
player: Player,
weaponHash: Hash
]networkGetDestroyerOfNetworkId(netId: integer): Player, HashUsage
JavaScript
const [player, weaponHash] = networkGetDestroyerOfNetworkId(netId);Lua
local player, weaponHash = networkGetDestroyerOfNetworkId(netId)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
netId | int | 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_NETWORK_ID(int netId, Hash* weaponHash)- Hash
0x7A1ADEEF01740A24