HUDClientChecked by LS:MP

isHudComponentActive

IS_HUD_COMPONENT_ACTIVE0xBC4C9EA5391ECC0D

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
idintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

On LS:MP

ℹ
Checked by LS:MP

id must be between 0 and 160. 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_HUD_COMPONENT_ACTIVE(int id)
Hash
0xBC4C9EA5391ECC0D

Open in the interactive natives reference