The Lab
NETWORK native

NETWORK_GET_DESTROYER_OF_NETWORK_ID

returns int2 paramsbuild 1207

Returns the player who destroyed the networked entity netId and writes the weapon used to weaponHash.

Signature

C
int NETWORK_GET_DESTROYER_OF_NETWORK_ID(int netId, Hash* weaponHash); // 0x7A1ADEEF01740A24 b1207

Parameters

#NameType
1netIdint
2weaponHashHash* (out pointer)

Facts

Facts about NETWORK_GET_DESTROYER_OF_NETWORK_ID
Name
NETWORK_GET_DESTROYER_OF_NETWORK_ID
Hash
0x7A1ADEEF01740A24
Namespace
Returns
int
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, weaponHash = Citizen.InvokeNative(0x7A1ADEEF01740A24, -- NETWORK_GET_DESTROYER_OF_NETWORK_ID
  0, -- int netId
  Citizen.PointerValueInt(), -- Hash* weaponHash
  Citizen.ResultAsInteger()
)
print(result, weaponHash)
JavaScript
const [result, weaponHash] = Citizen.invokeNative("0x7A1ADEEF01740A24", // NETWORK_GET_DESTROYER_OF_NETWORK_ID
  0, // int netId
  Citizen.pointerValueInt(), // Hash* weaponHash
  Citizen.resultAsInteger()
);
console.log(result, weaponHash)
C#
var weaponHashArg = new OutputArgument();
int result = Function.Call<int>((Hash)0x7A1ADEEF01740A24, // NETWORK_GET_DESTROYER_OF_NETWORK_ID
  0, // int netId
  weaponHashArg // Hash* weaponHash
);
int weaponHash = weaponHashArg.GetResult<int>();
All NETWORK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.