Example Configuration File

Example Configuration of version 1.2.0 of the script

Config = {}

Config.inventory = 'ox_inventory' -- Supported inventories by default: 'ox_inventory', 'qb_inventory'. If you use another inventory, you will need to modify the inventory functions in the client/custom/inventory.lua file.

Config.Locale = 'en' -- Default locale is English, Supported locales by default: 'en', 'es'

Config.Businesses = {
    ['ltd_vinewood'] = {
        name = "LTD Vinewood",
        spawnPoint = vector4(375.44, 317.43, 103.43, 352), -- This is the point where the customer will spawn
        despawnPoint = vector4(375.44, 317.43, 103.43, 352), -- This is the point where the customer will despawn
        cashierPoints = {
            vector4(372.94, 328.42, 103.57, 297), -- This is the point where the player will be able to start the interaction
        },
        queuePoint = vector4(374.25, 327.75, 103.57, 76), -- This is the point where the customer will queue, usually behind the cashier
        items = {
            {name = "sandwich", label = "Sandwich", price = 75},
            {name = "water_bottle", label = "Water Bottle", price = 125},
        },
        requiredJob = 'ltd_vinewood',
        jobGrade = 0,
        hours = {
            open = 6,  -- 6 AM
            close = 22, -- 10 PM
        },
        customerFlow = {
            morning = {
                start = 6, 
                finish = 11, 
                minWait = 45, 
                maxWait = 90,
                maxQueue = 3
            },
            lunch = {
                start = 11, 
                finish = 15, 
                minWait = 10, 
                maxWait = 20, 
                maxQueue = 6, 
                burstMode = {
                    enabled = true,
                    interval = {300, 600}, -- Rush occurs every 5-10 minutes
                    duration = {120, 180}, -- Rush lasts 2-3 minutes
                    spawnRate = {5, 10} -- Spawn customer every 5-10 seconds during rush
                }
            },
            evening = {
                start = 15, 
                finish = 19, 
                minWait = 20, 
                maxWait = 45,
                maxQueue = 4
            },
            night = {
                start = 19, 
                finish = 22, 
                minWait = 60, 
                maxWait = 120,
                maxQueue = 2
            }
        }
    },
}

Config.InteractionDistance = 2.0
Config.MaxQueueSize = 3
Config.CustomerWaitTime = 60 
Config.TransactionCooldown = 2000

Config.Tipping = {
    baseChance = 0.15, -- 15% base chance for tipped by the customer
    maxTipPercent = 0.10, -- Maximum tip is 10% of total
    timeThresholds = { -- Increased difficulty of time thresholds
        perfect = 2000,    -- 2 seconds 
        good = 3500,       -- 3.5 seconds 
        okay = 5000,       -- 5 seconds 
        slow = 7000        -- 7 seconds
    }
}

Config.CustomerPatience = {
    maxWaitTime = 30000, 
    warningTime = 15000 
}

-- Add ped models configuration
Config.CustomerPeds = {
    -- Business Males
    "a_m_m_business_01",
    "a_m_y_business_01",
    "a_m_y_business_02",
    "a_m_y_business_03",
    
    -- Business Females
    "a_f_m_business_02",
    "a_f_y_business_01",
    "a_f_y_business_02",
    "a_f_y_business_03",
    "a_f_y_business_04",
    
    -- Casual Males
    "a_m_m_bevhills_01",
    "a_m_m_bevhills_02",
    "a_m_y_bevhills_01",
    "a_m_y_bevhills_02",
    "a_m_m_eastsa_01",
    "a_m_y_eastsa_02",
    "a_m_m_socenlat_01",
    "a_m_m_skater_01",
    "a_m_y_skater_01",
    "a_m_y_skater_02",
    
    -- Casual Females
    "a_f_m_bevhills_01",
    "a_f_m_bevhills_02",
    "a_f_y_bevhills_01",
    "a_f_y_bevhills_02",
    "a_f_y_bevhills_03",
    "a_f_y_bevhills_04",
    "a_f_m_eastsa_01",
    "a_f_y_eastsa_01",
    "a_f_y_eastsa_02",
    
    -- Tourist Males
    "a_m_m_tourist_01",
    "a_m_y_tourist_01",
    "a_m_y_tourist_02",
    
    -- Tourist Females
    "a_f_m_tourist_01",
    "a_f_y_tourist_01",
    "a_f_y_tourist_02",
    
    -- Hipster Males
    "a_m_y_hipster_01",
    "a_m_y_hipster_02",
    "a_m_y_hipster_03",
    
    -- Hipster Females
    "a_f_y_hipster_01",
    "a_f_y_hipster_02",
    "a_f_y_hipster_03",
    "a_f_y_hipster_04",
    
    -- General Public
    "a_m_y_genstreet_01",
    "a_m_y_genstreet_02",
    "a_f_y_genhot_01",
    "a_f_y_vinewood_01",
    "a_f_y_vinewood_02",
    "a_f_y_vinewood_03",
    "a_f_y_vinewood_04",
    "a_m_m_golfer_01",
    "a_m_y_golfer_01",
    "a_f_y_golfer_01",
    "a_m_m_tennis_01",
    "a_f_y_tennis_01",
    "a_m_y_yoga_01",
    "a_f_y_yoga_01"
}


-- Only use this when asked by support or if you know what you're doing.

Config.Debug = false 

Last updated