Installation
The steps are the same on both games; only the resource name and a few details change. Pick your game in the tabs.
1. Requirements
ox_lib 3.30.0+
Hard dependency
FXServer, recent
The scaler core runs on Node 22 (node_version '22')
Framework
Qbox, QBCore or ESX, for the admin check. Optional
OneSync
Only for /setscale (state bags)
ox_lib 3.30.0+
Hard dependency
RedM server, recent
The scaler core runs on Node 22 (node_version '22')
Framework
VORP or RSG, for the admin check. Optional (standalone)
OneSync
Only for /setscale (state bags)
Outbound HTTPS
To download base-game ped data from fivemad when you save
No database, no items.
2. Drop in the resource
Put rm_scaler in your resources folder and add it to server.cfg:
ensure ox_lib
ensure rm_scalerrm_scaler_output does not exist yet. It is created next to rm_scaler on the first save and started by rm_scaler on every boot, so you do not add it to server.cfg.
Put rm_scaler_redm in your resources folder and add it to server.cfg:
ensure ox_lib
ensure rm_scaler_redmrm_scaler_redm_output does not exist yet. It is created next to rm_scaler_redm on the first save and started by rm_scaler_redm on every boot, so you do not add it to server.cfg.
3. Permissions
Who can open the editor and use /setscale. The ace is the same on both games:
Framework admins get access as well, unless you set cfg.access.frameworkAdmin = false:
FiveM
Qbox / QBCore / ESX admins
RedM
VORP admin / superadmin group, RSG admin / god permission
4. Let it restart the output
After a save, the scaler refreshes and restarts its output resource so the new model streams immediately. That needs aces of its own:
The restart removes any copy spawned from the old files, and players see a short notice. Turn it off with cfg.output.autoEnsure = false if you would rather restart at a quiet time.
5. Base-game models
Addon peds and props are read straight from the stream/ folder of the resource that streams them. Base-game models are inside the game's archives, which the server cannot read, so their files go into rm_scaler/source/ first. See Source Files.
Base-game peds and horses need nothing: their data comes from fivemad when you save. Addon peds are read straight from the resource that streams them. A ped fivemad has no data for goes into rm_scaler_redm/source/. See Source Files.
6. Discord logging (optional)
Every save and delete can post an embed. Set the webhook in server/discord_log.lua (not cfg.lua, which reaches clients):
Leave it as WEBHOOK_HERE to keep logging off.
7. Production check
cfg.dev = true turns off every permission check and adds test commands. Never run it on a live server; the console warns while it is on.