RedM Natives

NETWORK_GET_ASSISTED_DAMAGE_OF_ENTITY

Hash0x4CACA84440FA26F6
Runtime nameNetworkGetAssistedDamageOfEntity
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x4CACA84440FA26F6

Signature

BOOL NETWORK_GET_ASSISTED_DAMAGE_OF_ENTITY(Player player, Entity entity, int* p2);

Parameters

NameTypeDescription
playerPlayer—
entityEntity—
p2int*—

Returns BOOL

Usage

Lua
local retval, p2 = NetworkGetAssistedDamageOfEntity(player, entity, p2)

-- always works, by hash
local retval, p2 = Citizen.InvokeNative(0x4CACA84440FA26F6, player, entity, Citizen.PointerValueIntInitialized(p2), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, p2] = NetworkGetAssistedDamageOfEntity(player, entity, p2);

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