Configuration

Configuration for the Kit System, including a complete list of kits.

General Settings

Config = {}

Config.Locale = 'en'
Config.AdminGroup = {'admin', 'moderator', 'superadmin', 'owner'}
Config.Notify = function(title, msg, type)
    --exports['okokNotify']:Alert(title, msg, 5000, type)
    exports['JJ-Notify']:Alert(title, msg, 5000, type)
end

UI

Config.UI = {
    title = "Kit System",
    subtitle = "Choose your kit",
    buttonText = "Redeem Kit",
    closeText = "Close"
}

Kits

Config.Kits = {
    ['starter'] = {
        id = 1,
        label = "Starter Kit",
        description = "Basic kit for new players",
        cooldown = 15, -- 15 minutes
        vip = false,
        discordRole = nil,
        items = {
            {name = 'bread', count = 5, label = 'Bread'},
            {name = 'water', count = 3, label = 'Water'},
            {name = 'money', count = 1000, label = 'Money'}
        },
        image = "https://cdn.discordapp.com/attachments/1097937661156663376/1099788720690970685/export202304232206290207.png?ex=688dc750&is=688c75d0&hm=b8a0820d48e17dbdd80126b4e04c554f634704576b536c6462aedc2005fea813&"
    },
    
    ['vip'] = {
        id = 2,
        label = "VIP Kit",
        description = "Exclusive kit for VIP players",
        cooldown = 120, -- 2 hours
        vip = true,
        discordRole = "1350430657951694910",
        items = {
            {name = 'bread', count = 10, label = 'Bread'},
            {name = 'water', count = 5, label = 'Water'},
            {name = 'money', count = 5000, label = 'Money'},
            {name = 'phone', count = 1, label = 'Phone'},
            {name = 'phone', count = 1, label = 'Pistol'}
        },
        image = "https://cdn.discordapp.com/attachments/1097937661156663376/1099052677301809313/export202304212122226475.png?ex=688dbcd1&is=688c6b51&hm=190cc3a8b99e2baa78a83cbce3c22c7a157565d2733add09771f38256e344103&"
    },
    
    ['premium'] = {
        id = 3,
        label = "Premium Kit",
        description = "Top-tier kit with premium items",
        cooldown = 1440, -- 24 hours
        vip = true,
        discordRole = "1329465857277169815",
        items = {
            {name = 'bread', count = 15, label = 'Bread'},
            {name = 'water', count = 8, label = 'Water'},
            {name = 'money', count = 10000, label = 'Money'},
            {name = 'phone', count = 1, label = 'Phone'},
            {name = 'lockpick', count = 3, label = 'Lockpick'}
        },
        image = "https://cdn.discordapp.com/attachments/1097937661156663376/1098328308250312825/export202304192124144860.png?ex=688dbd32&is=688c6bb2&hm=5697d899ee2967faa669ebfd960e8b4c42f04c59c6f66c3156447db274078660&"
    },
    ['admin'] = {
        id = 4,
        label = "Admin Kit",
        description = "Exclusive kit for admins",
        cooldown = 1440, -- 24 hours
        vip = true,
        discordRole = "1329465857277169815",
        items = {
            {name = 'bread', count = 20, label = 'Bread'},
            {name = 'water', count = 10, label = 'Water'},
            {name = 'money', count = 20000, label = 'Money'},
            {name = 'phone', count = 1, label = 'Phone'},
            {name = 'lockpick', count = 5, label = 'Lockpick'}
        },
        image = "https://cdn.discordapp.com/attachments/1097937661156663376/1098328308250312825/export202304192124144860.png?ex=688dbd32&is=688c6bb2&hm=5697d899ee2967faa669ebfd960e8b4c42f04c59c6f66c3156447db274078660&"
    }
}

Database

Config.Database = {
    tableName = 'kit_cooldowns'
}

Notifications

Config.Notifications = {
    kitReceived = "You have successfully redeemed %s!",
    cooldownActive = "You must wait %s before redeeming the next kit.",
    kitNotFound = "Kit not found.",
    noPermission = "You do not have permission to use this kit.",
    errorOccurred = "An error occurred while redeeming the kit."
}

Commands

Config.Commands = {
    openUI = 'kits',
    adminReload = 'reloadkits'
}

Keybinds

Config.Keys = {
    openUI = 'F5'
}

Discord Bot Setup (required)

To enable Discord role checks for VIP/Admin kits, set your bot token and guild ID in server_config.lua.

-- server_config.lua
BotToken = "YOUR_BOT_TOKEN"
GuildId = "YOUR_GUILD_ID"

Ensure the bot is in your Discord server and has the required intents/permissions to read member roles.