PedClient

isTrackedPedVisible

IS_TRACKED_PED_VISIBLE0x91C8E617F64188AC

The GTA V native IS_TRACKED_PED_VISIBLE of the PED namespace, as LS:MP client scripts call it: the global function isTrackedPedVisible, in JavaScript and in Lua.

SignatureJavaScript
isTrackedPedVisible(ped: Ped): boolean
SignatureLua
isTrackedPedVisible(ped: Ped): boolean

Usage

JavaScript
const result = isTrackedPedVisible(ped);
Lua
local result = isTrackedPedVisible(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

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.. won't work otherwise.

Reference

Namespace
Ped PED
In the game
BOOL IS_TRACKED_PED_VISIBLE(Ped ped)
Hash
0x91C8E617F64188AC

Open in the interactive natives reference