A complete vehicle mileage and maintenance system for FiveM servers. Wizard Mileage System tracks vehicle distance and simulates realistic component wear over time, including oil life, filters, tires, brakes, suspension, clutch, and spark plugs. Regular maintenance is required to keep vehicles performing properly and prevent progressive handling, engine, and performance issues.
- Add more maintenance and vehicle behavior features
- Improve existing systems and fix reported issues
- Framework:
QBoxorQBCoreorESXorND_Core - SQL:
oxmysql - Required:
ox_lib&wizard_lib - Target:
ox_targetorqb-target - Inventory:
oxorcodemorquasarorqboresx - Menu:
oxorQBorQBox - ProgressBar:
oxorQBorQBox - Notify:
wizardoroxorqborqbxorokokoresx
- Advanced Anti-Exploit system
- Automaticly log the detected exploits at
exploit_log.txt
- Tracks vehicle mileage in real time while driving
- Supports both kilometers and miles
- Saves mileage automatically with a configurable autosave interval
- Can be limited to player-owned vehicles only
- Supports configurable vehicle database tables for different frameworks
- Includes commands for mileage reset and mileage database management
- Displays mileage through a configurable in-game UI
- Tracks spark plug wear based on driven distance
- Supports configurable service intervals and warning thresholds
- Can simulate engine misfires when spark plugs are heavily worn
- Includes a mechanic service option for replacing spark plugs
- Uses progress bars and animations during maintenance
- Maintenance actions can be canceled before completion
- Monitors oil life based on vehicle mileage
- Supports configurable oil change intervals
- Can apply engine damage or performance issues when oil is neglected
- Shows warning notifications when oil service is required
- Includes a mechanic oil change interaction
- Uses progress bars, animations, and cancelable service actions
- Tracks oil filter condition separately from engine oil
- Supports independent oil filter service intervals
- Can affect vehicle performance when the filter is worn
- Includes a dedicated oil filter replacement service
- Shows maintenance warnings based on configured thresholds
- Supports progress bars, animations, and cancelable procedures
- Monitors air filter condition over time
- Can reduce acceleration and top speed when the filter is dirty
- Includes an air filter replacement interaction
- Supports configurable wear values and warning thresholds
- Uses progress bars and animations for service actions
- Maintenance can be canceled during the process
- Tracks tire wear based on vehicle usage
- Can affect vehicle handling and grip as tires degrade
- Supports configurable tire wear rates and grip impact values
- Includes a tire replacement service
- Provides wear indicators and maintenance warnings
- Supports progress bars, animations, and cancelable service actions
- Simulates progressive brake wear over time
- Can reduce braking efficiency when brakes are worn
- Includes a brake service interaction for mechanics
- Supports configurable wear rates and braking efficiency loss
- Shows warning notifications when brake maintenance is needed
- Uses progress bars, animations, and cancelable procedures
- Tracks suspension wear and service state
- Can affect vehicle handling when suspension condition drops
- Supports configurable wear rates and maximum wear values
- Includes a suspension replacement service
- Preserves original suspension handling values for proper restoration
- Uses progress bars, animations, and cancelable maintenance actions
- Tracks clutch wear based on gear changes and vehicle usage
- Can affect vehicle performance when the clutch is worn
- Supports engine stall chance when clutch condition is critical
- Includes a clutch replacement service
- Supports configurable wear rates and performance loss values
- Shows warning notifications and supports cancelable service actions
- Approach a vehicle
- Use the configured target system, either
ox_targetorqb-target - Select one of the available maintenance actions:
- Replace Spark Plugs
- Change Oil
- Replace Oil Filter
- Replace Air Filter
- Change Tires
- Service Brakes
- Service Suspension
- Replace Clutch
- Required inventory items are checked before service
- Progress bars and animations are used during maintenance
- Service actions can be canceled before completion
- Maintenance can be restricted to mechanic jobs
- Supported mechanic jobs and minimum grades are configurable
- Job names can be adjusted from
config.lua - Works with supported target systems such as
ox_targetandqb-target
- Supports multiple menu systems:
ox_libQBCore/QBoxmenu
- Real-time mileage display while driving
- Configurable mileage UI position and size
- Component wear display through the
/checkwearcommand - Warning notifications for components that need maintenance
- Persistent player UI preferences
- Automatically saves mileage and maintenance values
- Stores persistent vehicle wear and service history
- Supports vehicle ownership verification
- Supports configurable vehicle database structures
- Saves player UI customization settings persistently
- Option to disable mileage tracking and maintenance for specific vehicle classes, such as:
- Cycles
- Boats
- Helicopters
- Planes
- Trains
- Military vehicles
- Commercial vehicles
- In-game panel for managing vehicle mileage records
- Displays registered vehicles with plate numbers and mileage values
- Allows editing of vehicle maintenance data, including:
- Mileage
- Last spark plug change
- Last oil change
- Last oil filter change
- Last air filter change
- Last tire change
- Last brakes change and brake wear
- Last suspension change
- Last clutch change and clutch wear
- Validates values to prevent invalid maintenance data
- Supports vehicle deletion with confirmation
- Provides notifications for successful and failed actions
- Updates database values directly from the UI
- Allows players to toggle mileage and wear display visibility
- Includes size controls for the mileage display and wear UI
- Supports precise X/Y positioning for UI elements
- Saves each player's UI settings persistently
- Helps players adjust the HUD layout to fit their screen and preference
- Supports translation files for multiple languages
- Loads the selected language from
ui_config.json - Uses locale JSON files for UI labels, notifications, warnings, and errors
- Makes it easy to add or modify supported languages
- Uses client-side cached values to reduce unnecessary updates
- Syncs changed wear data efficiently
- Preserves original vehicle handling values where needed
- Keeps NUI updates focused on active UI state
- Designed to run cleanly during normal gameplay
This guide will help you set up the script easily.
- Download the folder and remove the
-mainsuffix from it. - The final folder name should be:
wizard-mileage-
Place the resource inside your server
resourcesfolder. -
Add the resource to your
server.cfg:
ensure oxmysql
ensure ox_lib
ensure wizard-lib
ensure wizard-mileage- @The_Hs5
- English, Persian: @The_Hs5
- German: @Sascha
- Arabic: @abonan
- French: @junior
- Dutch: @meneer-Duck
- Other Languages: AI
For support, join our Discord server: https://discord.gg/ZBvacHyczY
This project is licensed under the GNU General Public License v3.0 See the LICENSE file for details






