isPedUsingScenario
IS_PED_USING_SCENARIO0x1BF094736DD62C2EThe 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.
isPedUsingScenario(ped: Ped, scenario: string): booleanisPedUsingScenario(ped: Ped, scenario: string): booleanUsage
JavaScript
const result = isPedUsingScenario(ped, scenario);Lua
local result = isPedUsingScenario(ped, scenario)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
scenario | string | string | string |
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.
Full list of ped scenarios by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/scenariosCompact.json
Reference
- Namespace
- Ped PED
- In the game
BOOL IS_PED_USING_SCENARIO(Ped ped, const char* scenario)- Hash
0x1BF094736DD62C2E