config.lua

Full View

Config = {}

-- Stash settings
Config.StashWeight = 100000 -- Maximum weight capacity in grams (default: 100 kg)
Config.NotificationSystem = 'ox_lib'  -- Options: 'ox_lib', 'tnotify', 'okoknotify', 'print', 'qbcore', 'esx'. Determines the notification system to use.

-- Debug mode
Config.Debug = false

-- Localized messages
Config.Locales = {
    targetLabel = "Give",  -- Display text for ox_target

    -- Notifications
    transferSuccess = "You have successfully transferred the items!",
    transferReceived = "You received an item!",
    transferFailed = "The transfer failed! The recipient's inventory was full. Your items have been returned.",
    
    -- Full Inventory Notifications
    inventoryFull = "Your inventory is full! You couldn't receive the transferred items.",
}

-- 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,

    qbcore = function(msg, msgType)
        QBCore.Functions.Notify(msg, msgType)
    end,

    esx = function(msg, msgType)
        ESX.ShowNotification(msg)
    end
}

Last updated