Introduction
Thersg-core/config.lua file contains all the core configuration options for your RSG Framework server. This file controls player defaults, money systems, server settings, and more.
Location: resources/[framework]/rsg-core/config.lua
General Settings
Max Players
- Gets the maximum players from your
server.cfg - Default: 48 players
- Set in
server.cfg:sv_maxclients 48
Default Spawn
- The default spawn location for new players
- Format:
vector4(x, y, z, heading) - This is used when a player has no saved position
Update Interval
- How often (in minutes) player data is automatically saved to the database
- Default: 5 minutes
- Lower values = more frequent saves but more database load
Hide Player Names
- Whether to hide player names above their heads
true= Names hidden (more immersive RP)false= Names visible
Reveal Map
- Whether the map is fully revealed for players
true= Full map revealedfalse= Map fog of war enabled
Money System Configuration
Money Types
- Defines all money types and their starting amounts
- cash: Physical money in player’s pocket
- bank: General bank account (deprecated, use town banks)
- valbank: Valentine Bank account
- rhobank: Rhodes Bank account
- blkbank: Blackwater Bank account
- armbank: Armadillo Bank account
- bloodmoney: Illegal money for criminal activities
Don’t Allow Minus
- Money types that cannot go below $0
- These types will prevent transactions if the player doesn’t have enough
- Bank accounts can go negative (up to the minus limit)
Minus Limit
- The maximum amount bank accounts can go into debt
- Default: -$5000
- Only affects money types NOT in
DontAllowMinus
Paycheck Timeout
- How often (in minutes) players receive their job paycheck
- Default: 10 minutes
- Payment amount is defined in
shared/jobs.lua
Paycheck from Society
- If
true: Paychecks come from the society/business account (requires rsg-banking) - If
false: Paychecks are generated (money printer) - When true, businesses need funds to pay employees
Enable Money Items
- If
true: Cash and bloodmoney are physical inventory items - If
false: Cash and bloodmoney are virtual (like GTA Online) - When enabled, cash can be dropped, traded, stolen
This setting makes the economy more realistic as players must physically carry cash
Player Configuration
Blood Types
- Available blood types for players
- Randomly assigned on character creation
- Can be used for medical RP
Player Defaults
TheRSGConfig.Player.PlayerDefaults table defines all default values for new characters:
Character Info Defaults
- gender:
0= Male,1= Female - account: Automatically generated bank account number
Job Defaults
- New players start as unemployed civilians
- Grade 0 with $10 payment per paycheck
Gang Defaults
- New players have no gang affiliation by default
Metadata Defaults
Hunger, Thirst, Cleanliness: Scale from 0-100
- 100 = Full/Clean
- 0 = Empty/Dirty
Inventory Defaults
- weight: Maximum carry weight (35kg = 35000)
- slots: Number of inventory slots
Server Configuration
Server Closed
Closed = true: Only players with admin permission can joinClosedReason: Message shown to players when server is closed- Useful for maintenance or development
Whitelist
Whitelist = true: Only whitelisted players can joinWhitelistPermission: The ace permission required to join when whitelist is on- Players need the permission set in
server.cfg
PVP Settings
- Controls whether players can damage each other
true= PVP enabledfalse= PVP disabled (players cannot hurt each other)
Discord Link
- Your Discord invite link
- Shown in kick messages
- Example:
'https://discord.gg/your-invite'
Check Duplicate License
- If
true: Prevents players from connecting with duplicate Rockstar licenses - Prevents multi-boxing/multiple accounts
- Recommended: keep as
true
Permissions
- Available permission levels for your server
- You can add custom levels (e.g.,
'helper','vip') - Set in
server.cfgusing ace permissions:
Commands Configuration
OOC Color
- RGB color code for Out-Of-Character (OOC) chat messages
- Format:
{ Red, Green, Blue }(0-255 for each)
Prompt Distance
- Default interaction distance for prompts (in meters)
- Used by the prompt system in
rsg-core/client/prompts.lua - Players must be within this distance to see/use prompts
Example: Custom Configuration
Here’s an example of how you might customize your config:Tips & Best Practices
Test thoroughly: Test all config changes on a development server before applying to production
Performance Considerations
-
UpdateInterval: Lower values increase database writes
- 5 minutes is a good balance
- Don’t go below 3 minutes on busy servers
-
PayCheckTimeOut: More frequent paychecks = more economy velocity
- 10 minutes is standard
- Consider your server’s economy when adjusting
Roleplay Considerations
- EnableMoneyItems: Most RP servers keep this
truefor realism - HidePlayerNames: Set to
truefor immersive RP - PVP: Many RP servers disable this except in specific zones
- Whitelist: Recommended for serious RP communities