A modern UI template for FiveM using React, designed to create seamless in-game interfaces.
- React-based UI system
- Input modal component with styling
- NUI (Native UI) integration with FiveM
- Keyboard controls (ESC to close)
- Clean and modern design
- Clone this repository to your FiveM resources folder
- Navigate to the UI directory and install dependencies:
cd ui
npm install
- Build the UI
npm run build
- Add the resource to your
server.cfg
:
ensure fivem-react-template
Use the following command in-game to test the input modal:
/reacttest Input <placeholder text>
UI source files are located in the src directory
Client-side scripts are in main.lua
Server-side scripts are in main.lua
Shared configuration is in config.lua
├── client/
│ └── main.lua
├── server/
│ └── main.lua
├── shared/
│ └── config.lua
├── ui/
│ ├── public/
│ ├── src/
│ │ ├── components/
│ │ ├── App.js
│ │ └── index.js
│ └── package.json
└── fxmanifest.lua