RedM Natives

_GET_PED_HEARING_RANGE

Returns the hearing range of a ped.

Hash0x900CA00CE703E1E2
Runtime nameGetPedHearingRange
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

float _GET_PED_HEARING_RANGE(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns float

Description

alloc8or RDR3 NativeDB

Returns the hearing range of a ped. Counterpart to SET_PED_HEARING_RANGE.

VORPCORE RDR3natives

Returns the hearing range of a ped. To use with SET_PED_HEARING_RANGE

Usage

Lua
local retval = GetPedHearingRange(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x900CA00CE703E1E2, ped, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetPedHearingRange(ped);

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

See also

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.