NETWORK_GET_ASSISTED_DAMAGE_OF_ENTITY
Hash
0x4CACA84440FA26F6Runtime name
NetworkGetAssistedDamageOfEntityNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x4CACA84440FA26F6Signature
BOOL NETWORK_GET_ASSISTED_DAMAGE_OF_ENTITY(Player player, Entity entity, int* p2);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
entity | Entity | — |
p2 | int* | — |
Returns BOOL
Usage
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#
const [retval, p2] = NetworkGetAssistedDamageOfEntity(player, entity, p2);
// by hash
const [retval, p2] = Citizen.invokeNative('0x4CACA84440FA26F6', player, entity, Citizen.pointerValueIntInitialized(p2), Citizen.returnResultAnyway());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
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.