Skip to main content

HUD

The HUD (heads-up display) is a built-in GUI component that shows the player’s level, HP, and SP. It can optionally display a faceset portrait using DOMSprite.

Basic Usage

Register the HUD in your client module and auto-display it when the current player is ready:
You can also use this exact auto-display config in your client module:

Faceset (Optional)

The HUD can render a face portrait from a faceset spritesheet. The faceset data is provided in the GUI data, and the portrait is only displayed when faceset is defined.

1) Provide a faceset spritesheet

2) Pass faceset data to the HUD

If you already auto-display the HUD, you can update the faceset later:
Notes:
  • If faceset.expression is missing, the HUD uses "default".
  • If faceset is not provided, no portrait area is rendered.