_GET_NUMBER_OF_BULLETS_IMPACTED_ENTITY
Returns the number of bullets that just impacted the entity.
Hash
0x970339EFA4FDE518Runtime name
GetNumberOfBulletsImpactedEntityNamespaceMISC
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _GET_NUMBER_OF_BULLETS_IMPACTED_ENTITY(Entity entity, BOOL p1, BOOL p2);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
p1 | BOOL | — |
p2 | BOOL | — |
Returns int
Description
Returns the number of bullets that just impacted the entity.
Research notes this does not appear to work for arrows or throwable projectiles.
returns the number of bullets that hit the entity
Usage
local retval = GetNumberOfBulletsImpactedEntity(entity, p1, p2)
-- always works, by hash
local retval = Citizen.InvokeNative(0x970339EFA4FDE518, entity, p1, p2, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetNumberOfBulletsImpactedEntity(entity, p1, p2);
// by hash
const retval = Citizen.invokeNative('0x970339EFA4FDE518', entity, p1, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());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
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.