lw-drift - Drift Telemetry / Scoring UI

A script by Manliketjb

No reviews yet.
lw-drift - Drift Telemetry / Scoring UI main image

Full Description

LW-Drift – Drift Scoring & Telemetry System

LW-Drift is a drift scoring and progression system for FiveM servers, designed to track drifting performance, player statistics, and long-term progression using a client-side UI and server-side data handling.

The script uses a logic-separated architecture with event-based polling during active drifting only, helping reduce unnecessary processing when the system is idle.


Features

Drift Telemetry

  • Real-time drift angle detection (0°–90°)
  • Dynamic score multipliers based on angle and drift duration
  • On-screen UI with live feedback while drifting

Leaderboards

  • Persistent leaderboard system
  • Tracks peak scores, lifetime points, and most-used vehicles
  • Separate summary and full leaderboard views

Achievements

  • Built-in achievement and badge system

  • Example achievements include:

    • Drift King
    • Pro Slider
    • Angle Master

Data Storage

  • Supports oxmysql (SQL database)
  • Optional JSON file storage
  • Automatic table creation when database mode is enabled

Vehicle Whitelisting

  • Drift scoring only activates for configured vehicles
  • Helps maintain consistent scoring and prevent misuse

Preview




Installation & Configuration

1. Framework Configuration

Set your framework inside config.lua.

Config.Framework = "ESX" -- ESX / QB / Standalone

This allows the script to correctly retrieve player identifiers and names for leaderboard data.


2. Vehicle Whitelist

Only whitelisted vehicles will activate the drift UI and scoring.

Config.UseVehicleWhitelist = true

Config.WhitelistedVehicles = {
    [GetHashKey("drifteuros")] = true,
    [GetHashKey("drifttampa")] = true,
    [GetHashKey("driftfr36")] = true,
}

Vehicle validation uses GetHashKey for fast model checking.


3. Data Storage Options

Config.UseDatabase = true -- true = oxmysql, false = JSON
  • Database Mode: Uses oxmysql
  • JSON Mode: Stores data locally in the /jsons/ directory

4. Commands

Command Access Description
/drifts All Opens a lightweight leaderboard summary
/driftl All Opens the full leaderboard and player stats

Commands and keybinds can be changed in the config.


Technical Information

Purchase here: https://lughworks.tebex.io/package/7214172

Item Details
Code Access No (Escrow)
Subscription No
Approx. Lines ~1,500
Database oxmysql (optional)
UI / Config Access Yes
Support Provided Yes

Notes

  • No external dependencies beyond optional oxmysql
  • Designed for servers using ESX, QBCore, or standalone setups
  • All UI and configuration files are accessible

Config Merger
Have you tried Config Merger? Merge your configs easily