HUDClientChecked by LS:MP

isScriptedHudComponentActive

IS_SCRIPTED_HUD_COMPONENT_ACTIVE0xDD100EB17A94FF65

The GTA V native IS_SCRIPTED_HUD_COMPONENT_ACTIVE of the HUD namespace, as LS:MP client scripts call it: the global function isScriptedHudComponentActive, in JavaScript and in Lua.

SignatureJavaScript
isScriptedHudComponentActive(id: number): boolean
SignatureLua
isScriptedHudComponentActive(id: integer): boolean

Usage

JavaScript
const result = isScriptedHudComponentActive(id);
Lua
local result = isScriptedHudComponentActive(id)

Parameters

ParameterTypeJavaScriptLua
idintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

On LS:MP

ℹ
Checked by LS:MP

id must be between 0 and 29. Otherwise the call is ignored and returns false: nothing reaches the game, and no error is raised.

Reference

Namespace
HUD HUD
In the game
BOOL IS_SCRIPTED_HUD_COMPONENT_ACTIVE(int id)
Hash
0xDD100EB17A94FF65

Open in the interactive natives reference