PlayerClient

isSpecialAbilityActive

IS_SPECIAL_ABILITY_ACTIVE0x3E5F7FC85D854E15

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger
p1Anyanyany

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Player PLAYER
In the game
BOOL IS_SPECIAL_ABILITY_ACTIVE(Player player, Any p1)
Hash
0x3E5F7FC85D854E15

Open in the interactive natives reference