Tech stack and repo layout
Everything is TypeScript on Node 22 (node_version '22' in each manifest), bundled with esbuild and run with Bun scripts (bun install, then bun run setup, bun run dev, bun run check: see Getting started).
| Part | What we use |
|---|---|
| Scripts | TypeScript, esbuild, @citizenfx/client and @citizenfx/server types |
| UI (NUI) | React 19 in one shared resource, raze_ui |
| Database | MariaDB/MySQL through our own raze_db (mysql2 pool) |
| Fonts | Unbounded Bold for headlines (@fontsource/unbounded), Archivo for everything else (@fontsource-variable/archivo), standing in for Acumin Pro |
| Screenshots | Playwright (bun run shot) |
The code lives in the private Raze-Roleplay/raze-fivem repo. Assets are in separate private repos: raze-mlo (map interiors), raze-props, raze-vehicles, raze-clothing and raze-weapons.
| Path | What's there |
|---|---|
resources/raze_* | One folder per resource: fxmanifest.lua, src/client, src/server, often src/shared, JSON config, sql/, and web/ for NUI files |
packages/shared | @raze/shared: shared types, helpers and the ready system. Each resource's types live here (inventory.ts, jobs.ts, ...) |
scripts/ | Setup, build, check, new-resource, screenshot and asset tools |
server/server.cfg | The ensure order. FXServer runs from the repo folder with +exec server/server.cfg |
server/secrets.cfg | Your license key, picture key and wallet key. Gitignored, made by bun run setup |
resources/[raze-*] | The asset repos, cloned in as bracketed folders (gitignored here) |
artifact/ | Your FXServer artifacts (gitignored) |
dist/ | Build output, committed so the server runs straight after a pull. GitHub rebuilds it on every push to main if it's out of date, and fails a pull request whose build is stale. Never edit it by hand |
.github/workflows | That build check |