Messin around with it, don't expect much from it.
Check the ox_core docs for convar use for initial spawn and character slots.
Install any LTS release of Node.js
from v18.
Install the pnpm
package manager globally.
npm install -g pnpm
Initialise your own repository by using one of the options below.
- Create a new repository using this template.
- 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
Use pnpm watch
to actively rebuild modified files while developing the resource.
During web development, use pnpm web:dev
to start vite's webserver and watch for changes.
Use pnpm build
to build all project files in production mode.
To build and create GitHub releases, tag your commit (e.g. v1.0.0
) and push it.