PlayerClient

enableSpecialAbility

ENABLE_SPECIAL_ABILITY0x181EC197DAEFE121

The GTA V native ENABLE_SPECIAL_ABILITY of the PLAYER namespace, as LS:MP client scripts call it: the global function enableSpecialAbility, in JavaScript and in Lua.

SignatureJavaScript
enableSpecialAbility(player: Player, toggle: boolean, p2: any): void
SignatureLua
enableSpecialAbility(player: Player, toggle: boolean, p2: any)

Usage

JavaScript
enableSpecialAbility(player, toggle, p2);
Lua
enableSpecialAbility(player, toggle, p2)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger
toggleBOOLbooleanboolean
p2Anyanyany

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Player PLAYER
In the game
void ENABLE_SPECIAL_ABILITY(Player player, BOOL toggle, Any p2)
Hash
0x181EC197DAEFE121

Open in the interactive natives reference