RedM Natives

IS_TRACKED_PED_VISIBLE

Returns whether or not a ped is visible within your FOV, not this check auto's to false after a certain distance.

Hash0x91C8E617F64188AC
Runtime nameIsTrackedPedVisible
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x91C8E617F64188AC

Signature

BOOL IS_TRACKED_PED_VISIBLE(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns BOOL

Description

Returns whether or not a ped is visible within your FOV, not this check auto's to false after a certain distance.
Target needs to be tracked first, won't work otherwise.

Usage

Lua
local retval = IsTrackedPedVisible(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x91C8E617F64188AC, ped, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsTrackedPedVisible(ped);

// by hash
const retval = Citizen.invokeNative('0x91C8E617F64188AC', ped, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x91C8E617F64188AC, ped);

Sources

alloc8or RDR3 NativeDB

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