Basic Nui React JS
DOWNLOAD
DESCRIPTION
This script is a basic and essential implementation for creating a Native User Interface (NUI) in FiveM. It provides the foundation for integrating web-based UI elements seamlessly into your FiveM server.
Features
-
Simple and lightweight implementation
-
Easy to customize and extend
-
Well-documented code for better understanding REQUIREMENTS
A basic understanding of React JS, If you don’t understand it, React may not be for you yet.
Installation
- Download the
basicNuiReact
folder. - Place the
basicNuiReact
folder in your FiveM server’sresources
directory. - Add
start basicNuiReact
to your server.cfg file. or userefresh
, andstart basicNuiReact
in the server console - If you chose to add that line to your server.cfg, Restart your FiveM server.
Usage/Examples
inside the game you can write in the chat /show-ui, and the website will be shown on the screen
- In order to modify the website in react, within visual studio code, for example, you will have to modify the src components, and once you have everything prepared, you will only have to write this in a terminal:
cd web
npm run build
- and then restart the server, or use the
refresh
command, and restartbasicNuiReact
in the server console
DOWNLOAD
Screenshots
- typing
show-ui
in the chat, our website will appear. - by pressing the
ESC
key, it will stop showing our website