The Lab
PED native

_DETECT_PLAYER_SHOT_NEAR_PED

returns BOOL3 paramsbuild 1207

Returns true if player fired a shot near ped within the last shotNearTimeMs milliseconds.

Signature

C
BOOL _DETECT_PLAYER_SHOT_NEAR_PED(Player player, Ped ped, int shotNearTimeMs); // 0x9C81338B2E62CE0A b1207

Parameters

#NameType
1playerPlayer
2pedPed
3shotNearTimeMsint

Facts

Facts about _DETECT_PLAYER_SHOT_NEAR_PED
Name
_DETECT_PLAYER_SHOT_NEAR_PED
Hash
0x9C81338B2E62CE0A
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(0x9C81338B2E62CE0A, -- _DETECT_PLAYER_SHOT_NEAR_PED
  PlayerId(), -- Player player
  PlayerPedId(), -- Ped ped
  0 -- int shotNearTimeMs
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x9C81338B2E62CE0A", // _DETECT_PLAYER_SHOT_NEAR_PED
  PlayerId(), // Player player
  PlayerPedId(), // Ped ped
  0, // int shotNearTimeMs
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x9C81338B2E62CE0A, // _DETECT_PLAYER_SHOT_NEAR_PED
  API.PlayerId(), // Player player
  API.PlayerPedId(), // Ped ped
  0 // int shotNearTimeMs
);
All PED natives

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