This template had inspired by project-error/fivem-typescript-boilerplate and customized for general usage.
This template uses React (with Vite), TailwindCSS and QBCore with Typescript.
client: Client-side scriptsserver: Server-side scriptsweb: Front-end filesscripts: Helpful scripts for the projectdist: Builded version ofclientandserver
- Install
yarnif you haven't installed it yet. (npm install yarn -g) - Go to
server-data/resources/[my-resources] - Run
git clone https://github.com/BUR4KBEY/fivem-typescript-template template - Run these commands:
cd template yarn install cd web yarn install yarn build cd.. yarn build
- Type these commands to FiveM console:
refresh ensure template
If the installation succeeds, you can use template command in the game. (F8 > template)
-
You can develop the UI using
devcommand (inwebfolder) on browser. After you finish the development process, you can runbuildcommand to build. -
You can use
watchcommand to build yourserverandclientfolders automatically.
If you find this project useful and would like to support me, you can do so by visiting my website.
