svelte_status_hud Svelte Themes

Svelte_status_hud

Svelte Status Hud

Status Hud Template

This status hud is made for ox_core. The script provides with a bare bone template for further tweaking and development. Currently only incorporates the following statuses:

  • health
  • armor
  • hunger
  • thirst
  • stress
  • stamina


The resource is not built to handle restart in-game.

Documentation

UI

The project uses Svelte and pnpm. For information about how to build the UI: svelte-lua-boilerplate, this is you intend to tweak the NUI and have the result appear in game. If you get the error "[ERR_MODULE_NOT_FOUND]" run pnpm run dev

Adding another progression wheel

Firstly add the new data you want to add to client.lua, look at the other status as examples - Add a suiting threshhold for updating UI, don't update the UI every second. Then in Dashboard.svelte you need to add a useNuiEvent and a Circle, see previous implementations as examples. Then in Circle.svelte you need to import the fontawesome you want to use, and add it to the switch statement.

Acknowledgements

Top categories

Loading Svelte Themes