PedClient

isPedUsingScenario

IS_PED_USING_SCENARIO0x1BF094736DD62C2E

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

SignatureJavaScript
isPedUsingScenario(ped: Ped, scenario: string): boolean
SignatureLua
isPedUsingScenario(ped: Ped, scenario: string): boolean

Usage

JavaScript
const result = isPedUsingScenario(ped, scenario);
Lua
local result = isPedUsingScenario(ped, scenario)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
scenariostringstringstring

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.

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_USING_SCENARIO(Ped ped, const char* scenario)
Hash
0x1BF094736DD62C2E

Open in the interactive natives reference