FiveM UI Template
A simple, modular template for building in-game UIs in FiveM using HTML, CSS, and JavaScript. The included UIManager class lets you create and control UI elements dynamicallyโno manual HTML editing required.
๐ Features
Dynamic UI Creation โ Build UIs in JavaScript, not HTML.
NUI Callbacks โ Easily send/receive events between your UI and FiveM.
Automatic Close Buttons โ Built-in support for closing UIs.
Custom Styles โ Add your own CSS for full customization.
๐ฆ Installation
Clone or Download:
git clone https://github.com/your-repo-name/FiveM-UI-Template.git
Move to Your Resources Folder:
mv FiveM-UI-Template your-fivem-server/resources/
Add to
server.cfg
:ensure fivem-html-boilerplate
๐ File Structure
FiveM-UI-Template/
โโโ fxmanifest.lua # Resource manifest
โโโ html/
โ โโโ index.html # UI entry point
โ โโโ custom.css # Your styles
โ โโโ main.js # Your scripts
โ โโโ ui.js # UIManager class
โโโ client.lua # FiveM client events
โโโ README.md # Documentation
For FiveM integration details, see Integration.md.
Last updated