enableTennisMode
ENABLE_TENNIS_MODE0x28A04B411933F8A6The GTA V native ENABLE_TENNIS_MODE of the MISC namespace, as LS:MP client scripts call it: the global function enableTennisMode, in JavaScript and in Lua.
enableTennisMode(ped: Ped, toggle: boolean, p2: boolean): voidenableTennisMode(ped: Ped, toggle: boolean, p2: boolean)Usage
JavaScript
enableTennisMode(ped, toggle, p2);Lua
enableTennisMode(ped, toggle, p2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
toggle | BOOL | boolean | boolean |
p2 | 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.
Makes the ped jump around like they're in a tennis match
Reference
- Namespace
- Misc MISC
- In the game
void ENABLE_TENNIS_MODE(Ped ped, BOOL toggle, BOOL p2)- Hash
0x28A04B411933F8A6