RedM Natives

NETWORK_GET_ENTITY_KILLER_OF_PLAYER

Hash0x42B2DAA6B596F5F8
Runtime nameNetworkGetEntityKillerOfPlayer
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x42B2DAA6B596F5F8

Signature

Entity NETWORK_GET_ENTITY_KILLER_OF_PLAYER(Player player, Hash* weaponHash);

Parameters

NameTypeDescription
playerPlayer—
weaponHashHash*—

Returns Entity

Usage

Lua
local retval, weaponHash = NetworkGetEntityKillerOfPlayer(player, weaponHash)

-- always works, by hash
local retval, weaponHash = Citizen.InvokeNative(0x42B2DAA6B596F5F8, player, Citizen.PointerValueIntInitialized(weaponHash), Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const [retval, weaponHash] = NetworkGetEntityKillerOfPlayer(player, weaponHash);

// by hash
const [retval, weaponHash] = Citizen.invokeNative('0x42B2DAA6B596F5F8', player, Citizen.pointerValueIntInitialized(weaponHash), Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
var weaponHash = new OutputArgument();
int retval = Function.Call<int>((Hash)0x42B2DAA6B596F5F8, player, 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.