Configuration

This showcases and explains the config.lua file within the Gunplug!

Config = {
    -- ESX / ACE / Custom 
    groupType = 'ace',

    resetDates = { 
        { month = 2, day = 1, hour = 0, minute = 0 },
        { day = 20, hour = 3, minute = 09 },
    },

    gunData = {
        handGuns = {
            semis = {
                'WEAPON_P226',
                'WEAPON_CM1911',
                'WEAPON_BP',
                'WEAPON_VP9',
                'WEAPON_MAKAROV',
                'WEAPON_SW659',
                'WEAPON_WP99',
                'WEAPON_G43X',
                'WEAPON_GLOCK19',
                'WEAPON_GLOCK17',
                'WEAPON_SR40',
                'WEAPON_TEC9',
            },

            fullies = {
                'WEAPON_GLOCK18C',
                'WEAPON_MP9',
                'WEAPON_GHOSTGUN19',
            },
        },

        rifles = {
            semis = {
                'WEAPON_AR15',
                'WEAPON_ARPISTOL',
                'WEAPON_DRACO',
            },

            fullies = {
                'WEAPON_AK47U',
                'WEAPON_P90',
                'WEAPON_MAC10',
                'WEAPON_MP5',
            },
        },

        shotguns = {
            semis = {
                'WEAPON_SERBU',
                'WEAPON_MOSSBERG',
                'WEAPON_M37',
            },

            fullies = {
                'WEAPON_BEANBAG',
            },
        },
    },

    tiers = { --IF USING groupType "ACE", you must do add_ace group.<group> <tier> allow . EX | add_ace group.vip gunplug allow. Otherwise put ESX group or custom group as tier. 
        ['gunplug'] = {
            uses = 2, 

            rifles = {
                fullies = 2,
                semis = 3,
            },

            handGuns = {
                fullies = 2,
                semis = 3,
            }
        },

        ['gunplug_plus'] = {
            uses = 3, 

            rifles = {
                fullies = 2,
                semis = 3,
            },

            handGuns = {
                fullies = 2,
                semis = 3,
            }
        },
    },

    cooldown = 360, -- Command cooldown if no perms to refresh perms in seconds. Makes database request if no perms, so needs cooldown. 
}

Last updated