PlayerClient

isSpecialAbilityEnabled

IS_SPECIAL_ABILITY_ENABLED0xB1D200FE26AEF3CB

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

SignatureJavaScript
isSpecialAbilityEnabled(player: Player, p1: any): boolean
SignatureLua
isSpecialAbilityEnabled(player: Player, p1: any): boolean

Usage

JavaScript
const result = isSpecialAbilityEnabled(player, p1);
Lua
local result = isSpecialAbilityEnabled(player, p1)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger
p1Anyanyany

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Player PLAYER
In the game
BOOL IS_SPECIAL_ABILITY_ENABLED(Player player, Any p1)
Hash
0xB1D200FE26AEF3CB

Open in the interactive natives reference