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