Config

This is the config for drc_mechanic. You have already in drc_mechanic folder!

Config = {}

Config.Debug = false
--SERVER SETTINGS
Config.Framework = "ESX" -- Set your framework! qbcore, ESX, standalone
Config.Target = "qtarget" -- Which Target system do u use? qb-target, qtarget
Config.NotificationType = "ox_lib" -- ESX, ox_lib, qbcore
Config.MechanicJobs = { 'bennys', 'mechanic' }
--PLAYER CONTROL
Config.Logs = { enabled = true, type = "webhook" } -- use webhook or ox_lib (datadog) Can be changed in server > sv_utils.lua
Config.DropPlayer = true -- Drop (Kick) Player if tries to cheat!
Config.AnticheatBan = false -- Change in server/sv_Utils.lua!!! WIll not work by default you need to add your custom trigger to ban player!
Config.EnableWash = true
Config.DutyEnabled = true
Config.SocietyMoney = true
--BLIPS
Config.Blips = {
    MechanicShop = { -- do not use same value twice (will result in overwriting of blip)
        BlipCoords = vec3(472.07, -1282.81, 29.55), -- Blip coords
        Sprite = 446, -- Blip Icon
        Display = 4, -- keep 4
        Scale = 0.8, -- Size of blip
        Colour = 4, -- colour
        Name = "Mechanic Shop" -- Blip name
    },
}

Config.Towing = {
    Enabled = true,
    TowingCars = {
        { model = "flatbed", offset = vec3(0.0, -0.85, 1.05), distance = 10 },
    }
}

Config.CarWash = {
    Enabled = true,
    Price = 500,
    Stations = {
        { coords = vec3(28.45, -1391.94, 28.96) },
        { coords = vec3(-700.07, -938.94, 18.64) },
        { coords = vec3(28.45, -1591.94, 28.96) },
        { coords = vec3(28.45, -1591.94, 28.96) },
    },
}

--Mechanicshop
Config.MechanicShop = {
    Enabled = true,
    Header = "Mechanic Shop",
    Items = {
        { label = 'Cloth', item = 'cloth', description = "Buy Cloth for: $", price = 50, MinAmount = 1, MaxAmount = 10 },
        { label = 'Sponge', item = 'sponge', description = "Buy Sponge for: $", price = 40, MinAmount = 1,
            MaxAmount = 10 },
        { label = 'Lockpick', item = 'lockpick', description = "Buy Lockpick for: $", price = 299, MinAmount = 1,
            MaxAmount = 10 },
        { label = 'Repair Kit', item = 'repairkit', description = "Buy Repair Kit for: $", price = 100, MinAmount = 1,
            MaxAmount = 10 },
        { label = 'Car Wax', item = 'carwax', description = "Buy Car Wax for: $", price = 100, MinAmount = 1,
            MaxAmount = 10 },
    },
    Ped = {
        { model = "s_m_m_gardener_01", coords = vec4(471.48, -1282.73, 29.55 - 1.0, 276.36),
            scenario = "WORLD_HUMAN_SMOKING" },
    },
}

Config.Garages = {
    bennys = {
        job = 'mechanic',
        PolyZone = {
            name = 'bennys',
            Coords = vec3(-205.08, -1321.6, 30.89),
            debugPoly = false,
            useZ = true,
            radius = 35,
        },
        Actions = {
            Clean = { enabled = true, Title = "Wash Car with sponge", Description = "Requirements: 1x Sponge",
                price = 500 },
            Repair = { enabled = true, Title = "Repair Car", Description = "Requirements: 1x Repair kit", price = 500 },
            LockPick = { enabled = true, Title = "Lock Pick Car", Description = "Requirements: 1x Lock Pick" },
            CarWax = { enabled = true, Title = "Polish the car with Car Wax",
                Description = "Requirements: 1x Car Wax, 1x Cloth", price = 500 },
        },
        Ped = {
            Model = "s_m_y_xmech_01", Coords = vec4(-202.9, -1308.99, 31.29 - 1.0, 15.37),
            Occupied = false, Scenario = "WORLD_HUMAN_SMOKING"
        },
        Wash = {
            Coords = vec3(-197.71, -1321.04, 31.29),
            Radius = 0.4,
            debugPoly = false,
        },
        WashActions = {
            WashSponge = { enabled = true, Title = "Wash sponge", Description = "Requirements: 1x Dirty Sponge" },
            WashCloth = { enabled = true, Title = "Wash Cloth", Description = "Requirements: 1x Dirty Cloth" },
        },
        Duty = {
            Coords = vec3(-206.39, -1341.69, 35.0),
            Radius = 0.4,
            debugPoly = false,
        },
        Garage = {
            Ped = {
                Model = "s_m_y_xmech_01", Coords = vec4(-212.97, -1309.39, 31.29 - 1.0, 351.55),
                Occupied = false, Scenario = "WORLD_HUMAN_SMOKING"
            },
            Vehicles = {
                { Model = "flatbed", Label = "Flatbed" },
            },
            SpawnPoints = {
                { Coords = vector3(-211.31, -1304.4, 31.29), Heading = 277.09, Radius = 3.0 },
                { Coords = vector3(-189.68, -1301.93, 31.3), Heading = 98.28, Radius = 3.0 }
            },
        },
    },
    mechanic = {
        job = 'mechanic',
        PolyZone = {
            name = 'mechanic',
            Coords = vec3(-330.93, -137.21, 39.01),
            debugPoly = false,
            useZ = true,
            radius = 34,
        },
        Actions = {
            Clean = { enabled = true, Title = "Wash Car with sponge", Description = "Requirements: 1x Sponge",
                price = 500 },
            Repair = { enabled = true, Title = "Repair Car", Description = "Requirements: 1x Repair kit", price = 500 },
            LockPick = { enabled = true, Title = "Lock Pick Car", Description = "Requirements: 1x Lock Pick" },
            CarWax = { enabled = true, Title = "Polish the car with Car Wax",
                Description = "Requirements: 1x Car Wax, 1x Cloth", price = 500 },
        },
        Ped = {
            Model = "s_m_y_xmech_01", Coords = vec4(-347.41, -133.4, 39.01 - 1.0, 247.8),
            Occupied = false, Scenario = "WORLD_HUMAN_SMOKING"
        },
        Wash = {
            Coords = vec3(-337.3, -143.61, 38.75),
            Radius = 0.4,
            debugPoly = false,
        },
        WashActions = {
            WashSponge = { enabled = true, Title = "Wash sponge", Description = "Requirements: 1x Dirty Sponge" },
            WashCloth = { enabled = true, Title = "Wash Cloth", Description = "Requirements: 1x Dirty Cloth" },
        },
        Duty = {
            Coords = vec3(-345.86, -122.94, 39.11),
            Radius = 0.4,
            debugPoly = false,
        },
        Garage = {
            Ped = {
                Model = "s_m_y_xmech_01", Coords = vec4(-356.25, -128.18, 39.43 - 1.0, 81.87),
                Occupied = false, Scenario = "WORLD_HUMAN_SMOKING"
            },
            Vehicles = {
                { Model = "flatbed", Label = "Flatbed" },
            },
            SpawnPoints = {
                { Coords = vector3(-359.64, -126.65, 38.7), Heading = 162.03, Radius = 3.0 }
            },
        },
    }, --]]
}

