Configuration

⚙️ Configuration Documentation – Tire Wear System

This page documents all configurable options available in the config.lua file for the Tire Wear System. Adjust these settings to control tire degradation behavior, grip loss, UI visibility, and more.


🔧 Config.Balancers

You can define the balancer locations and their appearance in the Config.Balancers table. Each entry contains:

  • id: A unique identifier for the balancer

  • coords: World coordinates (vector3) where the prop should be spawned

  • heading: The direction the prop should face

  • prop: The object model (e.g., imp_prop_wheel_balancer_01a)

Config.Balancers = {
    {
        id = 'test',
        coords = vector3(746.1563, -887.7756, 25.0749),
        heading = 357.5883,
        prop = 'imp_prop_wheel_balancer_01a'
    }
}

🔧 Config.Divisions

Defines how much tire health is reduced per check cycle under various conditions.

  • drift: HP loss per cycle while drifting

  • burnout: HP loss during burnout

  • speedlow: HP loss at medium speeds (LowspeedHighspeed)

  • speedhigh: HP loss at high speed (above Highspeed)


🔥 Config.TireGripLevels

Defines average tire health thresholds that determine grip levels.

Used to determine the current grip state (high, medium, low, critical).


🎯 Config.GripMultipliers

Grip multipliers applied to vehicle handling based on the grip level.

  • Values < 1.0 simulate reduced grip due to tire wear.

  • Applied directly to fTractionCurveMin, fTractionCurveMax.


Config.TractionLossBase

Additional traction loss modifier when grip is lowered.

Multiplied by the grip reduction to increase fLowSpeedTractionLossMult.


🔔 Config.SendNotify

Controls whether a notification is shown when grip level changes.


📈 Config.Lowspeed and Config.Highspeed

Speed thresholds in km/h used to determine tire wear rates.


💥 Config.PopOnZero

Whether tires should pop when their health reaches 0.


⏱️ Config.CheckInterval

How frequently tire checks and degradation occur (in milliseconds).


🗺️ Config.LoadDistance

Not currently used, but can be reserved for future optimizations.


🧾 Config.Locale

Localizable notification and label strings.

You may customize these for multilingual support.


🛠️ Config.BalancerProp

Prop hash used for visual tire balancing machine.


🖥️ UI Options

  • UseTireUI: Show tire wear UI overlay.

  • UseDebugUI: Show debug interface (only for testing).


🔔 Notification System

You may define a custom notification handler if desired.

Or here is an example how can you use custom notify:

If not defined, default GTA notification will be used.


🧑‍💻 Config.WhiteList

Whitelist of player identifiers who can use the system.


Under this line is the LibConfig (lib_config.lua)

If you dont know what to do, go to this ox docs site: https://overextended.dev/ox_lib/Modules/Interface/Client/progressarrow-up-right


🖥️ Progressbar Options

  • LibConfig.UseLinearProg: Use ox_lib default linear progress bar.

  • LibConfig.UseRadialProg: Use ox_lib radial/circle progress bar.


🧮 LibConfig.ProgBarTable

Progressbar settings. Here is an example:


🎯 LibConfig.TargetIcon

The icon used for target interactions.

Last updated

Was this helpful?