Racing SystemConfiguration
config.lua
Review every configurable option exposed inside config.lua.
This reference walks through each property inside config.lua, including default values and accepted inputs.
General
debug
- Type:
boolean - Default:
false - Enables verbose logging for troubleshooting.
SQL
autoSQL
Automatically manages base tables/columns.
enabled(boolean, defaulttrue): create missing tables on resource start.forced(boolean, defaultfalse): re-run SQL import regardless of state. Tracks still require manual import.
UI
UIPosition
- Type:
string - Default:
"top-left" - Accepted values:
"top-left","top-right","bottom-left","bottom-right".
paceNotesPadding
- Type:
string - Default:
"3.25rem" - Any valid CSS length that offsets pace notes from the screen edge.
Devices & Commands
fd_laptop
- Type:
boolean - Default:
false - Enables the laptop application when
fd_laptopis installed.
command
- Type:
string | boolean - Default:
"tablet" - Command used to open the tablet when no laptop/inventory integration exists. Set to
falseto disable.
Framework Mode
framework
- Type:
string - Default:
"auto" - Options:
"auto","qbx","qb","ox","nd","esx","standalone", or a custom framework identifier that follows the bridge contract.
Phasing
phasingMode
- Type:
string - Default:
"race" "global"phases racers through every player;"race"limits it to competitors in the same race.
Money Distribution
raceMoneyDistribution
- Type:
string - Default:
"top" - Options:
"top": top 3 racers split the pot."all": everyone is rewarded with top-heavy scaling."equal": identical payouts for all racers.
Race Generation
raceGeneration
Controls automated race creation via scheduled windows.
generationTime(table): hour/minute of race creation.raceStartTime/raceEndTime(table): defines the window for generated races.raceAmount(number, default48): total generated races per window.classes.enabled(boolean, defaulttrue)classes.evenChances(boolean, defaulttrue)classes.classes(table): per-class weighting.moneyPrize.min(number, default1000)moneyPrize.max(number, default5000)laps.min(number, default1)laps.max(number, default3)phasing.enabled(boolean, defaulttrue)phasing.time(number, default30seconds;0disables)cameraOption.random(boolean, defaulttrue)cameraOption.fixed("unset" | "first", default"unset")
Vehicle Classes
vehicleClasses
Defines how vehicles are sorted into race classes.
mode("auto" | "manual", default"auto")allowLowerClassesWithHigherClasses(boolean, defaulttrue)classes(table): list of{ name, title, score }entries.
Set mode to "manual" to edit vehicleClasses.lua; see vehicle classes.
Checkpoints
checkpointZones
mode("cylinder" | "precise", default"precise")dynamicMultiplier(number, default2.0)
Sounds & Keybinds
Use the sounds table to map cue names to audio assets, and keybinds to register creation and racing shortcuts.