Docs /Race Builder/Configuration
v1.1.0

Configuration — foltone_racebuilder

All configuration is in config.lua. This file is not encrypted and can be freely edited.

General Settings

OptionDefaultDescription
Config.Locale"en"Language ("en" or "fr")
Config.Framework"ESX"Framework: "ESX", "QBCore" or "standalone"
Config.DebugtrueEnable debug prints in server console
Config.AdminPermission"admin"ACE permission for admin check (standalone mode)
Config.InteractionDistance3.0Distance to interact with NPC (E key fallback)
Config.CountdownSeconds2Countdown duration before race start
Config.DefaultMaxPlayers10Default max players per race
Config.NpcModel"csb_janitor"Ped model for race NPC

Map Blip

OptionDefaultDescription
Config.Blip.Sprite315Blip icon on the map
Config.Blip.Color1Blip color
Config.Blip.Scale0.8Blip size
Config.Blip.Display2Blip display mode

Checkpoint Appearance

OptionDefaultDescription
Config.Checkpoint.Diameter10.0Default checkpoint diameter (editable per checkpoint in editor)
Config.Checkpoint.NearHeight4.0Cylinder height
Config.Checkpoint.Color{r=45, g=110, b=185, a=200}Normal checkpoint color (RGBA)
Config.Checkpoint.FinishColor{r=53, g=154, b=71, a=255}Finish checkpoint color (RGBA)
Config.Checkpoint.CylinderZOffset0.05Ground cylinder Z offset
Config.Checkpoint.IconZOffset3.0Icon height above checkpoint
Config.Checkpoint.IconSizeRatio0.2Icon size = diameter × ratio
Config.Checkpoint.IconType2DrawMarker type for arrow (2 = arrow)
Config.Checkpoint.FinishIconType4DrawMarker type for finish (4 = checkered)

Checkpoint GPS Blip

OptionDefaultDescription
Config.CheckpointBlip.Sprite854GPS blip sprite during race
Config.CheckpointBlip.Color3GPS blip color
Config.CheckpointBlip.Scale0.9GPS blip scale

Start Grid (Multiplayer)

OptionDefaultDescription
Config.StartGrid.Columns2Grid columns (2 = F1 style side by side)
Config.StartGrid.ColumnSpacing3.5Lateral spacing between columns (meters)
Config.StartGrid.RowSpacing8.0Spacing between rows (meters)
Config.StartGrid.StaggerOffset4.0Right column stagger offset (meters)
Config.StartGrid.StartOffset12.0Distance between start line and first car row (meters)
Config.StartGrid.PreviewSlots10Slots shown in editor preview

Race Settings

OptionDefaultDescription
Config.Race.ExitVehicleTimeout10Seconds before DQ if out of vehicle
Config.Race.QuitKey166Key to quit race (166 = F5)

Editor Controls

All editor controls use FiveM control IDs. Reference: https://docs.fivem.net/docs/game-references/controls/

OptionDefaultKey
Forward32W
Backward33S
StrafeLeft34A
StrafeRight35D
Up22Space
Down36Ctrl
Sprint21Shift
Place24Left click
GrabMove25Right click
Menu191Enter
DeleteLast177Backspace
RotateLeft44Q
RotateRight46E

Notification System

Edit Config.Notification in config.lua to use your own notification system:

Config.Notification = function(message)
    -- Default: uses foltone_ultra_hud
    exports.foltone_ultra_hud:Notify(message)

    -- Example: native GTA notification
    -- SetNotificationTextEntry("STRING")
    -- AddTextComponentString(message)
    -- DrawNotification(false, false)

    -- Example: ox_lib
    -- lib.notify({ description = message })
end

Framework Customization

Edit client/cl_editable.lua and server/sv_editable.lua to adapt to your framework. These files are not encrypted.

sv_editable.lua

Contains admin check, player identifier, and player name functions. Customize these for your framework:

  • IsPlayerAdminServer(source) — Returns true if the player is admin
  • GetPlayerIdentifierServer(source) — Returns the player’s unique identifier
  • GetPlayerNameServer(source) — Returns the player’s name