RedM Natives

_DETECT_PLAYER_SHOT_NEAR_PED

The time of the shot must've occured <= shotNearTimeMs for this native to return true

Hash0x9C81338B2E62CE0A
Runtime nameDetectPlayerShotNearPed
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_HAS_PED_BEEN_SHOT_BY_PLAYER_RECENTLY

Signature

BOOL _DETECT_PLAYER_SHOT_NEAR_PED(Player player, Ped ped, int shotNearTimeMs);

Parameters

NameTypeDescription
playerPlayer—
pedPed—
shotNearTimeMsint—

Returns BOOL

Description

alloc8or RDR3 NativeDB

The time of the shot must've occured <= shotNearTimeMs for this native to return true

VORPCORE RDR3natives

this native checks if player has shot a specific ped for the duration passed p2 is in milliseconds

Usage

Lua
local retval = DetectPlayerShotNearPed(player, ped, shotNearTimeMs)

-- always works, by hash
local retval = Citizen.InvokeNative(0x9C81338B2E62CE0A, player, ped, shotNearTimeMs, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = DetectPlayerShotNearPed(player, ped, shotNearTimeMs);

// by hash
const retval = Citizen.invokeNative('0x9C81338B2E62CE0A', player, ped, shotNearTimeMs, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x9C81338B2E62CE0A, player, ped, shotNearTimeMs);
  • 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.