Config File

How config file looks?

```lua
Config                  = {}

-- Script Language 
Config.oldESX = false -- Enable it when you're using OLD esx versions
Config.fontAwesomeUrl = "https://kit.fontawesome.com/bbb738372b.js" -- change it to your own kit to avoid icons not showing
Config.Locale = "en" -- Available: en/pl/fr/nl/de/sv

-- UI is translated automatically now!
Config.TranslateCapIndex = "TranslateCap" -- Available: TranslateCap & _U (Depends on your esx version)

-- Phone Numbers

Config.PhoneToggle = false -- do you want to show phone numbers in mechanic tablet (duty list, dispatch calls customers numbers)
Config.PhoneType = "custom" -- If you are using QS Phone/QS phone pro/LB Phone leave bottom things and just change it to: "qsphone" or "qsphonepro" or "lbphone" or use "custom" for below options!
-- Bottom things only for custom phones not supported above!!!
Config.PhoneTable = 'users' -- table in database wich store phone numbers
Config.PhoneColumn = 'phone_number' -- column name of phone number

-- In table should be column named 'identifier' with player identifier!!!!

-- Dispatch Events

Config.DispatchDefaultCommands = true -- enable/disable default script command (need server restart)
-- If you want to setup sending dispatch via your phone or your other script see https://docs.otherplanet.dev/scripts/mechanic-job/setup-dispatch
Config.DispatchSendCooldown = 60 -- time in seconds!!

-- Others

Config.ImpoundWaitingTime = 10
Config.DrawDistance = 5.0 -- Markers Draw Distance (Remember to add .0 on the end)
Config.SellVehiclePercent = 15 -- do not add % or .0 // This option is to setup which percent should be taken when you want to sell vehicle in bossmenu
Config.SlotUpgrade = 1500 -- price for one slot for vehicle in company
Config.InvoicePercent = 15 -- Percent which will be added from invoices to society account
Config.BackToDutyCommand = "backtoduty" -- Command to back to duty after Crash or Timeout
Config.BackToDutyTime = 5 -- In Minutes

-- Misc

Config.MechanicMenuAlign = "center" -- Align of esx_menu_default on F6 actions
Config.EnableMechanicMenu = true -- set to true if you want F6 mechanic menu!
Config.DefaultMechanicMenuKey = "F6"
Config.TargetType = "marker" -- Available: marker / ox-target (Actions accessing method)
Config.TowingVehicleName = "flatbed"
Config.TowingVehicleAttach = {
    boneIndex = 20,
    xPos = -0.5,
    yPos = -5.0,
    zPos = 1.0,
    xRot = 0.0,
    yRot = 0.0,
    zRot = 0.0,
    p9 = false,
    useSoftPinning = false,
    collision = false,
    isPed = false,
    rotationOrder = 20,
    syncRot = true
}
Config.NuiFixCommandName = "nuifix"
Config.Skin = "default" -- default / illenium-appearance 

-- Jobs Config 

Config.Jobs = {
    ["mechanic"] = {
        JobName = "mechanic", -- Job Name which you created to database
        MechanicBlip = vec3(1141.3573, -796.6442, 57.5931),
        MechanicBlipType = 446,
        MechanicBlipColor = 57,
        MechanicBlipSize = 0.8,
        MechanicBlipName = "Test Mechanic Job", -- Label of job which will be shown in bossmenu, dispatch and blip
        Duty = {
            Position = vec3(1159.8956, -780.9978, 56.6052), -- Duty on/off marker / ox-target 
            Color = {r = 3, g = 215, b = 252}, -- color of marker (Leave it when using ox-target)
            ZoneSize = {x = 0.6, y = 0.6, z = 0.6} -- size of marker / ox-target
        },
        Dispatch = {
            Command = "mirrormechanic", -- if Config.DispatchDefaultCommands is enabled this is dispatch command for players to this job (See How to configurate custom dispatch ex. in your phone: https://docs.otherplanet.dev/scripts/mechanic-job/setup-dispatch)
            CommandDescription = "Send Dispatch from current location to Mirror's Mechanic",
            DispatchTag = "#MRR-"
        },
        Zones = {
            -- Important: Do not change action value!!!
            ['garage'] = {
                Position = vec3(1132.5463, -793.5722, 56.5953), -- Garage marker / ox-target
                SpawnCoords = vec3(1132.5463, -793.5722, 56.5953), -- Garage Vehicle spawn coords
                Color = {r = 3, g = 215, b = 252}, -- (Leave it when using ox-target)
                Action = "garage", -- Do not change it!!
                ZoneSize = {x = 1.0, y = 1.0, z = 1.0}
            },
            ['locker'] = {
                Position = vec3(1132.3767, -779.2751, 56.6056), -- Locker marker / ox-target
                Color = {r = 3, g = 215, b = 252}, -- (Leave it when using ox-target)
                Action = "locker", -- Do not change it!!
                ZoneSize = {x = 1.1, y = 1.1, z = 1.1}
            },
            ['bossmenu'] = {
                Position = vec3(1156.5420, -780.1456, 56.6051), -- Bossmenu marker / ox-target
                Color = {r = 3, g = 215, b = 252}, -- (Leave it when using ox-target)
                Action = "bossmenu", -- Do not change it!!
                ZoneSize = {x = 0.8, y = 0.8, z = 0.8}
            },
        },
        Vehicles = {
            -- Vehicles which will be available to buy from bossmenu
            {
                VehicleLabel = "Pounder",
                VehicleSpawnName = "pounder2",
                VehiclePrice = 25000,
                VehicleImage = "https://otherplanet.dev/mechanicjob/pounder2.png",
                VehicleLogo = "https://otherplanet.dev/mechanicjob/va.png",
                VehicleDesc = "Vehicle for transporting goods"
            },
            {
                VehicleLabel = "Burrito",
                VehicleSpawnName = "burrito3",
                VehiclePrice = 12000,
                VehicleImage = "https://otherplanet.dev/mechanicjob/burrito3.png",
                VehicleLogo = "https://otherplanet.dev/mechanicjob/v.png",
                VehicleDesc = "Vehicle for emergency calls"
            },
            {
                VehicleLabel = "FlatBed",
                VehicleSpawnName = "flatbed",
                VehiclePrice = 45000,
                VehicleImage = "https://otherplanet.dev/mechanicjob/flatbed.png",
                VehicleLogo = "https://otherplanet.dev/mechanicjob/mtl.png",
                VehicleDesc = "A vehicle adapted to tow cars"
            },
        },
        BossmenuGradeToAccess = 4, -- at what grade user can access bossmenu
        GarageGradeToAccess = 0,-- at what grade user can access garage
        LockerGradeToAccess = 0, -- at what grade user can access locker
        MechanicMenuGradeToAccess = 0, -- at what grade user can access F6 mechanic menu
    },
}

Config.Animations = {
    ['body_repair'] = {
        type = "anim",
        dict = "mini@repair", 
        lib = "fixing_a_player"
    },
    ['engine_repair'] = {
        type = "anim",
        dict = "mini@repair", 
        lib = "fixing_a_ped"
    },
    ['clean_vehicle'] = {
        type = "Scenario",
        Scenario = "WORLD_HUMAN_MAID_CLEAN", 
    },
    ['tow_vehicle'] = {
        type = "anim",
        dict = "anim@amb@clubhouse@tutorial@bkr_tut_ig3@", 
        lib = "machinic_loop_mechandplayer" 
    },
}

Config.WaitingTime = {
    EngineRepair = 20000,
    BodyRepair = 20000,
    VehicleClean = 8000,
    VehicleTow = 8000
}

Config.Logs = {
    BossMenuLogs = "https://discord.com/api/webhooks/",
    InvoicesLogs = "https://discord.com/api/webhooks/",
    DispatchLogs = "https://discord.com/api/webhooks/",
    DutyLogs = "https://discord.com/api/webhooks/"
}

-- How to create Discord Webhooks? 
-- Follow this page: https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks
```

Last updated