Skip to content

Configuration ​

Configuration loads from shared/config/*.lua. Edit defaults in the resource, restart it, then verify the selected framework and integration status.

Core (00_core.lua) ​

Setting Default Purpose
Config.Framework auto ESX, qbx, qb or standalone bridge selection
Config.Inventory auto np_inventory, ox, qb or no-inventory selection
Config.Locale en English or German
Config.Admins {} Allowed FiveM identifiers
Config.AdminGroups ESX admin/superadmin; QB admin/god Framework fallback staff groups
Config.AdminDiscordRoles {} Optional cached Discord-role fallback
Config.Integrations per-resource auto Set an optional provider to false to disable its adapter
Config.Rpc 12/sec, burst 24, 10 s timeout Request bounds
Config.Race.maxDrivers 16 Event driver cap
Config.Race.maxTrackGates 256 Saved creator track gate cap
Config.Race.propBudget 80 Track prop cap
Config.Race.rankingMs / broadcastMs 250 ms Server ranking and snapshot cadence
Config.Race.positionHz 4 Client position report frequency
Config.Race.maxGhostBytes 1,048,576 Stored ghost/replay payload cap
Config.ReconnectGraceSeconds 90 Reconnect grace
Config.Payments.account / entryAccount bank Framework payment accounts
Config.Payments.rentalFee 250 Local-service rental fee
Config.RentalModels blista, sultan, elegy, buffalo Allowlisted non-owned rentals

Performance classes ​

Config.PI defines weights for drive force, maximum velocity, traction, braking, mass and drivetrain, bounded to 100–999. Config.Classes contains upper PI thresholds:

D C B A S X
400 500 600 750 900 999

Calibrate these against your handling packs. The PI calculator accepts handling, parts and tune inputs. Player/rental builds require canonical server-configured Config.PI.models baselines and read available np_mechanic saved parts/tune. Configure and calibrate each model permitted in ranked sessions and matchmaking; those paths reject unsupported models. Casual sessions may use the explicit Config.PI.defaultModel baseline with supported=false. Baselines use normalized 0–1 inputs. Installed part deltas and explicit tune.piDelta contribute to PI; Config.PI.tuneWeights also maps saved boost, finalDrive and antiRoll values, with default weights 18, 8 and 3. Verify optional provider exports in game.

Starts, tracks and disciplines (10_race.lua) ​

  • Gate widths: 2–80 m; heights: 1.5–20 m; minimum gate distance: 8 m.
  • Default sectors: 3; shortcut ratio: 0.65.
  • Countdown: 3,000 ms; five red lights.
  • Collision modes: full, ghost_lap1, ghost_always, auto.
  • Rating: Glicko-2 starts at 1,500, RD 350, volatility 0.06.
  • Drift defaults: minimum speed 25, sweet angle 30°, maximum angle 70°.
  • Drag tree defaults: pro 0.4 s, sportsman 0.5 s.
  • Street: USB discovery enabled, no respawn, heat dispatch threshold 65.

Street quick routes have separate server bounds: 2–512 route points, 100 m–30 km total, segments at most 2.5 km and up to 720 interpolated gates. These are runtime route bounds, separate from the saved-track gate limit. The current services implement server-sampled drift scoring, staged drag timing and GPS route/corridor validation. Configuration entries for provider-dependent backlog features do not activate an unavailable provider.

Economy and security ​

Config.Economy defaults to a 5% house cut and 60/25/15 payout split. Dirty funds use black_money; crypto defaults off. Pink slips include reserved ownership/value/officer thresholds, but remain disabled without a vehicle ownership provider. Officer-count checks are not implemented. Rental spawning is the current local vehicle service, pending the planned shared vehicle handler.

Config.Security defines position displacement, minimum lap time, crossing grace, sample limits and payout holds for flagged runs. Tune these against your tracks and server tick conditions; review flags through Admin & security.