config.lua

Full View

Config = {}

Config.Framework = 'esx' -- framework ('esx' or 'qbcore') and fxmanifest.lua
Config.NotificationSystem = 'ox_lib'  -- Options: 'ox_lib', 'tnotify', 'okoknotify', 'print', 'framework'. Determines the notification system to use.
Config.InteractionType = "ox_target" -- Options: "ox_target" or "qb-target" 
Config.Locale = "en" -- Localization option: choose between 'hu', 'en', 'de', 'fr'.
Config.Webhook = "" -- Discord Webhook
Config.Debug = false  -- Enable debug mode for additional output during development.

---------------- JOB ----------------

-- Location where the worker outfit can be equipped
Config.JobStart = vector3(832.5592, -1923.9800, 30.3147)

-- Location for requesting a vehicle (visible only when on duty)
Config.VehicleRequestLocation = vector3(838.9942, -1925.3198, 30.3147)

-- Vehicle spawn position
Config.VehicleSpawn = vector4(835.6810, -1934.2272, 28.9588, 181.9657)

-- Finish Job / Vehicle Return position
Config.VehicleReturnLocation = vector3(844.5030, -1948.2710, 28.9807)

-- Work Clothes
Config.WorkClothes = {
    male = {
        ['tshirt_1'] = 15, ['tshirt_2'] = 0,
        ['torso_1'] = 364, ['torso_2'] = 0,
        ['arms'] = 0,
        ['pants_1'] = 135, ['pants_2'] = 0,
        ['shoes_1'] = 24, ['shoes_2'] = 0,
        ['helmet_1'] = 0, ['helmet_2'] = 0,
        ['hat_1'] = 154, ['hat_2'] = 0
    },
    female = {
        ['tshirt_1'] = 2, ['tshirt_2'] = 0,
        ['torso_1'] = 383, ['torso_2'] = 0,
        ['arms'] = 0,
        ['pants_1'] = 142, ['pants_2'] = 0,
        ['shoes_1'] = 52, ['shoes_2'] = 0,
        ['helmet_1'] = 0, ['helmet_2'] = 0,
        ['hat_1'] = 153, ['hat_2'] = 0
    }
}

-- Routes checkpoints
Config.RoutesPoints = {
    first = {
        [1] = vector3(-691.9731, -749.9688, 25.0465),
        [2] = vector3(-692.2104, -730.8198, 29.3480),
        [3] = vector3(-692.1506, -730.8345, 33.6836),
        [4] = vector3(-60.1148, -1749.0752, 29.3237),
        [5] = vector3(566.0951, -1750.8569, 29.2875),
        reward = 150 -- Full payment upon completing all checkpoints
    },
    second = {
        [1] = vector3(-333.4838, -783.0201, 43.6060),
        [2] = vector3(-325.6522, -738.9118, 43.6050),
        [3] = vector3(-522.5433, 159.7481, 71.0812),
        [4] = vector3(282.6742, 66.2876, 94.3703),
        [5] = vector3(285.2960, 80.3714, 94.3628),
        reward = 180 -- Full payment upon completing all checkpoints
    },
    third = {
        [1] = vector3(-1546.4862, -442.4153, 35.8820),
        [2] = vector3(-1655.4330, -1097.3125, 13.1220),
        [3] = vector3(-1695.3782, -1127.2281, 13.1523),
        [4] = vector3(-1710.7416, -1133.8826, 13.1292),
        [5] = vector3(-709.1895, -910.1235, 19.2156),
        reward = 150 -- Full payment upon completing all checkpoints
    },
    fourth = {
        [1] = vector3(-1230.9404, -1448.4622, 4.2550),
        [2] = vector3(-1270.1609, -1427.5579, 4.3521),
        [3] = vector3(-534.3570, -1301.7502, 26.0455),
        [4] = vector3(-341.3214, -1481.0992, 30.6742),
        [5] = vector3(-244.3030, -1540.9413, 31.6198),
        reward = 150 -- Full payment upon completing all checkpoints
    },
    fifth = {
        [1] = vector3(-269.7131, -2022.9342, 30.1456),
        [2] = vector3(-275.8619, -2041.7854, 30.1456),
        [3] = vector3(62.1213, -1576.0870, 29.5978),
        [4] = vector3(449.9610, -656.4971, 28.4228),
        [5] = vector3(452.1991, -633.0960, 28.5261),
        reward = 150 -- Full payment upon completing all checkpoints
    },
    sixth = {
        [1] = vector3(-2283.0964, 362.6790, 174.6016),
        [2] = vector3(644.0010, 265.7829, 103.2343),
        [3] = vector3(1161.0964, -319.8048, 69.2051),
        [4] = vector3(1084.8613, -775.2179, 58.2129),
        [5] = vector3(815.6896, -2971.6128, 6.0207),
        [6] = vector3(821.2958, -2988.2097, 6.0209),
        reward = 200 -- Full payment upon completing all checkpoints
    },
}

Config.RefillTimer = 5 -- Vending machine refill time (5 = 5 sec)

Config.GiftRewardChance = 45 -- 45% chance of gift item rewards (in addition to cash rewards)
-- Gift Items
Config.GiftRewardItems = {
    {name = "ecola", label = "eCola Drink", min = 1, max = 2},
    {name = "sprunk", label = "Sprunk Drink", min = 1, max = 2}
}

---------------- BUY DRINK ----------------

Config.RequiredJobsPerTimer = 5 -- Required full jobs
Config.Timer = 60 -- Minutes -- Time to check for required refills of vending machines
Config.BuyingTimer = 5 -- Buying time(5 = 5 sec)
-- Cola 
Config.eColaItem = "ecola"
Config.ColaPrice = 5
-- Sprunk 
Config.SprunkItem = "sprunk"
Config.SprunkPrice = 5

---------------- LOCKPICKING ----------------

-- Lockpicking settings
Config.LockpickItem = "lockpick" -- Required item name in the inventory
Config.BlackMoney = "black_money" -- Black money item. Reward Item
Config.BlackMoneyMin = 10 -- Minimum black money reward from lockpicking
Config.BlackMoneyMax = 30 -- Maximum black money reward

-- Skill check settings
Config.Check = {
    EnableSkillCheck = true, -- OX_LIB Skill Check.
    ProcessTime = 5, -- seconds (only if Skill Check is disabled)
}

Config.SkillCheckDifficulty = {'easy', 'easy'}  -- Difficulty levels 'easy', 'medium', 'hard'
Config.SkillCheckKeys = {'w', 'a', 's', 'd'}  -- Keys to press

-- Cooldown settings (per vending machine)
Config.Cooldown = 300.0 -- seconds (300 sec = 5 minutes)
Config.PoliceNotiChance = 25 -- 25% chance for police job notification
Config.LockpickBreakChance = 45  -- 45% chance for the lockpick to break

---------------- NOTIFICATIONS ----------------

-- Notifications settings
Config.Notifications = {
    ox_lib = function(msg, msgType)
        lib.notify({
            position = 'top',
            type = msgType,
            description = msg,
            duration = 5000
        })
    end,

    tnotify = function(msg, msgType)
        exports['t-notify']:Alert({
            style = msgType,
            message = msg,
            duration = 5000
        })
    end,

    okoknotify = function(msg, msgType)
        exports['okokNotify']:Alert('Notification', msg, 3000, msgType)
    end,

    print = function(msg, _)
        print(msg)
    end,

    framework = function(msg, msgType)
        if Config.Framework == "qb-core" then
            QBCore.Functions.Notify(msg, msgType)
        elseif Config.Framework == "esx" then
            ESX.ShowNotification(msg)
        end
    end
}

Last updated