Wizard Mileage version 1.2.0 released!

Inventory setup

OX Inventory

Add the items to your ox_inventory/data/items.lua

    ['spark_plugs'] = {
        label = 'Spark Plugs',
        weight = 500,
        stack = true,
        close = true,
        description = 'Vehicle spark plugs',
        client = {
            event = 'wizard_vehiclemileage:client:changesparkplug'
        }
    },
    ['engine_oil'] = {
        label = 'Engine Oil',
        weight = 4000,
        stack = true,
        close = true,
        description = 'Engine oil for vehicle maintenance',
        client = {
            event = 'wizard_vehiclemileage:client:changeoil'
        }
    },
    ['oil_filter'] = {
        label = 'Oil Filter',
        weight = 500,
        stack = true,
        close = true,
        description = 'Oil filter for vehicle maintenance',
        client = {
            event = 'wizard_vehiclemileage:client:changeoilfilter'
        }
    },
    ['air_filter'] = {
        label = 'Air Filter',
        weight = 300,
        stack = true,
        close = true,
        description = 'Air filter for vehicle maintenance',
        client = {
            event = 'wizard_vehiclemileage:client:changeairfilter'
        }
    },
    ['tires'] = {
        label = 'Tires',
        weight = 2000,
        stack = true,
        close = true,
        description = 'Vehicle tires',
        client = {
            event = 'wizard_vehiclemileage:client:changetires'
        }
    },
    ['brake_parts'] = {
        label = 'Brake Parts',
        weight = 1000,
        stack = true,
        close = true,
        description = 'Vehicle brake parts',
        client = {
            event = 'wizard_vehiclemileage:client:changebrakes'
        }
    },
    ['suspension_parts'] = {
        label = 'Suspension Parts',
        weight = 1500,
        stack = true,
        close = true,
        description = 'Vehicle suspension parts',
        client = {
            event = 'wizard_vehiclemileage:client:changesuspension'
        }
    },
    ['clutch'] = {
        label = 'Clutch',
        weight = 1500,
        stack = true,
        close = true,
        description = 'Vehicle clutch',
        client = {
            event = 'wizard_vehiclemileage:client:changeclutch'
        }
    },

QB Inventory

Add the items to your qb-core/shared/items.lua

    spark_plugs                  = { name = 'spark_plugs', label = 'Spark Plugs', weight = 500, type = 'item', image = 'spark_plugs.png', unique = false, useable = true, shouldClose = true, description = 'Vehicle spark plugs' },
    engine_oil                   = { name = 'engine_oil', label = 'Engine Oil', weight = 4000, type = 'item', image = 'engine_oil.png', unique = false, useable = true, shouldClose = true, description = 'Engine oil for vehicle maintenance' },
    oil_filter                   = { name = 'oil_filter', label = 'Oil Filter', weight = 500, type = 'item', image = 'oil_filter.png', unique = false, useable = true, shouldClose = true, description = 'Oil filter for vehicle maintenance' },
    air_filter                   = { name = 'air_filter', label = 'Air Filter', weight = 300, type = 'item', image = 'air_filter.png', unique = false, useable = true, shouldClose = true, description = 'Air filter for vehicle maintenance' },
    tires                        = { name = 'tires', label = 'Tires', weight = 2000, type = 'item', image = 'tires.png', unique = false, useable = true, shouldClose = true, description = 'Vehicle tires' },
    brake_parts                  = { name = 'brake_parts', label = 'Brake Parts', weight = 1000, type = 'item', image = 'brake_parts.png', unique = false, useable = true, shouldClose = true, description = 'Vehicle brake parts' },
    suspension_parts             = { name = 'suspension_parts', label = 'Suspension Parts', weight = 1500, type = 'item', image = 'suspension_parts.png', unique = false, useable = true, shouldClose = true, description = 'Vehicle suspension parts' },
    clutch                       = { name = 'clutch', label = 'Clutch', weight = 1500, type = 'item', image = 'clutch.png', unique = false, useable = true, shouldClose = true, description = 'Vehicle clutch' },

