RedM Natives

_GET_NUMBER_OF_BULLETS_IMPACTED_ENTITY

Returns the number of bullets that just impacted the entity.

Hash0x970339EFA4FDE518
Runtime nameGetNumberOfBulletsImpactedEntity
NamespaceMISC
SideClient
NameCommunity guess
Docs
Since build1207

Signature

int _GET_NUMBER_OF_BULLETS_IMPACTED_ENTITY(Entity entity, BOOL p1, BOOL p2);

Parameters

NameTypeDescription
entityEntity—
p1BOOL—
p2BOOL—

Returns int

Description

alloc8or RDR3 NativeDB

Returns the number of bullets that just impacted the entity.
Research notes this does not appear to work for arrows or throwable projectiles.

VORPCORE RDR3natives

returns the number of bullets that hit the entity

Usage

Lua
local retval = GetNumberOfBulletsImpactedEntity(entity, p1, p2)

-- always works, by hash
local retval = Citizen.InvokeNative(0x970339EFA4FDE518, entity, p1, p2, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetNumberOfBulletsImpactedEntity(entity, p1, p2);

// by hash
const retval = Citizen.invokeNative('0x970339EFA4FDE518', entity, p1, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x970339EFA4FDE518, entity, p1, p2);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.