Skip to main content

Handling Tools

Three handling-focused features — suspension adjustment, drift mode, and speed limiter.

This section

Handling Tools

Three independent handling-focused features, each toggleable via Config.Modules.

FeatureDescription
SuspensionRide-height adjustment with presets, custom slider, auto-lowering
Drift ModeDrift tyres toggle (gated)
Speed LimiterConfigurable speed presets enforced via native SetVehicleMaxSpeed

1. Suspension

A complete suspension adjustment system. Players can pick between five named presets, fine-tune with a slider, and even enable automatic lowering at speed thresholds for a sporty driving feel.

Features

  • Five named presets — Very High / High / Standard / Low / Jack
  • Custom slider — fine-tune between any two values
  • Auto-lowering — when speed exceeds a threshold, suspension drops to a target preset
  • Configurable native multiplier — controls how dramatic the suspension travel is

How It Works

The script applies suspension via the FiveM native SetVehicleSuspensionHeight. The configured value is multiplied by nativeMultiplier to control overall range.

When auto-lowering is enabled, a thread monitors vehicle speed every frame. When speed crosses defaultSpeed, suspension transitions to targetPreset automatically; when it drops below the threshold, it returns to the player's manual setting.

Configuration

lua
Config.Suspension = {
enabled = true,
nativeMultiplier = 0.1, -- higher = more dramatic suspension travel

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, -- km/h threshold
targetPreset = "low",
speedOptions = {40, 50, 65, 80, 100, 120},
},
}

Tuning Recommendations

SettingRecommendation
nativeMultiplier0.1 is balanced; bump to 0.15 for stance/lowrider servers, lower to 0.05 for subtle feel
targetPreset"low" for typical sport feel; "standard" if you want minimal auto behavior
defaultSpeed65 km/h works well — high enough to be intentional, low enough to engage in city

Module Toggle

OptionDefaultDescription
Config.Modules.SuspensiontrueShow suspension module

2. Drift Mode

A simple toggle that switches the vehicle to drift tyres (low grip on rear axle), allowing for sustained controlled slides.

How It Works

Uses the native SetVehicleReduceGrip (or equivalent) on the rear wheels. The toggle persists until the player re-toggles it or exits the vehicle.

Configuration

lua
Config.DriftMode = {
enabled = true,
jobs = {}, -- e.g. {"mechanic", "racer"}
discordRoles = {}, -- e.g. {"123456789012345678"}
}

Permission Gating

Drift Mode is commonly gated — most servers want to limit it to specific jobs (mechanic, racer) or Discord roles (donor, VIP). See Permission System.


3. Speed Limiter

A speed cap that uses the native SetVehicleMaxSpeed. Players pick from a list of presets and the cap is enforced.

Configuration

lua
Config.SpeedLimiterPresets = {50, 80, 100, 120, 150, 200}
  • Set any list of speeds (km/h)
  • The UI shows them as a row of buttons in Settings
  • Tapping toggles between the selected speed and "off"

Module Toggle

OptionDefaultDescription
Config.Modules.SpeedLimitertrueShow speed limiter module

Summary Table

FeatureModule flagPermissions?
SuspensionConfig.Modules.SuspensionNone (open to all)
Drift ModeConfig.Modules (via DriftMode.enabled)jobs + discordRoles
Speed LimiterConfig.Modules.SpeedLimiterNone (open to all)