_DETECT_PLAYER_SHOT_NEAR_PED
The time of the shot must've occured <= shotNearTimeMs for this native to return true
Hash
0x9C81338B2E62CE0ARuntime name
DetectPlayerShotNearPedNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Also known as
_HAS_PED_BEEN_SHOT_BY_PLAYER_RECENTLYSignature
BOOL _DETECT_PLAYER_SHOT_NEAR_PED(Player player, Ped ped, int shotNearTimeMs);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
ped | Ped | — |
shotNearTimeMs | int | — |
Returns BOOL
Description
The time of the shot must've occured <= shotNearTimeMs for this native to return true
this native checks if player has shot a specific ped for the duration passed p2 is in milliseconds
Usage
local retval = DetectPlayerShotNearPed(player, ped, shotNearTimeMs)
-- always works, by hash
local retval = Citizen.InvokeNative(0x9C81338B2E62CE0A, player, ped, shotNearTimeMs, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = DetectPlayerShotNearPed(player, ped, shotNearTimeMs);
// by hash
const retval = Citizen.invokeNative('0x9C81338B2E62CE0A', player, ped, shotNearTimeMs, Citizen.returnResultAnyway());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
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.