# NETWORK::NETWORK_GET_ENTITY_KILLER_OF_PLAYER

- **Hash:** `0x42B2DAA6B596F5F8`
- **Namespace:** NETWORK
- **Runtime name (Lua/JS):** `NetworkGetEntityKillerOfPlayer`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/NETWORK/NETWORK_GET_ENTITY_KILLER_OF_PLAYER

## Signature

```c
Entity NETWORK_GET_ENTITY_KILLER_OF_PLAYER(Player player, Hash* weaponHash);
```

## Parameters

- `player` (`Player`)
- `weaponHash` (`Hash*`)

## Returns

`Entity`

## Usage

### Lua

```lua
local retval, weaponHash = NetworkGetEntityKillerOfPlayer(player, weaponHash)

-- always available, by hash
local retval, weaponHash = Citizen.InvokeNative(0x42B2DAA6B596F5F8, player, Citizen.PointerValueIntInitialized(weaponHash), Citizen.ResultAsInteger())
```

### JavaScript

```js
const [retval, weaponHash] = NetworkGetEntityKillerOfPlayer(player, weaponHash);

// by hash
const [retval, weaponHash] = Citizen.invokeNative('0x42B2DAA6B596F5F8', player, Citizen.pointerValueIntInitialized(weaponHash), Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
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.*
