Getting started
Ask Moe for access to the GitHub repos, the test server and your picture key first.
- Clone
raze-fivemand runbun installat the root. - Copy
resources/raze_db/config.example.jsontoconfig.jsonand fill in your database login. - Copy
resources/raze_core/logging.example.jsontologging.json. Leave the webhooks blank for local work. - Copy
server/secrets.example.cfgtosecrets.cfg, add your own cfx.re license key, and put in your picture key (see below). - Run
bun run buildonce, thenbun run devwhile you work (it rebuilds on save). - Before you hand anything in, run
bun run check. It type-checks every resource, the web UI and@raze/shared.
| Command | What it does |
|---|---|
bun run build | Builds every resource into its dist/ |
bun run dev | Same, in watch mode |
bun run check | Type-checks everything (must pass) |
bun run new raze_<name> | Makes a new resource with the standard layout |
bun run shot | Takes 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, neversetr:setrsends it to every player who joins. - Never commit it, paste it in chat or share it.
secrets.cfgis 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_appearanceafter you set it.
bun run shot reads the same key from secrets.cfg, so screenshots show pictures too.