Configuration

Configuration

Learn how to configure Legends Car Essentials for your server's specific needs.

Basic Configuration

The main configuration is located in config.lua. Here is a breakdown of each setting

Anti-Exploit Configuration

Double Clutching Prevention

DisableDoubleClutching = true,

Prevents exploits with reving the engine above its limit causing gear skipping and unrealistic short speed boosts

Curb Boost Protection

DisableCurbBoosting = true,

Reduces GTA's unintended speed boosts from driving over curbs like sidewalks.

Anti air-control system

DisableAirControl = true,

Removes GTA's air control mechanics in a more realistic way keeping track of every wheel's possition not blocking all wheels when the vehicle slides on turns.

Fallen entities cleaner

A smart system working as a garbage collector for entities like fallen traffic lights, traffic stops, tyres for racing tracks etc.

Enabling this setting activates the automatic cleanup for fallen entities and props. Broken traffic lights, signs, cones, and racing props (e.g., tires, cones) will be removed automatically.

You can whitelist certain props that you do not want to be deleted here in the WhiteListedProps table.

Config.FallenEntitiesCleanup = {
    Enable = true,
    CleanupProcessWaitTime = 250, -- Wait time after cleanup process (ms)
    WhiteListedProps = {
        [1501451068] = true,
        [`prop_gate_prison_01`] = true,
        [`v_ilev_shrfdoor`] = true,
        [`v_ilev_shrf2door`] = true,
        [-1167410167] = true,
        [`prop_fnclink_03gate5`] = true,
        [`v_ilev_ph_cellgate`] = true,
        -- Other whitelisted props...
    },
}

Speed Limiter Configuration

Basic Speed Settings

Config.SpeedLimitService = {
    EnableSpeedLimitter = true,
    metric = "kmh", -- kmh or mph
    categorization = true, -- false will use the number from maxSpeed for all vehicles
    maxSpeed = 210,
    Categories = {
        -- Explained Below
    }
}

The categorization is the setting responsible for wether to use the value in maxSpeed for all vehicles globaly or to use the values in the Categories table for each category.

Vehicle Class Speed Limits

Categories  = {
    [0] = 80,   -- Compacts
    [1] = 90,   -- Sedans
    [2] = 100,  -- SUVs
    [3] = 70,   -- Coupes
    [4] = 85,   -- Muscle
    [5] = 75,   -- Sports Classics
    [6] = 120,  -- Sports
    [7] = 150,  -- Super
    [8] = 60,   -- Motorcycles
    [9] = 50,   -- Off-road
    [10] = 40,  -- Industrial
    [11] = 30,  -- Utility
    [12] = 45,  -- Vans
    [13] = 20,  -- Cycles
    [14] = 35,  -- Boats
    [15] = 200, -- Helicopters
    [16] = 250, -- Planes
    [17] = 40,  -- Service
    [18] = 25,  -- Emergency
    [19] = 35,  -- Military
    [20] = 45,  -- Commercial
    [21] = 60   -- Trains
}

Need Help?

Join our Discord for support: discord.gg/lgnds (opens in a new tab)