The Lab
PED native

_CAN_PED_HEAR_TARGET_PED

returns BOOL3 paramsbuild 1207

Returns true if listener can hear source; includeNoiseBoost also counts temporary noise increases.

Signature

C
BOOL _CAN_PED_HEAR_TARGET_PED(Ped source, Ped listener, BOOL includeNoiseBoost); // 0x0EA9EACBA3B01601 b1207

Parameters

#NameType
1sourcePed
2listenerPed
3includeNoiseBoostBOOL

Facts

Facts about _CAN_PED_HEAR_TARGET_PED
Name
_CAN_PED_HEAR_TARGET_PED
Hash
0x0EA9EACBA3B01601
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(0x0EA9EACBA3B01601, -- _CAN_PED_HEAR_TARGET_PED
  PlayerPedId(), -- Ped source
  PlayerPedId(), -- Ped listener
  false -- BOOL includeNoiseBoost
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x0EA9EACBA3B01601", // _CAN_PED_HEAR_TARGET_PED
  PlayerPedId(), // Ped source
  PlayerPedId(), // Ped listener
  false, // BOOL includeNoiseBoost
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x0EA9EACBA3B01601, // _CAN_PED_HEAR_TARGET_PED
  API.PlayerPedId(), // Ped source
  API.PlayerPedId(), // Ped listener
  false // BOOL includeNoiseBoost
);
All PED natives

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