Quasar Inventory

Add the items to your qs-inventory/shared/items.lua

    ["spark_plugs"] = {
        ["name"] = "spark_plugs",
        ["label"] = "Spark Plugs",
        ["weight"] = 500,
        ["type"] = "item",
        ["image"] = "spark_plugs.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = true,
        ["combinable"] = nil,
        ["description"] = "Vehicle spark plugs"
    },
    ["engine_oil"] = {
        ["name"] = "engine_oil",
        ["label"] = "Engine Oil",
        ["weight"] = 4000,
        ["type"] = "item",
        ["image"] = "engine_oil.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = true,
        ["combinable"] = nil,
        ["description"] = "Engine oil for vehicle maintenance"
    },
    ["oil_filter"] = {
        ["name"] = "oil_filter",
        ["label"] = "Oil Filter",
        ["weight"] = 500,
        ["type"] = "item",
        ["image"] = "oil_filter.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = true,
        ["combinable"] = nil,
        ["description"] = "Oil filter for vehicle maintenance"
    },
    ["air_filter"] = {
        ["name"] = "air_filter",
        ["label"] = "Air Filter",
        ["weight"] = 300,
        ["type"] = "item",
        ["image"] = "air_filter.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = true,
        ["combinable"] = nil,
        ["description"] = "Air filter for vehicle maintenance"
    },
    ["tires"] = {
        ["name"] = "tires",
        ["label"] = "Tires",
        ["weight"] = 2000,
        ["type"] = "item",
        ["image"] = "tires.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = true,
        ["combinable"] = nil,
        ["description"] = "Vehicle tires"
    },
    ["brake_parts"] = {
        ["name"] = "brake_parts",
        ["label"] = "Brake Parts",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "brake_parts.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = true,
        ["combinable"] = nil,
        ["description"] = "Vehicle brake parts"
    },
    ["suspension_parts"] = {
        ["name"] = "suspension_parts",
        ["label"] = "Suspension Parts",
        ["weight"] = 1500,
        ["type"] = "item",
        ["image"] = "suspension_parts.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = true,
        ["combinable"] = nil,
        ["description"] = "Vehicle Suspension parts"
    },
    ["clutch"] = {
        ["name"] = "clutch",
        ["label"] = "Clutch",
        ["weight"] = 1500,
        ["type"] = "item",
        ["image"] = "clutch.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = true,
        ["combinable"] = nil,
        ["description"] = "Vehicle Clutch"
    },

CodeM Inventory

WIKI SOON!

ESX Inventory

import the following code to your DB sql

INSERT INTO `items`(`name`,`label`,`rare`,`can_remove`,`weight`) VALUES('spark_plugs','Spark Plugs',0,1,500);
INSERT INTO `items`(`name`,`label`,`rare`,`can_remove`,`weight`) VALUES('engine_oil','Engine oil',0,1,4000);
INSERT INTO `items`(`name`,`label`,`rare`,`can_remove`,`weight`) VALUES('oil_filter','Oil filter',0,1,500);
INSERT INTO `items`(`name`,`label`,`rare`,`can_remove`,`weight`) VALUES('air_filter','Air filter',0,1,300);
INSERT INTO `items`(`name`,`label`,`rare`,`can_remove`,`weight`) VALUES('tires','Tires',0,1,2000);
INSERT INTO `items`(`name`,`label`,`rare`,`can_remove`,`weight`) VALUES('brake_parts','Brake Parts',0,1,1000);
INSERT INTO `items`(`name`,`label`,`rare`,`can_remove`,`weight`) VALUES('suspension_parts','Suspension Parts',0,1,1500);
INSERT INTO `items`(`name`,`label`,`rare`,`can_remove`,`weight`) VALUES('clutch','Clutch',0,1,1500);

Last updated