Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectClient APIGenerated

Hud

const Hud: object

Defined in: client/api.d.ts:3300

The mod’s own world-anchored interaction prompt, plus visibility control over the game’s HUD groups. Group visibility is the tool for hiding UI for a moment; Settings.setHud writes the player’s own HUD preferences and is only for a settings panel.

groups(): string[]

Every HUD group name the game knows, read straight off its own UIHUDGroups table rather than a baked copy, so it stays correct across game patches. Available from startup — it does not wait for the HUD.

string[]

hideGroup(group): boolean

Hides one HUD group for as long as the mod holds it. This is the right tool for a cutscene or a duel: it stacks per owner alongside the game’s own hides and leaves the player’s Settings.getHud() choices untouched, so nothing has to be restored. Every group hidden this way is shown again on disconnect.

string

A name from groups().

boolean

hidePrompt(): void

Hides the interaction prompt.

void

setVisible(visible, allowSelectiveTicking?): boolean

Toggles the entire HUD through UIManager. Unlike hideGroup this is NOT provider-scoped — it is one global flag, so two callers fighting over it will clobber each other, and it is not restored on disconnect.

boolean

false hides the whole HUD.

boolean

Lets the game keep ticking parts of the hidden HUD (default true).

boolean

showGroup(group): boolean

Releases the mod’s hold on a group. The group stays hidden if the game itself is also hiding it.

string

A name from groups().

boolean

showPrompt(key, label, x, y?, z?): void

Shows a floating “[key] label” prompt anchored at a world position, re-projected each frame. Only one prompt at a time; hides itself when off-screen.

string

The key glyph shown (e.g. “F”).

string

The prompt label text.

number | Vector3Like

World-space X anchor.

number

World-space Y anchor.

number

World-space Z anchor.

void

showPromptOn(entityKind, networkId, key, label, heightCm?): boolean

Shows the interaction prompt over an entity’s body and follows it every frame, replacing any prompt shown. It hides itself once the entity has no body here (streamed out or destroyed). False when it has none of that kind now.

"beast" | "player" | "npc" | "worldObject" | "character"

number

The entity’s id.

string

The key glyph shown (e.g. “F”).

string

The prompt label text.

number

Above the body’s origin; 110 by default.

boolean