A simple FiveM NUI Wrapper made with VanillaJS aiming faster development with lightweight tools and skipping the building step. It was designed to be SPA architecture (Single Page Application), but feel free to adapt it or add in issues whatever you want to see and I will be updating.
- TailwindCSS for CSS Styling
- lucide.dev for icons
- google fonts for fonts (kekw)
Maybe we should download all the libraries to prevent delay
- html/config.js file that allows you to add more pages to your NUI, set NUI callbacks from the browser side
- invokeNuiCallback(cbName, data) that will call any registered NUI Callback
- openNui(), closeNui() (only show/hide from the browser side, you must do SetNuiFocus on lua side too)
- comes with /rlnui-open and /rlnui-close for test purposes
- comes with a button in home page to invoke ping callback for test purposes
- add colors control in config.js (primary color, secondary color, text color, ...)
- add some basic pre-made components like tables, titles, subtitles (everything owning your defined colors)
Please add in issues tab whatever you would like to see on our wrapper, we'll be updating this asap
rodrigofplourenco