Installation

Items Installation

["engine0"]             = {["name"] = "engine0",                ["label"] = "Engine Lv 0",              ["weight"] = 125, ["type"] = "item", ["image"] = "engine0.png",         ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Stock Engine"},
["engine1"]             = {["name"] = "engine1",                ["label"] = "Engine Lv 1",              ["weight"] = 125, ["type"] = "item", ["image"] = "engine1.png",         ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Engine Upgrade 1"},
["engine2"]             = {["name"] = "engine2",                ["label"] = "Engine Lv 2",              ["weight"] = 125, ["type"] = "item", ["image"] = "engine2.png",         ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Engine Upgrade 2"},
["engine3"]             = {["name"] = "engine3",                ["label"] = "Engine Lv 3",              ["weight"] = 125, ["type"] = "item", ["image"] = "engine3.png",         ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Engine Upgrade 3"},
["engine4"]             = {["name"] = "engine4",                ["label"] = "Engine Lv 4",              ["weight"] = 125, ["type"] = "item", ["image"] = "engine4.png",         ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Engine Upgrade 4"},

["brake0"]              = {["name"] = "brake0",                 ["label"] = "Brakes Lv 0",              ["weight"] = 125, ["type"] = "item", ["image"] = "brake0.png",          ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Stock Brake"},
["brake1"]              = {["name"] = "brake1",                 ["label"] = "Brakes Lv 1",              ["weight"] = 125, ["type"] = "item", ["image"] = "brake1.png",          ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Brake Upgrade 1"},
["brake2"]              = {["name"] = "brake2",                 ["label"] = "Brakes Lv 2",              ["weight"] = 125, ["type"] = "item", ["image"] = "brake2.png",          ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Brake Upgrade 2"},
["brake3"]              = {["name"] = "brake3",                 ["label"] = "Brakes Lv 3",              ["weight"] = 125, ["type"] = "item", ["image"] = "brake3.png",          ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Brake Upgrade 3"},

["transmission0"]       = {["name"] = "transmission0",          ["label"] = "Transmission Lv 0",        ["weight"] = 125, ["type"] = "item", ["image"] = "transmission0.png",   ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Stock Transmission"},
["transmission1"]       = {["name"] = "transmission1",          ["label"] = "Transmission Lv 1",        ["weight"] = 125, ["type"] = "item", ["image"] = "transmission1.png",   ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Transmission Upgrade 1"},
["transmission2"]       = {["name"] = "transmission2",          ["label"] = "Transmission Lv 2",        ["weight"] = 125, ["type"] = "item", ["image"] = "transmission2.png",   ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Transmission Upgrade 2"},
["transmission3"]       = {["name"] = "transmission3",          ["label"] = "Transmission Lv 3",        ["weight"] = 125, ["type"] = "item", ["image"] = "transmission3.png",   ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Transmission Upgrade 3"},

["suspension0"]         = {["name"] = "suspension0",            ["label"] = "Suspension Lv 0",          ["weight"] = 125, ["type"] = "item", ["image"] = "suspension0.png",     ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Stock Suspension"},
["suspension1"]         = {["name"] = "suspension1",            ["label"] = "Suspension Lv 1",          ["weight"] = 125, ["type"] = "item", ["image"] = "suspension1.png",     ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Suspension Upgrade 1"},
["suspension2"]         = {["name"] = "suspension2",            ["label"] = "Suspension Lv 2",          ["weight"] = 125, ["type"] = "item", ["image"] = "suspension2.png",     ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Suspension Upgrade 2"},
["suspension3"]         = {["name"] = "suspension3",            ["label"] = "Suspension Lv 3",          ["weight"] = 125, ["type"] = "item", ["image"] = "suspension3.png",     ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Suspension Upgrade 3"},

["windowtint0"]         = {["name"] = "windowtint0",            ["label"] = "Window Tint Lv 0",         ["weight"] = 125, ["type"] = "item", ["image"] = "windowtint0.png",     ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Stock Windows Tint"},
["windowtint1"]         = {["name"] = "windowtint1",            ["label"] = "Window Tint Lv 1",         ["weight"] = 125, ["type"] = "item", ["image"] = "windowtint1.png",     ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Window Tints Upgrade 1"},
["windowtint2"]         = {["name"] = "windowtint2",            ["label"] = "Window Tint Lv 2",         ["weight"] = 125, ["type"] = "item", ["image"] = "windowtint2.png",     ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Window Tints Upgrade 2"},
["windowtint3"]         = {["name"] = "windowtint3",            ["label"] = "Window Tint Lv 3",         ["weight"] = 125, ["type"] = "item", ["image"] = "windowtint3.png",     ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Window Tints Upgrade 3"},

["carplate0"]           = {["name"] = "carplate0",              ["label"] = "Plate Blue",               ["weight"] = 125, ["type"] = "item", ["image"] = "carplate0.png",       ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Stock Windows Tint"},
["carplate1"]           = {["name"] = "carplate1",              ["label"] = "Plate White",              ["weight"] = 125, ["type"] = "item", ["image"] = "carplate1.png",       ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Window Tints Upgrade 1"},
["carplate2"]           = {["name"] = "carplate2",              ["label"] = "Plate Black",              ["weight"] = 125, ["type"] = "item", ["image"] = "carplate2.png",       ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Window Tints Upgrade 2"},

["turbo"]               = {["name"] = "turbo",                  ["label"] = "Turbo",                    ["weight"] = 125, ["type"] = "item", ["image"] = "turbo.png",            ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Turbo Upgrade"},

["cartire"]             = {["name"] = "cartire",                ["label"] = "Car Tire",                 ["weight"] = 125, ["type"] = "item", ["image"] = "cartire.png",          ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Turbo Upgrade"},

["brokenengine"]        = {["name"] = "brokenengine",           ["label"] = "Broken Engine",            ["weight"] = 125, ["type"] = "item", ["image"] = "brokenengine.png",     ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "I think i can do a engine here"},
["brokenbrakes"]        = {["name"] = "brokenbrakes",           ["label"] = "Broken Brakes",            ["weight"] = 125, ["type"] = "item", ["image"] = "brokenbrakes.png",     ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "I think i can do a brakes here"},
["brokentransmission"]  = {["name"] = "brokentransmission",     ["label"] = "Broken Transmission",      ["weight"] = 125, ["type"] = "item", ["image"] = "brokentransmission.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "I think i can do a transmission here"},
["brokenturbo"]         = {["name"] = "brokenturbo",            ["label"] = "Broken Turbo",             ["weight"] = 125, ["type"] = "item", ["image"] = "brokenturbo.png",      ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "I think i can do a turbo here"},

["airfilter"]           = {["name"] = "airfilter",              ["label"] = "Air Filter",               ["weight"] = 125, ["type"] = "item", ["image"] = "airfilter.png",        ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["brakepad"]            = {["name"] = "brakepad",               ["label"] = "Brake Pad",                ["weight"] = 125, ["type"] = "item", ["image"] = "brakepad.png",         ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["sparkplugs"]          = {["name"] = "sparkplugs",             ["label"] = "Sparkplugs",               ["weight"] = 125, ["type"] = "item", ["image"] = "sparkplugs.png",       ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["fuelfilter"]          = {["name"] = "fuelfilter",             ["label"] = "Fuel Filter",              ["weight"] = 125, ["type"] = "item", ["image"] = "fuelfilter.png",       ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["engineoil"]           = {["name"] = "engineoil",              ["label"] = "Engine Oil",               ["weight"] = 125, ["type"] = "item", ["image"] = "engineoil.png",        ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},

["wheelstancer"]        = {["name"] = "wheelstancer",           ["label"] = "Wheel Stancer",            ["weight"] = 150, ["type"] = "item", ["image"] = "wheelstancer.png",     ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Stance.."},

["paintcan"]            = {["name"] = "paintcan",           ["label"] = "Paint Can",            ["weight"] = 150, ["type"] = "item", ["image"] = "paintcan.png",     ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Painting.."},

Radialmenu Installation

["mechanic"] = {
    {
        id = 'opendiagonostic',
        title = 'Open Diagonostic',
        icon = 'tablet',
        type = 'client',
        event = 'm-Mechanic:Client:OpenDiagnosis',
        shouldClose = true
    },
    {
        id = 'repairbodyvehicle',
        title = 'Repair Body',
        icon = 'wrench',
        type = 'client',
        event = 'm-Mechanic:Client:RepairBodyVehicle',
        shouldClose = true
    },
    {
        id = 'repairenginevehicle',
        title = 'Repair Engine',
        icon = 'wrench',
        type = 'client',
        event = 'm-Mechanic:Client:RepairEngineVehicle',
        shouldClose = true
    },
    {
        id = 'cleanvehicle',
        title = 'Clean Vehicle',
        icon = 'spray-can-sparkles',
        type = 'client',
        event = 'm-Mechanic:Client:CleanVehicle',
        shouldClose = true
    },
    {
        id = 'towingvehicle',
        title = 'Towing',
        icon = 'car',
        type = 'client',
        event = 'm-Mechanic:Client:StartTowing',
        shouldClose = true
    },
},

SQL Installation

CREATE TABLE IF NOT EXISTS `m_mechanic` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `citizenid` varchar(50) NOT NULL DEFAULT '',
  `cars_repaired` int(11) DEFAULT 0,
  `customers_billed` int(11) DEFAULT 0,
  `points` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

CREATE TABLE IF NOT EXISTS `m_mechanic_carlifts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `coords1` varchar(255) DEFAULT NULL,
  `heading1` float DEFAULT NULL,
  `coords2` varchar(255) DEFAULT NULL,
  `heading2` float DEFAULT NULL,
  `jobName` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

CREATE TABLE IF NOT EXISTS `m_mechanic_parts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `item_Name` varchar(255) NOT NULL,
  `item_Label` varchar(255) NOT NULL,
  `item_Stock` int(11) DEFAULT 0,
  `item_Type` varchar(15) DEFAULT NULL,
  `item_Owner` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

INSERT INTO `m_mechanic_parts` (`id`, `item_Name`, `item_Label`, `item_Stock`, `item_Type`, `item_Owner`) VALUES
  (1, 'brake0', 'Brakes Lv0', 20, 'brakes', 'mechanic'),
  (2, 'brake1', 'Brakes Lv1', 18, 'brakes', 'mechanic'),
  (3, 'brake2', 'Brakes Lv2', 19, 'brakes', 'mechanic'),
  (4, 'brake3', 'Brakes Lv3', 11, 'brakes', 'mechanic'),
  (5, 'brake4', 'Brakes Lv4', 17, 'brakes', 'mechanic'),
  (6, 'engine0', 'Engine Lv0', 14, 'engine', 'mechanic'),
  (7, 'engine1', 'Engine Lv1', 13, 'engine', 'mechanic'),
  (8, 'engine2', 'Engine Lv2', 14, 'engine', 'mechanic'),
  (9, 'engine3', 'Engine Lv3', 14, 'engine', 'mechanic'),
  (10, 'engine4', 'Engine Lv4', 14, 'engine', 'mechanic'),
  (11, 'transmission0', 'Transmission Lv0', 14, 'transmission', 'mechanic'),
  (12, 'transmission1', 'Transmission Lv1', 13, 'transmission', 'mechanic'),
  (13, 'transmission2', 'Transmission Lv2', 14, 'transmission', 'mechanic'),
  (14, 'transmission3', 'Transmission Lv3', 14, 'transmission', 'mechanic'),
  (15, 'suspension0', 'Suspension Lv0', 14, 'suspension', 'mechanic'),
  (16, 'suspension1', 'Suspension Lv1', 13, 'suspension', 'mechanic'),
  (17, 'suspension2', 'Suspension Lv2', 14, 'suspension', 'mechanic'),
  (18, 'suspension3', 'Suspension Lv3', 14, 'suspension', 'mechanic'),
  (19, 'windowtint0', 'Window Tint Lv0', 14, 'windowtint', 'mechanic'),
  (20, 'windowtint1', 'Window Tint Lv1', 14, 'windowtint', 'mechanic'),
  (21, 'windowtint2', 'Window Tint Lv2', 14, 'windowtint', 'mechanic'),
  (22, 'windowtint3', 'Window Tint Lv3', 14, 'windowtint', 'mechanic'),
  (23, 'carplate0', 'Car Plate 0', 14, 'carplate', 'mechanic'),
  (24, 'carplate1', 'Car Plate 1', 14, 'carplate', 'mechanic'),
  (25, 'carplate2', 'Car Plate 2', 14, 'carplate', 'mechanic')
;

CREATE TABLE IF NOT EXISTS `m_mechanic_presets` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `citizenid` varchar(50) NOT NULL,
  `plate` varchar(50) DEFAULT NULL,
  `presetName` varchar(100) NOT NULL,
  `presetData` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

CREATE TABLE IF NOT EXISTS `m_mechanic_vehicles` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `plate` varchar(10) NOT NULL,
  `veh_Mileage` int(11) DEFAULT NULL,
  `veh_LastRevisionMileage` float DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

CREATE TABLE IF NOT EXISTS `m_mechanic_feedbacks` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `shopName` varchar(255) NOT NULL,
  `rateExperience` int(11) NOT NULL,
  `mechanicName` varchar(255) NOT NULL,
  `feedback` text NOT NULL,
  `date` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

Last updated