PedClient

isScriptedScenarioPedUsingConditionalAnim

IS_SCRIPTED_SCENARIO_PED_USING_CONDITIONAL_ANIM0x6EC47A344923E1ED

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

SignatureJavaScript
isScriptedScenarioPedUsingConditionalAnim(
  ped: Ped,
  animDict: string,
  anim: string
): boolean
SignatureLua
isScriptedScenarioPedUsingConditionalAnim(
  ped: Ped,
  animDict: string,
  anim: string
): boolean

Usage

JavaScript
const result = isScriptedScenarioPedUsingConditionalAnim(ped, animDict, anim);
Lua
local result = isScriptedScenarioPedUsingConditionalAnim(ped, animDict, anim)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
animDictstringstringstring
animstringstringstring

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.

Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json

Reference

Namespace
Ped PED
In the game
BOOL IS_SCRIPTED_SCENARIO_PED_USING_CONDITIONAL_ANIM(Ped ped, const char* animDict, const char* anim)
Hash
0x6EC47A344923E1ED

Open in the interactive natives reference