isScriptedHudComponentActive
IS_SCRIPTED_HUD_COMPONENT_ACTIVE0xDD100EB17A94FF65The 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.
isScriptedHudComponentActive(id: number): booleanisScriptedHudComponentActive(id: integer): booleanUsage
JavaScript
const result = isScriptedHudComponentActive(id);Lua
local result = isScriptedHudComponentActive(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 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