Skip to content

Getting started ​

Ask Moe for access to the GitHub repos, the test server and your picture key first.

  1. Clone raze-fivem and run bun install at the root.
  2. Copy resources/raze_db/config.example.json to config.json and fill in your database login.
  3. Copy resources/raze_core/logging.example.json to logging.json. Leave the webhooks blank for local work.
  4. Copy server/secrets.example.cfg to secrets.cfg, add your own cfx.re license key, and put in your picture key (see below).
  5. Run bun run build once, then bun run dev while you work (it rebuilds on save).
  6. Before you hand anything in, run bun run check. It type-checks every resource, the web UI and @raze/shared.
CommandWhat it does
bun run buildBuilds every resource into its dist/
bun run devSame, in watch mode
bun run checkType-checks everything (must pass)
bun run new raze_<name>Makes a new resource with the standard layout
bun run shotTakes UI screenshots with Playwright, for reviews

After a build, restart the resource in the server console (ensure raze_<name>). Every resource must survive a restart while players are online (see Ground rules).

Your picture key ​

Clothing, tattoo, furniture and emote pictures aren't in any repo. They come from our picture server, raze-cdn.mesender.com, which only answers a key your server signs. Every developer has their own key: ask Moe for yours.

Put it in server/secrets.cfg:

ini
set raze_cdn_key "the key Moe gave you"
  • Keep it set, never setr: setr sends it to every player who joins.
  • Never commit it, paste it in chat or share it. secrets.cfg is gitignored.
  • Without it, the server warns at start and pictures are off: stores show numbers, and the emote and furniture menus show icons. Everything else works.
  • Restart raze_appearance after you set it.

bun run shot reads the same key from secrets.cfg, so screenshots show pictures too.

Private. Do not share outside the team.