isTrackedPedVisible
IS_TRACKED_PED_VISIBLE0x91C8E617F64188ACThe 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.
isTrackedPedVisible(ped: Ped): booleanisTrackedPedVisible(ped: Ped): booleanUsage
JavaScript
const result = isTrackedPedVisible(ped);Lua
local result = isTrackedPedVisible(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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