MiscClient

enableTennisMode

ENABLE_TENNIS_MODE0x28A04B411933F8A6

The 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.

SignatureJavaScript
enableTennisMode(ped: Ped, toggle: boolean, p2: boolean): void
SignatureLua
enableTennisMode(ped: Ped, toggle: boolean, p2: boolean)

Usage

JavaScript
enableTennisMode(ped, toggle, p2);
Lua
enableTennisMode(ped, toggle, p2)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean
p2BOOLbooleanboolean

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

Open in the interactive natives reference