The Lab
MISC native

_HAS_BULLET_IMPACTED_ENTITY

returns BOOL3 paramsbuild 1207

Returns true if a bullet has hit entity.

Signature

C
BOOL _HAS_BULLET_IMPACTED_ENTITY(Entity entity, BOOL p1, BOOL p2); // 0x7A76104CC2CC69E8 b1207

Parameters

#NameType
1entityEntity
2p1BOOL
3p2BOOL

Facts

Facts about _HAS_BULLET_IMPACTED_ENTITY
Name
_HAS_BULLET_IMPACTED_ENTITY
Hash
0x7A76104CC2CC69E8
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x7A76104CC2CC69E8, -- _HAS_BULLET_IMPACTED_ENTITY
  PlayerPedId(), -- Entity entity
  false, -- BOOL p1
  false -- BOOL p2
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x7A76104CC2CC69E8", // _HAS_BULLET_IMPACTED_ENTITY
  PlayerPedId(), // Entity entity
  false, // BOOL p1
  false, // BOOL p2
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x7A76104CC2CC69E8, // _HAS_BULLET_IMPACTED_ENTITY
  API.PlayerPedId(), // Entity entity
  false, // BOOL p1
  false // BOOL p2
);
All MISC natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.