taskPlayPhoneGestureAnimation
TASK_PLAY_PHONE_GESTURE_ANIMATION0x8FBB6758B3B3E9ECThe 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.
taskPlayPhoneGestureAnimation(
ped: Ped,
animDict: string,
animation: string,
boneMaskType: string,
blendInDuration: number,
blendOutDuration: number,
isLooping: boolean,
holdLastFrame: boolean
): voidtaskPlayPhoneGestureAnimation(
ped: Ped,
animDict: string,
animation: string,
boneMaskType: string,
blendInDuration: number,
blendOutDuration: number,
isLooping: boolean,
holdLastFrame: boolean
)Usage
taskPlayPhoneGestureAnimation(
ped, animDict, animation, boneMaskType, blendInDuration, blendOutDuration, isLooping,
holdLastFrame
);taskPlayPhoneGestureAnimation(
ped, animDict, animation, boneMaskType, blendInDuration, blendOutDuration, isLooping,
holdLastFrame
)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
animDict | string | string | string |
animation | string | string | string |
boneMaskType | string | string | string |
blendInDuration | float | number | number |
blendOutDuration | float | number | number |
isLooping | BOOL | boolean | boolean |
holdLastFrame | BOOL | boolean | boolean |
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