_GET_PED_HEARING_RANGE
Returns the hearing range of a ped.
Hash
0x900CA00CE703E1E2Runtime name
GetPedHearingRangeNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Signature
float _GET_PED_HEARING_RANGE(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns float
Description
Returns the hearing range of a ped. Counterpart to SET_PED_HEARING_RANGE.
Returns the hearing range of a ped. To use with SET_PED_HEARING_RANGE
Usage
local retval = GetPedHearingRange(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0x900CA00CE703E1E2, ped, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetPedHearingRange(ped);
// by hash
const retval = Citizen.invokeNative('0x900CA00CE703E1E2', ped, Citizen.returnResultAnyway(), Citizen.resultAsFloat());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
InvokeNativewith 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.