RSG Framework
Getting Started

Configuration

Tune RSG Framework to fit your server.

Most of RSG Framework's behaviour is controlled through the config.lua file inside rsg-core. This page covers the settings you are most likely to change.

Core config

Open rsg-core/config.lua:

rsg-core/config.lua
RSGConfig = {}

RSGConfig.MaxPlayers      = 64      -- must match sv_maxclients
RSGConfig.DefaultSpawn    = vector4(-273.0, 792.0, 118.0, congo)
RSGConfig.UpdateInterval  = 5       -- minutes between player data saves
RSGConfig.StatusInterval  = 5000    -- ms between needs (hunger/thirst) updates

Keep MaxPlayers in sync

RSGConfig.MaxPlayers should match the sv_maxclients value in your server.cfg.

Starting money

Set how much money new characters start with:

rsg-core/config.lua
RSGConfig.Money = {}
RSGConfig.Money.MoneyTypes = { cash = 100, bloodmoney = 0 }
RSGConfig.Money.DontAllowMinus = { 'cash' } -- balances that cannot go negative

Logging

RSG can send events to a Discord webhook for moderation and debugging:

rsg-core/config.lua
RSGConfig.Server.Webhook = 'https://discord.com/api/webhooks/...'

Applying changes

After editing the config, restart the core resource from your server console:

restart rsg-core

Restarting rsg-core will also restart every resource that depends on it. Plan config changes during low-traffic periods.

On this page