[StandAlone] [Free] Wizard Mileage System, Tire Wear, Oil, Filters, Clutch

Wizard Mileage System

A comprehensive vehicle maintenance and mileage tracking system for FiveM servers that simulates realistic vehicle wear and tear, including oil life, filters, tires, and brake conditions. The system tracks vehicle mileage and component wear, requiring regular maintenance to maintain optimal vehicle performance.

:memo: Table of Contents

:framed_picture: ShowCase

:film_projector: Preview Video: Preview by MJ Team on Youtube

:bulb: Todo

  • Introduce more features
  • Fix existing bugs

:chains: Dependencie

:rocket: Features Scope

Vehicle Mileage Tracking

  • Real-time mileage tracking for owned vehicles
  • Configurable distance units (kilometers or miles)
  • Customizable mileage display position on screen
  • Automatic mileage saving to database
  • Command to reset vehicle mileage

Oil System

  • Oil life monitoring based on distance traveled
  • Configurable oil change intervals
  • Engine damage simulation when oil maintenance is neglected
  • Visual warnings for low oil life
  • Oil change service interaction for mechanics

Oil Filter System

  • Separate tracking for oil filter life
  • Independent oil filter change intervals
  • Engine performance impact when filter is worn
  • Service option for filter replacement
  • Warning system for filter maintenance

Air Filter System

  • Air filter condition monitoring
  • Performance impact on vehicle when filter is dirty:
    • Reduced top speed
    • Decreased acceleration
  • Air filter replacement service
  • Warning notifications for filter maintenance

Tire System

  • Tire wear tracking based on distance
  • Impact on vehicle handling and grip
  • Configurable tire wear rates
  • Tire replacement service
  • Visual wear indicators and warnings

Brake System

  • Progressive brake wear simulation
  • Impact on braking efficiency
  • Brake maintenance service
  • Warning system for brake condition
  • Configurable wear rates and efficiency loss

Suspension System

  • Suspension wear tracking and replacement service
  • Configurable wear rates and maximum wear values
  • Progress bar and animation for suspension service
  • Cancelable maintenance procedures

Mechanic Interactions

  1. Approach a vehicle
  2. Use the target system (ox_target or qb-target)
  3. Available maintenance options:
    • Change Oil
    • Replace Oil Filter
    • Replace Air Filter
    • Change Tires
    • Service Brakes

HUD Features

  • Real-time mileage display
  • Configurable position (top-left, top-right, bottom-left, bottom-right)
  • Component wear display when using /checkwear
  • Warning notifications for maintenance needs

Job Requirements

  • If enabled, only players with the mechanic job can perform maintenance
  • Job name configurable in config.lua
  • Supports both ox_target and qb-target systems

Maintenance Interface

  • Target-based interaction system
  • Progress bars for maintenance actions
  • Cancelable maintenance procedures
  • Animation support for maintenance actions
  • Job-based restrictions for mechanics

Inventory System

  • Integrated inventory support for:
    • Spark Plugs
    • Engine Oil
    • Oil Filter
    • Air Filter
    • Tires
    • Brake Parts
    • Suspension Parts
    • Clutch Parts
  • Supports multiple inventory systems:
    • ox_inventory
    • qb-inventory
    • Quasar inventory
    • CodeM inventory
    • ESX inventory
  • Configurable item weights and descriptions
  • Items can be used directly from inventory
  • Automatic item removal after use

Multiple Menu Support

  • Supports multiple menu systems:
    • ox_lib
    • QBCore/QBox menu

Notification System

  • Multiple notification system support:
    • QBox
    • QBCore
    • ESX
    • Wizard Notify
    • OkOk Notify
    • ox_lib notify
  • Configurable warning intervals
  • Multi-language support

Database Integration

  • Automatic mileage saving
  • Persistent maintenance history
  • Vehicle ownership verification
  • Supports multiple vehicle database structures

Disabled Vehicle Classes

  • Option to disable mileage tracking and maintenance for specific vehicle classes such as:
    • Cycles
    • Boats
    • Helicopters
    • Planes
    • Trains
    • Military vehicles
    • Commercial vehicles

Vehicle Mileage Database UI

  • Interactive vehicle mileage database panel accessible in-game
  • Displays a list of vehicles with plate numbers and current mileage
  • Allows editing of vehicle data including:
    • Mileage
    • Last oil change
    • Last oil filter change
    • Last air filter change
    • Last tire change
    • Last brakes change and brake wear
    • Last clutch change and clutch wear
    • Last suspension change
    • Last spark plug change
  • Validation to ensure data consistency (e.g., last change values not exceeding mileage)
  • Supports deleting vehicles with user confirmation
  • Real-time updates and notifications for successful or failed operations
  • Custom confirmation modal for user actions

Mileage UI Customizer

  • Allows players to toggle visibility of mileage and wear displays
  • Provides sliders to adjust size of mileage meter and wear bars
  • Allows precise positioning of UI elements via X and Y coordinates inputs
  • Supports dragging UI elements to reposition them interactively
  • Saves player customization settings persistently
  • Enhances user experience with customizable and flexible UI layout

:checkered_flag: Getting Started

This guide will help you set up the script easily!

Installing

Moved to GitBook

Download

Github

21 Likes

Hey! this looks really sick, do you have a preview? :slight_smile:

i’ll add preview video soon:)

3 Likes

nice and free, thank you so much! love it!

1 Like

that is some good realistic work i have been looking for a script that have real life Maintenace keep up the good work <3.

1 Like

thx :slight_smile:

1 Like

thank you bro :slight_smile:

New update

Make sure to import update-1.0.1.sql to your database

Preview

image

Clutch System added

  • Clutch wear tracking based on gear changes
  • Impact on vehicle performance
  • Engine Stalls when clutch is worn out
  • Clutch replacement service
  • Warning system for clutch condition
  • Configurable wear rates and performance loss

Additional features

- Added menu to choose which part you want to replace - Hoods automaticly open when you're gonna change the oil, oil filter and air filter

Bug fixes

  • Added an option to disable mileage system for any vehicle class you want, for example bikes, boats and etc.

Github

Really cool script. Before I go ahead and add it, do you have plans to add consuming of items while performing maintenance?

2 Likes

this awsome script you made bro is to good to be free… i think it would be great if u add consuming item for maintenance because u already add config to disable job only

1 Like

ok, i’ll add it :slight_smile:

ok bro

1 Like

Update Version 1.1.0

Inventory System

  • Integrated inventory support for:
    • Engine Oil
    • Oil Filter
    • Air Filter
    • Tires
    • Brake Parts
    • Clutch Parts
  • Supports multiple inventory systems:
    • ox_inventory
    • qb-inventory
    • ESX inventory
  • Configurable item weights and descriptions
  • Items can be used directly from inventory
  • Automatic item removal after use

Job Requirements

  • Minimum job grade requirement (configurable)

Github
Installation WIKI
Cfx

2 Likes

setup ؟
Why this file?

helllo SCRIPT ERROR: @wizard-mileage/client.lua:354: No such export GetCoreObject in resource qb-core^7
^3> ref^7 (^5@wizard-mileage/client.lua^7:779)
^3> callback^7 (^5@ox_lib/resource/interface/client/context.lua^7:109) ??

just for installing the script…

what is your framework bro?

yes framework esx

as i said in the config file comments, job system only works for qb for now… i didn’t have any ESX user to test my script…
join my discord if it’s possible and open a ticket to become our beta tester of esx framework scripts:)

Here is the Preview Brother

:movie_camera: Preview Video: Click here to watch the showcase on YouTube