playTennisSwingAnim
PLAY_TENNIS_SWING_ANIM0xE266ED23311F24D4The GTA V native PLAY_TENNIS_SWING_ANIM of the MISC namespace, as LS:MP client scripts call it: the global function playTennisSwingAnim, in JavaScript and in Lua.
playTennisSwingAnim(
ped: Ped,
animDict: string,
animName: string,
p3: number,
p4: number,
p5: boolean
): voidplayTennisSwingAnim(
ped: Ped,
animDict: string,
animName: string,
p3: number,
p4: number,
p5: boolean
)Usage
JavaScript
playTennisSwingAnim(ped, animDict, animName, p3, p4, p5);Lua
playTennisSwingAnim(ped, animDict, animName, p3, p4, p5)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
animDict | string | string | string |
animName | string | string | string |
p3 | float | number | number |
p4 | float | number | number |
p5 | 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.
Full list of animation dictionaries and anims by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/animDictsCompact.json
Reference
- Namespace
- Misc MISC
- In the game
void PLAY_TENNIS_SWING_ANIM(Ped ped, const char* animDict, const char* animName, float p3, float p4, BOOL p5)- Hash
0xE266ED23311F24D4