1.0.0 • Published 7 months ago
fivem-react-ui-creator v1.0.0
FiveM React UI Template
This template provides a starting point for creating user interfaces for FiveM using React and Vite.
Features
- React 18 with Vite
- TailwindCSS for styling
- Mantine UI components
- Zustand for state management
- NUI communication utilities
- TypeScript support
Getting Started
Install dependencies: ```bash npm install ```
Start development server: ```bash npm run dev ```
Build for production: ```bash npm run build ```
Project Structure
- `src/nui.js`: NUI communication utilities
- `src/store/useStore.js`: Zustand store setup
- `src/App.jsx`: Main application component
- `vite.config.js`: Vite configuration
Usage with FiveM
- Build your UI using `npm run build`
- Copy the contents of `dist` to your resource's `ui` folder
- Update your resource's `fxmanifest.lua` to include the UI files
Adding to NPM
- Create an account on npmjs.com
- Login using `npm login`
- Publish using `npm publish`
License
WWR
1.0.0
7 months ago