RedM Natives

_GET_PED_SEEING_RANGE

Returns the seeing range of a ped.

Hash0x2BA9D7BF629F920C
Runtime nameGetPedSeeingRange
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

float _GET_PED_SEEING_RANGE(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns float

Description

alloc8or RDR3 NativeDB

Returns the seeing range of a ped. Counterpart to SET_PED_SEEING_RANGE.

VORPCORE RDR3natives

Returns the seeing range of a ped. To use with SET_PED_SEEING_RANGE

Usage

Lua
local retval = GetPedSeeingRange(ped)

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

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