Config.Actions = {
    Repair = {
        DrawOutline = false,
        Effect = "Repair",
        Log = "had repaired car",
        RequiredItems = {
            { item = "repairkit", count = 1, remove = true },
        },
        AddItems = {
            -- nil
        },
        animation = {
            Duration = 5000,
            text = "Repairing the car",
            anim = {
                dict = "anim@amb@clubhouse@tutorial@bkr_tut_ig3@",
                clip = "machinic_loop_mechandplayer",
            },
            prop = {
                model = `v_ind_cs_wrench`,
                pos = vec3(0.1, -0.02, 0.0),
                rot = vec3(1.0, -55.0, 0.0),
                bone = 18905
            },
        }
    },
    Clean = {
        DrawOutline = false,
        Effect = "SmallClean",
        Log = "had cleaned car",
        RequiredItems = {
            { item = "sponge", count = 1, remove = true },
        },
        AddItems = {
            { item = "sponge_dirty", count = 1 },
        },
        animation = {
            Duration = 5000,
            text = "Washing the car",
            anim = {
                dict = "timetable@floyd@clean_kitchen@base",
                clip = "base",
            },
            prop = {
                model = `prop_sponge_01`,
                pos = vec3(0.0, 0.0, -0.01),
                rot = vec3(90.0, 0.0, 0.0),
                bone = 28422
            },
        }
    },
    CarWax = {
        DrawOutline = false,
        Effect = "Clean",
        Log = "had carwaxed car",
        RequiredItems = {
            { item = "carwax", count = 1, remove = true },
            { item = "cloth", count = 1, remove = true },
        },
        AddItems = {
            { item = "cloth_dirty", count = 1 },
        },
        animation = {
            Duration = 10000,
            text = "Waxing the car",
            anim = {
                dict = "gestures@f@standing@casual",
                clip = "gesture_hand_down",
            },
            prop = {
                model = `v_serv_bs_spray`,
                pos = vec3(0.12, -0.04, 0.08),
                rot = vec3(-130.0, 0.0, 0.0),
                bone = 18905
            },
        }
    },
    LockPick = {
        DrawOutline = false,
        Effect = "LockPick",
        Log = "had lockpicked car",
        RequiredItems = {
            { item = "lockpick", count = 1, remove = true },
        },
        AddItems = {
            --nil
        },
        animation = {
            Duration = 10000,
            text = "Lockpicking the car",
            anim = {
                dict = "mini@repair",
                clip = "fixing_a_ped"
            },
            prop = {
                model = `prop_tool_screwdvr02`,
                pos = vec3(0.14, 0.0, -0.01),
                rot = vec3(60.0, -147.0, 30.0),
                bone = 57005
            },
        }
    }
}

Config.WashActions = {
    WashCloth = {
        Log = "had cleaned dirty cloth",
        RequiredItems = {
            { item = "cloth_dirty", count = 1, remove = true },
        },
        AddItems = {
            { item = "cloth", count = 1 },
        },
        animation = {
            Duration = 5000,
            text = "Washing dirty cloth",
            anim = {
                dict = "mp_arresting",
                clip = "a_uncuff",
            },
            prop = {
                model = `prop_sponge_01`,
                pos = vec3(0.12, 0.05, -0.05),
                rot = vec3(87.0, 76.0, 0.0),
                bone = 57005
            },
        }
    },
    WashSponge = {
        Log = "had cleaned dirty sponge",
        RequiredItems = {
            { item = "sponge_dirty", count = 1, remove = true },
        },
        AddItems = {
            { item = "sponge", count = 1 },
        },
        animation = {
            Duration = 5000,
            text = "Washing dirty sponge",
            anim = {
                dict = "mp_arresting",
                clip = "a_uncuff",
            },
            prop = {
                model = `prop_sponge_01`,
                pos = vec3(0.12, 0.05, -0.05),
                rot = vec3(87.0, 76.0, 0.0),
                bone = 57005
            },
        }
    }
}

Last updated