NETWORK_GET_DESTROYER_OF_NETWORK_ID
Returns the player who destroyed the networked entity netId and writes the weapon used to weaponHash.
Signature
int NETWORK_GET_DESTROYER_OF_NETWORK_ID(int netId, Hash* weaponHash); // 0x7A1ADEEF01740A24 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | netId | int |
| 2 | weaponHash | Hash* (out pointer) |
Facts
| 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.
local result, weaponHash = Citizen.InvokeNative(0x7A1ADEEF01740A24, -- NETWORK_GET_DESTROYER_OF_NETWORK_ID
0, -- int netId
Citizen.PointerValueInt(), -- Hash* weaponHash
Citizen.ResultAsInteger()
)
print(result, weaponHash)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)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>();Related NETWORK natives
- NETWORK_GET_NETWORK_ID_FROM_ROPE_ID
- NETWORK_GET_ROPE_ID_FROM_NETWORK_ID
- NETWORK_GET_ENTITY_FROM_NETWORK_ID
- NETWORK_GET_INSTANCE_ID_OF_THIS_SCRIPT
- NETWORK_GET_NETWORK_ID_FROM_ENTITY
- _NETWORK_GET_PLAYER_OWNER_OF_NETWORK_ID
- NETWORK_HAS_CONTROL_OF_NETWORK_ID
- NETWORK_REQUEST_CONTROL_OF_NETWORK_ID
- NETWORK_GET_ASSISTED_DAMAGE_OF_ENTITY
- NETWORK_GET_ENTITY_KILLER_OF_PLAYER
- NETWORK_GET_HOST_OF_SCRIPT
- NETWORK_GET_HOST_OF_THIS_SCRIPT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.