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.
| 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) |
| Font | Inter (@fontsource-variable/inter) |
| 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 and raze-clothing.
| 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/ | Build, check, new-resource, screenshot and asset tools |
server/server.cfg | The ensure order. secrets.cfg (gitignored) holds the license key |
dist/ | Build output, gitignored. Never edit it |