TasksClient

isPedActiveInScenario

IS_PED_ACTIVE_IN_SCENARIO0xAA135F9482C82CC3

The GTA V native IS_PED_ACTIVE_IN_SCENARIO of the TASK namespace, as LS:MP client scripts call it: the global function isPedActiveInScenario, in JavaScript and in Lua.

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Tasks TASK
In the game
BOOL IS_PED_ACTIVE_IN_SCENARIO(Ped ped)
Hash
0xAA135F9482C82CC3

Open in the interactive natives reference