PlayerClient

isPlayerScriptControlOn

IS_PLAYER_SCRIPT_CONTROL_ON0x8A876A65283DD7D7

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

SignatureJavaScript
isPlayerScriptControlOn(player: Player): boolean
SignatureLua
isPlayerScriptControlOn(player: Player): boolean

Usage

JavaScript
const result = isPlayerScriptControlOn(player);
Lua
local result = isPlayerScriptControlOn(player)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Player PLAYER
In the game
BOOL IS_PLAYER_SCRIPT_CONTROL_ON(Player player)
Hash
0x8A876A65283DD7D7

Open in the interactive natives reference