Wizard Mileage version 1.2.6 released!

Client-Side Exports

Get vehicle mileage

The following export will return vehicle mileage

exports['wizard-mileage']:GetVehicleMileage()

Example:

local mileage = exports['wizard-mileage']:GetVehicleMileage()
print("Current vehicle mileage: " .. mileage)

Set vehicle mileage

The following export will set the vehicle mileage

exports['wizard-mileage']:SetVehicleMileage(mileage)

Example:

local mileage = 1000
exports['wizard-mileage']:SetVehicleMileage(mileage)
print("Vehicle mileage set to: " .. mileage)

Get parts change mileage

The following export will return with a table including sparkPlugChange oilChange oilFilterChange airFilterChange tireChange brakeChange suspensionChange clutchChange

Example:


Set parts change mileage

The following export will set the parts change mileage. you need a table including whatever you want to update (you can also update multiple values using single export): sparkPlugChange oilChange oilFilterChange airFilterChange tireChange brakeChange suspensionChange clutchChange

NOTE: Brake and Clutch wear must be updated too!

Example:


Get parts wear

The following export will return with a table including sparkPlugWear oilWear oilFilterWear airFilterWear tireWear brakeWear suspensionWear clutchWear

Example:


Set parts wear

The following export will set the parts wear. you need a table including whatever you want to update (you can also update multiple values using single export): brakeWear clutchWear

NOTE: There are only 2 options because other parts wear are automaticly calculated by the script and can not be changed with exports!

Example:

Last updated