[FREE RELEASE] Inkwell FiveM React Template (React, Tailwind, Zustand)

Today, we are releasing the Inkwell FiveM React Template, a meticulously crafted, type-safe foundation designed for developers building sophisticated NUI interfaces for FiveM servers.

Inkwell Studios


This template integrates a modern technology stack, including React 18, Tailwind CSS, and Zustand state management, optimized for the FiveM platform using Vite for an efficient build process.

Overview for Developers

The Inkwell FiveM React Template is engineered to streamline the development of complex NUI interfaces. It provides a robust starting point with essential features out-of-the-box:

  • Modern Frontend Stack: Utilizes React 18 and Vite for a fast, contemporary development environment and optimized builds.

  • Utility-First Styling: Leverages Tailwind CSS for rapid, responsive, and maintainable interface design.

  • Efficient State Management: Implements Zustand for performant global state management with minimal boilerplate.

  • Seamless FiveM Integration: Includes a dedicated NuiProvider and custom hooks (useNui, useEventListener) for reliable bi-directional communication with the FiveM client.

  • Component-Based Architecture: Encourages modular development with examples of basic UI components (Button, Card).

  • Built-in Utilities: Offers practical hooks like useRateLimit for managing action cooldowns effectively.

  • Developer-Centric Tooling: Focused on providing a clean structure and tools for efficient iteration and deployment.

This template serves as a powerful accelerator for developers aiming to create high-quality, performant, and maintainable NUI resources for FiveM.

Download & Source Code

The complete source code and usage instructions are available on GitHub:
:arrow_right: GitHub Repository: GitHub - Inkwell-Studios/fivem-react-template

Resource Information:

Code is accessible Yes (GitHub)
Subscription-based No
Lines (approximately) ~500+ (Template Core Logic)
Requirements FiveM Server, Yarn/NPM (for development)
Support Via GitHub Issues
2 Likes

Why isn’t it using typescript?

There’s not much need for TypeScript at the moment. We do have a TypeScript version on the way, though. I usually work with React and Zod in my scripts. Since I already secure my events with a custom system, I don’t see a strong reason to make everything strictly typesafe.

Our team is actively working on improving the community, if you have any suggestions feel free to toss them in here.

There is a typescript branch: GitHub - Inkwell-Studios/fivem-react-template at staging

It is currently being tested!

2 Likes

I’m just asking as someone that works as a frontend engineer I wouldn’t touch a codebase in 2025 without typescript. The DX that it provides just makes javascript obsolete and maintaining legacy javascript is not fun

1 Like

I run a development company specializing in front-end solutions for medium to large enterprises. With years of experience, I wouldn’t recommend using TypeScript for something as simple as a FiveM script. TypeScript makes sense for large-scale projects, but for something smaller like FiveM, it’s unnecessary. While I agree it offers a lot of functionality and typesafety, I believe Zod already provides the level of typesafety you need for this kind of work.

New Update

We’ve fixed the package.json causing it to loop through and not install the files required to make it work. We’re also going to be creating a website to automatically build UI elements and throw them into the UI