The Lab
PED native

_HAS_PED_SHOT_RECENTLY

returns BOOL2 paramsbuild 1207

Returns true if ped fired a weapon within the last seconds.

Signature

C
BOOL _HAS_PED_SHOT_RECENTLY(Ped ped, float seconds); // 0xB7DBB2986B87E230 b1207

Parameters

#NameType
1pedPed
2secondsfloat

Facts

Facts about _HAS_PED_SHOT_RECENTLY
Name
_HAS_PED_SHOT_RECENTLY
Hash
0xB7DBB2986B87E230
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(0xB7DBB2986B87E230, -- _HAS_PED_SHOT_RECENTLY
  PlayerPedId(), -- Ped ped
  0.0 -- float seconds
)
if result then
  -- ...
end
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xB7DBB2986B87E230", // _HAS_PED_SHOT_RECENTLY
  PlayerPedId(), // Ped ped
  0.0, // float seconds
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xB7DBB2986B87E230, // _HAS_PED_SHOT_RECENTLY
  API.PlayerPedId(), // Ped ped
  0.0f // float seconds
);
All PED natives

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