Skip to content

itzhapp/svelte_status_hud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

status
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

About

Svelte Status Hud

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published