NETWORK_GET_DESTROYER_OF_NETWORK_ID
Hash
0x7A1ADEEF01740A24Runtime name
NetworkGetDestroyerOfNetworkIdNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x7A1ADEEF01740A24Signature
int NETWORK_GET_DESTROYER_OF_NETWORK_ID(int netId, Hash* weaponHash);Parameters
| Name | Type | Description |
|---|---|---|
netId | int | — |
weaponHash | Hash* | — |
Returns int
Usage
local retval, weaponHash = NetworkGetDestroyerOfNetworkId(netId, weaponHash)
-- always works, by hash
local retval, weaponHash = Citizen.InvokeNative(0x7A1ADEEF01740A24, netId, Citizen.PointerValueIntInitialized(weaponHash), Citizen.ResultAsInteger())JavaScript and C#
const [retval, weaponHash] = NetworkGetDestroyerOfNetworkId(netId, weaponHash);
// by hash
const [retval, weaponHash] = Citizen.invokeNative('0x7A1ADEEF01740A24', netId, Citizen.pointerValueIntInitialized(weaponHash), Citizen.returnResultAnyway(), Citizen.resultAsInteger());var weaponHash = new OutputArgument();
int retval = Function.Call<int>((Hash)0x7A1ADEEF01740A24, netId, weaponHash);
// weaponHash.GetResult<int>()- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.