Download or clone this repository to your desired destination folder
cd build
npm install
...
ui_page 'html/index.html'
files {
'html/index.html',
'html/js/app.js',
'html/img/*',
}
Run this before you start the resource so that if you make changes to your vue project and save, you can just restart the resource without having to keep doing npm run build
npm run watch
Run this if you want to test your ui in a web browser
npm run serve
SendNUIMessage({
event = "function",
-- [[ whatever arguments/parameters you want here ]]
})
import Nui from '../utils/Nui'
Nui.send("callbackName", { data: data })
- Vue router
- Vuex (State management with template included)
- Quasar UI Framework (with Roboto font, MDI, Material Icons, FontAwesome, EVA Icon and Ionicon installed)
- Nui utility file (thanks to @calumari) for receiving and sending UI callbacks to Lua
- CSS injected into the JS file
- NPM watch support - Watch for changes (No need to keep building the files to restart resource)