Skip to content

A simple FiveM UI template using React, built for developers who want to create user interfaces in their FiveM projects.

License

Notifications You must be signed in to change notification settings

Alphazinn/fivem-react-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FiveM React UI Template

A modern UI template for FiveM using React, designed to create seamless in-game interfaces.

Features

  • React-based UI system
  • Input modal component with styling
  • NUI (Native UI) integration with FiveM
  • Keyboard controls (ESC to close)
  • Clean and modern design

Installation

  1. Clone this repository to your FiveM resources folder
  2. Navigate to the UI directory and install dependencies:
cd ui
npm install
  1. Build the UI
npm run build
  1. Add the resource to your server.cfg:
ensure fivem-react-template

Usage

Testing the Input Modal

Use the following command in-game to test the input modal:

/reacttest Input <placeholder text>

Development

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

Project Structure

├── client/
│   └── main.lua
├── server/
│   └── main.lua
├── shared/
│   └── config.lua
├── ui/
│   ├── public/
│   ├── src/
│   │   ├── components/
│   │   ├── App.js
│   │   └── index.js
│   └── package.json
└── fxmanifest.lua

Screenshots

1

2

3

4