Opinionated boilerplate for FiveM with React JSX Vite Typescript Webpack & esbuild Eslint Prettier using Lerna and yarn workspaces.
Includes Eslint and prettier for client server and ui with typechecking.
- Brains
- Yarn
- Basic understanding of web development with react and some understanding of FiveM resources.
- Download this repo and extract
- Rename folder to something great and innovative
- Place folder to your Cfx server resources folder
- Add
ensure your_resource_name_here
to your server.cfg yarn install
in root of the project- Start making content using commands listed below
yarn watch:web
Launches web browser with UI. You can also develop in game with this mode.
yarn watch
Starts watching for changes in client and server. Rebuilds on change. Works also in game.
yarn build
Some utils used are from Project Error. You can read more about the utils at Project Error react boilerplate