[Standalone] [HV] speed limiter

[HV] speed limiter

This Speed Limiter for FiveM dynamically adjusts vehicle speeds based on upgrades like engine, transmission, turbo, and armor. It ensures realistic speed limits by factoring in each vehicle’s modifications, creating a unique driving experience.

Perfect for servers looking to enhance vehicle realism, this script offers customizable speed control, making upgrades meaningful and adding depth to gameplay. Simple to configure and a great addition for any FiveM roleplay or racing server!

buy now for 3,99
0.01 ms :clock130:
limits the speed of a car :oncoming_automobile:
higher engine tune equals higher speed :wrench:
100+ lines of optimized code :technologist:

Get it here :shopping_cart:
Preview :desktop_computer:

Code is accessible No
Subscription-based No
Lines (approximately) 100+
Requirements fx server
Support Yes
-- config.lua
Config = {}

-- Speed limits per vehicle model (in km/h)
Config.VehicleSpeedLimits = {
    ["adder"] = 200.0,
    ["rs6rabt20"] = 110.0,
    ["t20"] = 220.0,
    ["police"] = 160.0,
}

-- Speed increase in percentage per engine upgrade level
Config.EngineUpgradePercentage = {
    [-1] = -0.0, -- Engine level -1: -30% (slower)
    [0] = 0.1,    -- No upgrade: 10% increase
    [1] = 0.20,   
    [2] = 0.30,   
    [3] = 0.40,   
}

-- Speed increase in percentage per transmission upgrade level
Config.TransmissionUpgradePercentage = {
    [-1] = -0.0, -- Transmission level -1: -30% (slower)
    [0] = 0.0,    -- No upgrade: 0% increase
    [1] = 0.10,   
    [2] = 0.20,   
    [3] = 0.30,   
}

-- Turbo upgrade speed increase
Config.TurboUpgradePercentage = {
    [true] = 0.20, -- 20% increase for an installed turbo
}

-- Armor speed reduction per armor level (percentage)
Config.ArmorSpeedReduction = {
    [-1] = 0.0,   -- No armor: 0% (no reduction)
    [0] = 0.0,    
    [1] = 0.05,   
    [2] = 0.10,   
    [3] = 0.15,   
    [4] = 0.20,   
}

-- Debug mode (true to display debug information in the console)
Config.Debug = false

-- Toggle speed details display in the console
Config.ShowSpeedDetails = true  -- Set to true to display speed and upgrades once
1 Like

Is it necessary to configure each vehicle?