NETWORK_GET_ENTITY_KILLER_OF_PLAYER
Hash
0x42B2DAA6B596F5F8Runtime name
NetworkGetEntityKillerOfPlayerNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x42B2DAA6B596F5F8Signature
Entity NETWORK_GET_ENTITY_KILLER_OF_PLAYER(Player player, Hash* weaponHash);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
weaponHash | Hash* | — |
Returns Entity
Usage
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#
const [retval, weaponHash] = NetworkGetEntityKillerOfPlayer(player, weaponHash);
// by hash
const [retval, weaponHash] = Citizen.invokeNative('0x42B2DAA6B596F5F8', player, Citizen.pointerValueIntInitialized(weaponHash), Citizen.returnResultAnyway(), Citizen.resultAsInteger());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
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.