🧪 Portable Drug Table - Features

  • Toggle Progress Circle: Choose between a traditional progress bar or a circular progress indicator

  • Location Settings: Position the progress circle on the screen with options like 'bottom' and 'center'

  • Diverse Tables: Create various drug crafting stations, each with unique characteristics

  • Unique IDs: Identify each table with specific item names, such as plastic_table_heroine

  • Prop Naming: Assign distinct prop names for each crafting table

  • Time Management: Set specific durations for setting up and dismantling each table

  • Recipe Customization: Define unique drug recipes for each table

  • Timed Crafting: Control the crafting duration for each drug recipe

  • Reward System: Specify the output for crafting such as drug quantities

  • Crafting Requirements: List essential items and their quantities for drug crafting

  • Recipe Addition: Easily expand the list of recipes and require items

  • Table Expansion: add more crafting tables by replicating and modifying existing configurations


⚙️ Installation Instructions

  1. Download xs_DrugTables via keymaster

  2. Extract the resource from the .zip folder

  3. Drag & Drop the file into your resources folder

  4. Add this to your server.cfg ensure xs_drugtables

  5. Configure the resource to your framework and liking


Portable Drug Table - Items (QB, OX and ESX)

// 
    plastic_table_heroine                   = { name = 'plastic_table_heroine', label = 'Heroin Table', weight = 1200, type = 'item', image = 'plastic_table_heroine.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'This table is used for crafting illegal drugs.' },
    plastic_table_cocaine                   = { name = 'plastic_table_cocaine', label = 'Cocaine Table', weight = 1200, type = 'item', image = 'plastic_table_cocaine.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'This table is used for crafting illegal drugs.' },
    plastic_table_ecstasy                   = { name = 'plastic_table_ecstasy', label = 'Ecstasy Table', weight = 1200, type = 'item', image = 'plastic_table_ecstasy.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'This table is used for crafting illegal drugs.' },
    plastic_table_meth                      = { name = 'plastic_table_meth',    label = 'Meth Table',   weight = 1200, type = 'item', image = 'plastic_table_meth.png',     unique = false, useable = true, shouldClose = true, combinable = nil, description = 'This table is used for crafting illegal drugs.' },
    plastic_table_mushrooms                 = { name = 'plastic_table_mushrooms', label = 'Mushroom Table', weight = 1200, type = 'item', image = 'plastic_table_mushrooms.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'This table is used for crafting illegal drugs.' },
    plastic_table_weed                      = { name = 'plastic_table_weed',    label = 'Weed Table', weight = 1200, type = 'item', image = 'plastic_table_weed.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'This table is used for crafting illegal drugs.' },
    plastic_table_fentanyl                  = { name = 'plastic_table_fentanyl',  label = 'Fentanyl Table', weight = 1200, type = 'item', image = 'plastic_table_fentanyl.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'This table is used for crafting illegal drugs.' },
    poppy                                   = { name = 'poppy', label = 'Poppy', weight = 10, type = 'item', image = 'poppy.png', unique = false, useable = true, shouldClose = true, combinable = true, description = 'Ingredient for making heroin.' },
    plastic_baggy                           = { name = 'plastic_baggy', label = 'Plastic Baggy', weight = 10, type = 'item', image = 'plastic_baggy.png', unique = false, useable = true, shouldClose = true, combinable = true, description = 'Ingredient for bagging drugs.' },
    heroin_shot                             = { name = 'heroin', label = 'Heroin Shot', weight = 15, type = 'item', image = 'heroin_shot.png', unique = false, useable = true, shouldClose = true, combinable = true, description = 'This drug will probably ruin your life.' },
    cocaine                                 = { name = 'cocaine', label = 'Cocaine', weight = 15, type = 'item', image = 'cocaine.png', unique = false, useable = true, shouldClose = true, combinable = true, description = 'This drug will probably ruin your life.' },
    ecstasy                                 = { name = 'ecstasy', label = 'Ecstasy', weight = 15, type = 'item', image = 'ecstasy.png', unique = false, useable = true, shouldClose = true, combinable = true, description = 'This drug will probably ruin your life.' },
    meth                                    = { name = 'meth', label = 'Meth', weight = 15, type = 'item', image = 'meth.png', unique = false, useable = true, shouldClose = true, combinable = true, description = 'This drug will probably ruin your life.' },
    ogkushkush                              = { name = 'ogkushkush', label = 'OG Kush', weight = 15, type = 'item', image = 'ogkushkush.png', unique = false, useable = true, shouldClose = true, combinable = true, description = 'This drug will probably ruin your life.' },
    shrooms                                 = { name = 'shrooms', label = 'Shrooms', weight = 15, type = 'item', image = 'shrooms.png', unique = false, useable = true, shouldClose = true, combinable = true, description = 'This drug will probably ruin your life.' },
    fentanyl                                = { name = 'fentanyl', label = 'Fentanyl', weight = 15, type = 'item', image = 'fentanyl.png', unique = false, useable = true, shouldClose = true, combinable = true, description = 'This drug will probably ruin your life.' },
    
    

📂 Portable Drug Table - Configuration File

// ```lua
local seconds = 1000
Config = {}

-- Head to xs_drugtables/bridge to make any changes to your framework.

Config.progressCircle = {
    enabled = false,    -- Enable progress circle rather than progress bar?
    location = 'bottom' -- Location if enabled? Options 'bottom', 'center'
}

Config.DrugTables = {

    -- TABLE START --
    ['plastic_table_heroine'] = {       -- Name of usable item for this table

        prop = 'plastic_table_heroine', -- Name of prop within
        setupTime = 4 * seconds,        -- Time to set up table
        pickupTime = 4 * seconds,       -- Time to pack up table
        recipes = {                     -- Where all possible recipes for this specific table

            {

                label = 'Heroin Table',            -- Menu label

                craftingTime = 12 * seconds, -- Time to craft

                reward = {
                    ['heroin_shot'] = 1, -- Reward given after successful craft.

                    -- Add more rewards if desired, ['ITEM_NAME'] = QUANTITY
                },

                requirements = { -- Requirements for this drug to show on menu for craft
                    ['poppy'] = { label = 'Poppy', quantity = 3 }, -- Replace with your own ingredients
                    ['plastic_baggy'] = { label = 'Plastic Baggy', quantity = 1 }, -- Replace with your own ingredients

                    -- Add more required items to craft specific drug if desired, ['ITEM_NAME_NEEDED'] = { label = LABEL, quantity = QUANTITY }
                },

            },

            -- Add more menu options/recipes for this drug table here
        }
    },

    ['plastic_table_cocaine'] = {       -- Name of usable item for this table

        prop = 'plastic_table_cocaine', -- Name of prop within
        setupTime = 4 * seconds,        -- Time to set up table
        pickupTime = 4 * seconds,       -- Time to pack up table
        recipes = {                     -- Where all possible recipes for this specific table

            {

                label = 'Cocaine Table',            -- Menu label

                craftingTime = 12 * seconds, -- Time to craft

                reward = {
                    ['cocaine'] = 1, -- Reward given after successful craft.

                    -- Add more rewards if desired, ['ITEM_NAME'] = QUANTITY
                },

                requirements = { -- Requirements for this drug to show on menu for craft
                    ['poppy'] = { label = 'Poppy', quantity = 3 }, -- Replace with your own ingredients
                    ['plastic_baggy'] = { label = 'Plastic Baggy', quantity = 1 }, -- -- Replace with your own ingredients

                    -- Add more required items to craft specific drug if desired, ['ITEM_NAME_NEEDED'] = { label = LABEL, quantity = QUANTITY }
                },

            },

            -- Add more menu options/recipes for this drug table here
        }
    },

    ['plastic_table_ecstasy'] = {       -- Name of usable item for this table

        prop = 'plastic_table_ecstasy', -- Name of prop within
        setupTime = 4 * seconds,        -- Time to set up table
        pickupTime = 4 * seconds,       -- Time to pack up table
        recipes = {                     -- Where all possible recipes for this specific table

            {

                label = 'Ecstasy Table',            -- Menu label

                craftingTime = 12 * seconds, -- Time to craft

                reward = {
                    ['ecstasy'] = 1, -- Reward given after successful craft.

                    -- Add more rewards if desired, ['ITEM_NAME'] = QUANTITY
                },

                requirements = { -- Requirements for this drug to show on menu for craft
                    ['poppy'] = { label = 'Poppy', quantity = 3 }, -- Replace with your own ingredients
                    ['plastic_baggy'] = { label = 'Plastic Baggy', quantity = 1 }, -- -- Replace with your own ingredients

                    -- Add more required items to craft specific drug if desired, ['ITEM_NAME_NEEDED'] = { label = LABEL, quantity = QUANTITY }
                },

            },

            -- Add more menu options/recipes for this drug table here
        }
    },

    ['plastic_table_meth'] = {       -- Name of usable item for this table

        prop = 'plastic_table_meth', -- Name of prop within
        setupTime = 4 * seconds,        -- Time to set up table
        pickupTime = 4 * seconds,       -- Time to pack up table
        recipes = {                     -- Where all possible recipes for this specific table

            {

                label = 'Meth Table',            -- Menu label

                craftingTime = 12 * seconds, -- Time to craft

                reward = {
                    ['meth'] = 1, -- Reward given after successful craft.

                    -- Add more rewards if desired, ['ITEM_NAME'] = QUANTITY
                },

                requirements = { -- Requirements for this drug to show on menu for craft
                    ['poppy'] = { label = 'Poppy', quantity = 3 }, -- Replace with your own ingredients
                    ['plastic_baggy'] = { label = 'Plastic Baggy', quantity = 1 }, -- -- Replace with your own ingredients

                    -- Add more required items to craft specific drug if desired, ['ITEM_NAME_NEEDED'] = { label = LABEL, quantity = QUANTITY }
                },

            },

            -- Add more menu options/recipes for this drug table here
        }
    },

    ['plastic_table_mushrooms'] = {       -- Name of usable item for this table

        prop = 'plastic_table_mushrooms', -- Name of prop within
        setupTime = 4 * seconds,        -- Time to set up table
        pickupTime = 4 * seconds,       -- Time to pack up table
        recipes = {                     -- Where all possible recipes for this specific table

            {

                label = 'Mushroom Table',            -- Menu label

                craftingTime = 12 * seconds, -- Time to craft

                reward = {
                    ['shrooms'] = 1, -- Reward given after successful craft.

                    -- Add more rewards if desired, ['ITEM_NAME'] = QUANTITY
                },

                requirements = { -- Requirements for this drug to show on menu for craft
                    ['poppy'] = { label = 'Poppy', quantity = 3 }, -- Replace with your own ingredients
                    ['plastic_baggy'] = { label = 'Plastic Baggy', quantity = 1 }, -- -- Replace with your own ingredients

                    -- Add more required items to craft specific drug if desired, ['ITEM_NAME_NEEDED'] = { label = LABEL, quantity = QUANTITY }
                },

            },

            -- Add more menu options/recipes for this drug table here
        }
    },

    ['plastic_table_weed'] = {       -- Name of usable item for this table

        prop = 'plastic_table_weed', -- Name of prop within
        setupTime = 4 * seconds,        -- Time to set up table
        pickupTime = 4 * seconds,       -- Time to pack up table
        recipes = {                     -- Where all possible recipes for this specific table

            {

                label = 'Weed Table',            -- Menu label

                craftingTime = 12 * seconds, -- Time to craft

                reward = {
                    ['ogkushkush'] = 1, -- Reward given after successful craft.

                    -- Add more rewards if desired, ['ITEM_NAME'] = QUANTITY
                },

                requirements = { -- Requirements for this drug to show on menu for craft
                    ['poppy'] = { label = 'Poppy', quantity = 3 }, -- Replace with your own ingredients
                    ['plastic_baggy'] = { label = 'Plastic Baggy', quantity = 1 }, -- -- Replace with your own ingredients

                    -- Add more required items to craft specific drug if desired, ['ITEM_NAME_NEEDED'] = { label = LABEL, quantity = QUANTITY }
                },

            },

            -- Add more menu options/recipes for this drug table here
        }
    },

    ['plastic_table_fentanyl'] = {       -- Name of usable item for this table

        prop = 'plastic_table_fentanyl', -- Name of prop within
        setupTime = 4 * seconds,        -- Time to set up table
        pickupTime = 4 * seconds,       -- Time to pack up table
        recipes = {                     -- Where all possible recipes for this specific table

            {

                label = 'Fentanyl Table',            -- Menu label

                craftingTime = 12 * seconds, -- Time to craft

                reward = {
                    ['fentanyl'] = 1, -- Reward given after successful craft.

                    -- Add more rewards if desired, ['ITEM_NAME'] = QUANTITY
                },

                requirements = { -- Requirements for this drug to show on menu for craft
                    ['poppy'] = { label = 'Poppy', quantity = 3 }, -- Replace with your own ingredients
                    ['plastic_baggy'] = { label = 'Plastic Baggy', quantity = 1 }, -- -- Replace with your own ingredients

                    -- Add more required items to craft specific drug if desired, ['ITEM_NAME_NEEDED'] = { label = LABEL, quantity = QUANTITY }
                },

            },

            -- Add more menu options/recipes for this drug table here
        }
    },
    -- TABLE END --


    -- Add more here by copying from TABLE START to TABLE END and pasting/customizing
}

```

Last updated

Was this helpful?