PlayerClient

setSpecialAbilityMp

SET_SPECIAL_ABILITY_MP0xB214D570EAD7F81A

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

SignatureJavaScript
setSpecialAbilityMp(player: Player, p1: number, p2: any): void
SignatureLua
setSpecialAbilityMp(player: Player, p1: integer, p2: any)

Usage

JavaScript
setSpecialAbilityMp(player, p1, p2);
Lua
setSpecialAbilityMp(player, p1, p2)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger
p1intnumberinteger
p2Anyanyany

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Player PLAYER
In the game
void SET_SPECIAL_ABILITY_MP(Player player, int p1, Any p2)
Hash
0xB214D570EAD7F81A
Introduced
Game build 678 legacy numbering
Formerly
_SET_SPECIAL_ABILITY

Open in the interactive natives reference