config/server.lua) contains all server-side settings for Qbox Core. This includes money management, player data, character settings, and server behavior.
Update Interval
How often to update player data in minutes.
Money Configuration
Configure money types, starting amounts, and paycheck behavior.Define money types and their starting amounts. You can add or remove money types for your server (e.g.,
blackmoney = 0).Warning: Once added, money types will not be removed from the database automatically.Type Definition:Money types that are not allowed to go negative. Players cannot have negative amounts of these money types.
The time in minutes between paycheck distributions.
If
true, paychecks will come from the society account that the player is employed at. If false, paychecks are generated directly.Player Configuration
Configure player-specific settings including hunger/thirst rates and identifier generation.Needs System
Rate at which hunger decreases over time.
Rate at which thirst decreases over time.
Blood Types
Available blood types for character creation:
Identifier Types
Player identifiers are automatically generated using custom value functions. Each identifier type has a specific format:Configuration for unique player identifiers. Each type uses a
valueFunction to generate unique values.Available Identifier Types:| Type | Format | Example |
|---|---|---|
citizenid | Random letter + 7 dots pattern | A1234567 |
AccountNumber | US0 + digit + QBX + random numbers | US01QBX12349876543 |
PhoneNumber | 3-digit area code + 7-digit number | 5551234567 |
FingerId | 15 random characters | abc123def456789 |
WalletId | QB- + 8-digit number | QB-12345678 |
SerialNumber | 8-digit number | 12345678 |
Character Data Tables
Database tables and columns that store character data. Rows in these tables are automatically deleted when a character is deleted.Included Tables:
properties(owner)bank_accounts_new(id)playerskins(citizenid)player_mails(citizenid)player_outfits(citizenid)player_vehicles(citizenid)player_groups(citizenid)players(citizenid)- NPWD tables (calls, messages, notes, contacts, gallery, profiles, etc.)
Server Settings
Core server behavior and access control settings.Enable or disable PvP (player vs player combat) on the server. Controls whether players can shoot other players.
Set server to closed mode. When
true, only users with the qbadmin.join ace permission can join.Message displayed to players when they cannot join a closed server.
Enable or disable whitelist on the server.
Permission required to enter the server when whitelist is enabled.
Discord invite link for your server.
Check for duplicate Rockstar licenses when players join.
Deprecated: Use CFG ACE system instead.When
true, requires players to use the /optin command before accessing admin commands.Permission groups for your server. Add groups here after creating them in your
server.cfg.Character Slots
Configure how many characters players can create.Define maximum number of characters per Rockstar license. Find licenses in your database’s player table.Example:
Default maximum number of characters for players not specified in
playersNumberOfCharacters.Logging
Configure Discord webhooks for core events.This configuration is for core events only. Other resource webhooks should be configured in their respective resources.
Discord webhook URLs for different event types:
default- Default eventsjoinleave- Player join/leave eventsooc- Out of character chatanticheat- Anticheat eventsplayermoney- Money transaction events
nil to disable logging for that event type.Discord roles/users/channels to tag for high priority logs.
- Roles:
<@&roleid> - Users/Channels:
<@userid>or<@channelid>
Vehicle Persistence
Default lock state for spawned vehicles:
lock- Vehicle will be locked when spawnedunlock- Vehicle will be unlocked when spawned
Integration Functions
These functions integrate with other resources. Modify them if you use different resources.Vehicle Keys
Function to give vehicle keys to a player.Parameters:
src(number) - Player sourceplate(string) - Vehicle platevehicle(number) - Vehicle entity
Function to set vehicle lock state.Parameters:
vehicle(number) - Vehicle entitystate(string) - Lock state (‘lock’ or ‘unlock’)
Society Banking
Get society account balance. Used with Renewed-Banking.Parameters:
accountName(string) - Society account name
Remove money from society account.Parameters:
accountName(string) - Society account namepayment(number) - Amount to remove
Paycheck Distribution
Function called to send paycheck to a player.Parameters:
player(Player) - Player objectpayment(number) - Payment amount