TasksClient

taskPlayPhoneGestureAnimation

TASK_PLAY_PHONE_GESTURE_ANIMATION0x8FBB6758B3B3E9EC

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

SignatureJavaScript
taskPlayPhoneGestureAnimation(
  ped: Ped,
  animDict: string,
  animation: string,
  boneMaskType: string,
  blendInDuration: number,
  blendOutDuration: number,
  isLooping: boolean,
  holdLastFrame: boolean
): void
SignatureLua
taskPlayPhoneGestureAnimation(
  ped: Ped,
  animDict: string,
  animation: string,
  boneMaskType: string,
  blendInDuration: number,
  blendOutDuration: number,
  isLooping: boolean,
  holdLastFrame: boolean
)

Usage

JavaScript
taskPlayPhoneGestureAnimation(
  ped, animDict, animation, boneMaskType, blendInDuration, blendOutDuration, isLooping,
  holdLastFrame
);
Lua
taskPlayPhoneGestureAnimation(
    ped, animDict, animation, boneMaskType, blendInDuration, blendOutDuration, isLooping,
    holdLastFrame
)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
animDictstringstringstring
animationstringstringstring
boneMaskTypestringstringstring
blendInDurationfloatnumbernumber
blendOutDurationfloatnumbernumber
isLoopingBOOLbooleanboolean
holdLastFrameBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Known boneMaskTypes
"BONEMASK_HEADONLY"
"BONEMASK_HEAD_NECK_AND_ARMS"
"BONEMASK_HEAD_NECK_AND_L_ARM"
"BONEMASK_HEAD_NECK_AND_R_ARM"

p4 known args - 0.0f, 0.5f, 0.25f
p5 known args - 0.0f, 0.25f
p6 known args - 1 if a global if check is passed.
p7 known args - 1 if a global if check is passed.

The values found above, I found within the 5 scripts this is ever called in. (fmmc_launcher, fm_deathmatch_controller, fm_impromptu_dm_controller, fm_mission_controller, and freemode).


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

Reference

Namespace
Tasks TASK
In the game
void TASK_PLAY_PHONE_GESTURE_ANIMATION(Ped ped, const char* animDict, const char* animation, const char* boneMaskType, float blendInDuration, float blendOutDuration, BOOL isLooping, BOOL holdLastFrame)
Hash
0x8FBB6758B3B3E9EC

Open in the interactive natives reference