Vehicle Mileage
Custom Framework
Using a custom framework with JG Vehicle Mileage is fairly straightforward. All your framework needs is some sort of owned vehicles database table with a plate column. Then:
- Go to
jg-vehiclemileage/main.lua - Add another conditional for your framework, and point to the name of your vehicles table
- In
jg-vehiclemileage/config.lua, setConfig.Framework = [your framework name]
Example:
if Config.Framework == "QBCore" then
Framework.VehiclesTable = "player_vehicles"
elseif Config.Framework == "ESX" then
Framework.VehiclesTable = "owned_vehicles"
elseif Config.Framework == "MyFrameworkName" then
Framework.VehiclesTable = "vehicles_table_name"
else
error("You haven't set a valid framework. Valid options can be found in main.lua!")
end