Skip to content

A simple FiveM NUI Wrapper made with VanillaJS aiming faster development

Notifications You must be signed in to change notification settings

Jamie9192/rl-fivem-nui-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rl-fivem-nui-wrapper

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.

Libraries:

  • TailwindCSS for CSS Styling
  • lucide.dev for icons
  • google fonts for fonts (kekw)

Maybe we should download all the libraries to prevent delay

Features:

  • 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

To Add:

  • 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

My Discord:

rodrigofplourenco

About

A simple FiveM NUI Wrapper made with VanillaJS aiming faster development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published