isHudComponentActive
IS_HUD_COMPONENT_ACTIVE0xBC4C9EA5391ECC0DThe 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.
isHudComponentActive(id: number): booleanisHudComponentActive(id: integer): booleanUsage
JavaScript
const result = isHudComponentActive(id);Lua
local result = isHudComponentActive(id)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
id | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanOn 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