Getting started
Ask Moe for access to the GitHub repos, the test server and your picture key first. You need Git, Bun and a MySQL or MariaDB server running on your computer.
The raze-fivem folder is the server folder: FXServer runs from it, and the asset repos go in its resources/.
- Clone
raze-fivemand runbun installin it. - Clone each asset repo into
raze-fivem/resources/as a bracketed folder:raze-vehiclesas[raze-vehicles], and the same forraze-props,raze-mlo,raze-clothingandraze-weapons. Each holds its resource one level down ([raze-vehicles]/raze_cars), so a plaingit pullkeeps it up to date.shgit clone https://github.com/Raze-Roleplay/raze-vehicles "resources/[raze-vehicles]" - Download the latest recommended FXServer artifacts (Windows, Linux) and unpack them into
raze-fivem/artifact(it's gitignored). - Run
bun run setup. It asks for your database login (and makes the database if it isn't there), your cfx.re license key and your picture key (see below), then writesresources/raze_db/config.json,resources/raze_core/logging.jsonandserver/secrets.cfg. Skip anything you don't have yet and run it again later: it only fills in what's missing. - Start the server from the
raze-fivemfolder:artifact\FXServer.exe +exec server/server.cfgon Windows,./artifact/run.sh +exec server/server.cfgon Linux. - The resources come built, so that's it. Run
bun run devwhile you work on code (it rebuilds on save), andbun run checkbefore you hand anything in. It type-checks every resource, the web UI and@raze/shared.
After a pull, run bun install and bun run setup again if anything new came in; both are safe to repeat.
Run your server from a separate folder of your own instead? Clone the asset repos into that folder's resources/, and link three things back to raze-fivem so a pull updates them: resources/[raze] to raze-fivem/resources, server.cfg to raze-fivem/server/server.cfg and server/secrets.cfg to raze-fivem/server/secrets.cfg. Then start it with +exec server.cfg. The AI route below can do this for you.
| Command | What it does |
|---|---|
bun run setup | Makes your local config and secrets files (run once) |
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).
Set it up with AI
If you use Claude Code, Codex or another AI that can run commands, open it in the folder where you want the server and paste this in. It asks how you run your server first, then does everything except your keys: you type those into bun run setup yourself, so they never go into the chat.
text
Set up a local Raze FiveM dev server on this computer, following https://docs.razerp.net/guide/getting-started.
1. Ask me first: do I run the server from inside the raze-fivem folder (the standard way), or from a separate server folder of my own? If separate, ask for its path. Wait for my answer.
2. Check that git, bun and a MySQL or MariaDB server are installed and running. If one is missing, tell me how to install it for my OS and stop.
3. Clone https://github.com/Raze-Roleplay/raze-fivem (into the current folder, or next to my server folder) and run bun install in it.
4. Clone raze-vehicles, raze-props, raze-mlo, raze-clothing and raze-weapons from the same GitHub org into bracketed folders ([raze-vehicles], [raze-props], [raze-mlo], [raze-clothing], [raze-weapons]) inside the resources folder of wherever the server runs: raze-fivem/resources, or my server folder's resources. They are large, so let each clone finish.
5. Download the latest recommended FXServer artifacts for my OS from runtime.fivem.net/artifacts/fivem and unpack them into raze-fivem/artifact (or my server folder, if it has none yet).
6. Separate server folder only: in my server folder, link resources/[raze] to raze-fivem/resources, server.cfg to raze-fivem/server/server.cfg, and server/secrets.cfg to raze-fivem/server/secrets.cfg (on Windows, a junction for the folder and hard links for the files), so a git pull updates everything. Don't overwrite anything already there without asking.
7. Don't run bun run setup and don't ask me for passwords or keys. Tell me to run bun run setup myself in the raze-fivem folder, and wait until I say it's done.
8. Start the server with +exec server/server.cfg from the raze-fivem folder, or +exec server.cfg from my server folder. Watch the console until the resources finish starting, and tell me about any errors or warnings with how to fix them.
Don't commit, push or change any tracked file in the repos.Your picture key
Clothing, tattoo, furniture and emote pictures aren't in any repo. They come from our picture server, cdn.razerp.net, 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.