PlayerClient

isSpecialAbilityUnlocked

IS_SPECIAL_ABILITY_UNLOCKED0xC6017F6A6CDFA694

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

SignatureJavaScript
isSpecialAbilityUnlocked(playerModel: Hash): boolean
SignatureLua
isSpecialAbilityUnlocked(playerModel: Hash): boolean

Usage

JavaScript
const result = isSpecialAbilityUnlocked(playerModel);
Lua
local result = isSpecialAbilityUnlocked(playerModel)

Parameters

ParameterTypeJavaScriptLua
playerModelHashnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Player PLAYER
In the game
BOOL IS_SPECIAL_ABILITY_UNLOCKED(Hash playerModel)
Hash
0xC6017F6A6CDFA694

Open in the interactive natives reference