📃Config

Config = {}

Config.Locale = 'en' -- 'en' or 'pt'
Config.Debug = true -- Set to true to enable debug logs
Config.AutoDatabaseSetup = true -- Set to false if you want to create the database tables manually 
Config.UseTarget = true -- Set to false to use command only
Config.Society = "Renewed-Banking" -- "custom", "esx_addonaccount", "okokBanking", "qb-banking", "qb-management", "Renewed-Banking"

Config.Stash = {
    useInventory = false, -- Set to false to use custom stash system
    blockedItems = { -- Items that cannot be stored in the stash ( this only works if you use useInventory = false)
        "weapon_pistol",
        "weapon_assaultrifle"
    },
}

Config.Commands = {
    boss_menu = {
        enable = true,
        command = "bossmenu",
        description = "Open Boss Menu"
    },
    duty = {
        enable = true,
        command = "duty",
        description = "Clock In/Out"
    },
    billing = {
        enable = true,
        command = "billing",
        description = "Open Player Billing Menu"
    }
}

Config.Locations = {
    ['police'] = {
        boss = {
            coords = vector3(448.01, -973.39, 30.69),
            heading = 90.0,
            distance = 2.0,
            label = "Police Boss Menu",
            icon = "fa-solid fa-shield-halved",
            requiredGrade = 4
        },
        duty = {
            coords = vector3(440.58, -975.67, 30.69),
            heading = 180.0,
            distance = 2.0,
            label = "Clock In/Out",
            icon = "fa-solid fa-clock",
            requiredGrade = 0
        },
        stash = {
            coords = vector3(452.13, -973.25, 30.69),
            heading = 270.0,
            distance = 2.0,
            label = "Warehouse Stash",
            icon = "fa-solid fa-box",
            requiredGrade = 0
        }
    },
}

Config.Billing = {
    UseInternal = true, -- true = Use internal billing system | false = Use external billing via s_utils

    -- External Billing Scripts (only used if UseInternal = false)
    -- Supported: 'okokBilling', 'jim-payments', 'RxBilling', 'custom'
    ExternalScript = 'okokBilling',

    -- Invoice Settings
    AllowNegativeBalance = false, -- Allow creating invoices even if company balance is negative
    MaxInvoiceAmount = 50000, -- Maximum invoice amount ($)
    MinInvoiceAmount = 1, -- Minimum invoice amount ($)

    -- Auto-delete settings
    AutoDeletePaidInvoices = true, -- Automatically delete paid invoices after X days
    DeleteAfterDays = 30, -- Days to keep paid invoices before auto-delete
    
    -- Auto-pay settings
    AutoPayEnabled = true, -- Enable automatic payment of unpaid invoices after X days
    AutoPayAfterDays = 7, -- Days to wait before automatically paying unpaid invoices
}

Config.Bonus = {
    Enabled = true, -- Enable automatic bonus payments
    MinBonusAmount = 0, -- Minimum bonus amount that can be set ($)
    MaxBonusAmount = 10000, -- Maximum bonus amount that can be set ($)
    
    -- Payment Schedule
    PaymentInterval = 60, -- Time in minutes between bonus payments (default: 60 = every hour)
    -- Examples: 30 = every 30 minutes, 60 = every hour, 1440 = once per day
    
    -- Payment Conditions
    RequireOnDuty = true, -- Only pay bonus to employees who are clocked in
    RequireOnline = true, -- Only pay bonus to online employees
    
    -- Notifications
    NotifyOnPayment = true, -- Notify employee when they receive bonus
    NotifyBoss = false, -- Notify boss when bonuses are paid out
}

Last updated