PlayerClient

specialAbilityActivate

SPECIAL_ABILITY_ACTIVATE0x821FDC827D6F4090

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

SignatureJavaScript
specialAbilityActivate(player: Player, p1: number): void
SignatureLua
specialAbilityActivate(player: Player, p1: integer)

Usage

JavaScript
specialAbilityActivate(player, p1);
Lua
specialAbilityActivate(player, p1)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger
p1intnumberinteger

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.

p1 is always 0 in the scripts

Reference

Namespace
Player PLAYER
In the game
void SPECIAL_ABILITY_ACTIVATE(Player player, int p1)
Hash
0x821FDC827D6F4090
Introduced
Game build 678 legacy numbering
Formerly
_SPECIAL_ABILITY_ACTIVATE

Open in the interactive natives reference