Skip to main content

Driving & Handling

Drift mode, speed limiter presets, and full suspension configuration including auto-lowering at speed.

This section

Driving & Handling

Three handling-focused configurations.

Drift Mode

lua
Config.DriftMode = {
enabled = true,
jobs = {}, -- e.g. {"mechanic", "racer"}
discordRoles = {}, -- e.g. {"123456789012345678"}
}
FieldTypeDefaultDescription
enabledbooleantrueMaster toggle
jobsstring[]{}Job whitelist (empty = everyone)
discordRolesstring[]{}Discord role whitelist (empty = no Discord check)

See Permission System for OR-logic.

Speed Limiter

lua
Config.SpeedLimiterPresets = {50, 80, 100, 120, 150, 200}
  • Array of speeds in km/h
  • Each value becomes a button in the speed limiter row
  • Add or remove values to taste
Module flagDefaultDescription
Config.Modules.SpeedLimitertrueShow speed limiter UI

Suspension

The full suspension config:

lua
Config.Suspension = {
enabled = true,
nativeMultiplier = 0.1,

presets = {
veryHigh = 0.85,
high = 0.70,
standard = 0.50,
low = 0.30,
jack = 1.0,
},

custom = {
min = 0.0,
max = 1.0,
step = 0.01,
},

autoLowering = {
enabled = true,
defaultSpeed = 65,
targetPreset = "low",
speedOptions = {40, 50, 65, 80, 100, 120},
},
}

Top-Level Fields

FieldTypeDefaultDescription
enabledbooleantrueMaster toggle
nativeMultipliernumber0.1Multiplier applied to all suspension values

Presets

Each preset is a number from 0.0 (lowest) to 1.0 (highest). The actual native value applied is preset × nativeMultiplier.

PresetDefaultUse case
veryHigh0.85Off-road / desert running
high0.70Slightly raised stance
standard0.50Default stock height
low0.30Sport / lowered stance
jack1.0Maximum lift (e.g. for working on car)

You can rename keys, add new presets, or remove ones — the UI auto-generates buttons from this table.

Custom Slider

lua
custom = {
min = 0.0,
max = 1.0,
step = 0.01,
}

Bounds and increment for the fine-tune slider. Players can set any value between min and max in steps of step.

Auto-Lowering

A thread monitors vehicle speed every frame. When speed exceeds defaultSpeed (in km/h), the suspension transitions to targetPreset. When speed drops back below, it returns to whatever the player had set manually.

lua
autoLowering = {
enabled = true,
defaultSpeed = 65, -- km/h threshold
targetPreset = "low", -- one of the keys in presets
speedOptions = {40, 50, 65, 80, 100, 120}, -- selectable thresholds in UI
}
FieldTypeDefaultDescription
enabledbooleantrueMaster toggle for auto-lower
defaultSpeednumber65Default speed threshold (km/h)
targetPresetstring"low"Preset key used when threshold is exceeded
speedOptionsnumber[]{40, 50, 65, 80, 100, 120}Speed values shown as buttons in the UI

Module Toggle Cross-Reference

Module flagControls
Config.Modules.SuspensionWhether suspension UI shows at all
Config.Modules.SpeedLimiterWhether speed limiter UI shows
Config.DriftMode.enabledWhether drift mode is even toggleable