_CAN_PED_HEAR_TARGET_PED
Returns true if `listener` can hear `source`.
0x0EA9EACBA3B01601CanPedHearTargetPedSignature
BOOL _CAN_PED_HEAR_TARGET_PED(Ped source, Ped listener, BOOL includeNoiseBoost);Parameters
| Name | Type | Description |
|---|---|---|
source | Ped | — |
listener | Ped | — |
includeNoiseBoost | BOOL | — |
Returns BOOL
Description
Returns true if listener can hear source.
If includeNoiseBoost is true, the source's noise radius is applied (easier to hear).
It treats the source as louder. Its current noise expands the effective hearing range (by subtracting noiseRadius² from dist²), while false uses the baseline distance-only check (stealth).
Returns true if listener can hear source.
If includeNoiseBoost is true, the source's noise radius is applied (easier to hear).
It treats the source as louder—its current noise expands the effective hearing range (by subtracting noiseRadius² from dist²), while false uses the baseline distance-only check (stealth).
Usage
local retval = CanPedHearTargetPed(source, listener, includeNoiseBoost)
-- always works, by hash
local retval = Citizen.InvokeNative(0x0EA9EACBA3B01601, source, listener, includeNoiseBoost, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = CanPedHearTargetPed(source, listener, includeNoiseBoost);
// by hash
const retval = Citizen.invokeNative('0x0EA9EACBA3B01601', source, listener, includeNoiseBoost, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x0EA9EACBA3B01601, source, listener, includeNoiseBoost);- 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.