A boilerplate for creating FiveM resources with TypeScript.
Download and install any LTS release of Node.js from v18.
npm install -g pnpm
Initialise your own repository by using one of the options below.
- Click on the "Use this template" button.
- Download the template directly.
- Use the GitHub CLI.
gh repo create <name> --template=overextended/fivem-typescript-boilerplate
Navigate to your new directory and execute the following command to install dependencies.
pnpm install
When working on your resource, use pnpm watch
to rebuild any changes to your client
and server
directories.
For web development, use pnpm web:dev
to use start vite's webserver and watch for changes.