RedM Natives

NETWORK_GET_DESTROYER_OF_NETWORK_ID

Hash0x7A1ADEEF01740A24
Runtime nameNetworkGetDestroyerOfNetworkId
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x7A1ADEEF01740A24

Signature

int NETWORK_GET_DESTROYER_OF_NETWORK_ID(int netId, Hash* weaponHash);

Parameters

NameTypeDescription
netIdint—
weaponHashHash*—

Returns int

Usage

Lua
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#
JavaScript
const [retval, weaponHash] = NetworkGetDestroyerOfNetworkId(netId, weaponHash);

// by hash
const [retval, weaponHash] = Citizen.invokeNative('0x7A1ADEEF01740A24', netId, Citizen.pointerValueIntInitialized(weaponHash), Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
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

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.