X Studios
TebexDiscord
  • Welcome
  • Knowledge
    • Fivem Escrow System
    • How to Update
  • Script Guides
    • ๐Ÿ‘•Non Branded Clothing
    • ๐Ÿ””xs-Notifications (v1)
    • ๐Ÿ’‰xs-DrugTables
    • ๐Ÿ“ฆxs-OxInventoryReskin
    • ๐ŸŒทxs-Loading
Powered by GitBook
On this page
  • Portable Drug Table - Features
  • โš™๏ธ Installation Instructions
  • Portable Drug Table - Items (QB, OX and ESX)
  • Portable Drug Table - Configuration File

Was this helpful?

Previousxs-Notifications (v1)Nextxs-OxInventoryReskin

Last updated 2 months ago

Was this helpful?




  • 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


// 
    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.' },
    
    
//      ['plastic_table_heroine'] = {
		label = 'Heroin Table',
		weight = 1250,
		stack = false,
		close = true,
	},

	['plastic_table_cocaine'] = {
		label = 'Cocaine Table',
		weight = 1250,
		stack = false,
		close = true,
	},

	['plastic_table_ecstasy'] = {
		label = 'Ecstasy Table',
		weight = 1250,
		stack = false,
		close = true,
	},

	['plastic_table_meth'] = {
		label = 'Meth Table',
		weight = 1250,
		stack = false,
		close = true,
	},

	['plastic_table_mushrooms'] = {
		label = 'Mushroom Table',
		weight = 1250,
		stack = false,
		close = true,
	},

	['plastic_table_weed'] = {
		label = 'Weed Table',
		weight = 1250,
		stack = false,
		close = true,
	},

	['plastic_table_fentanyl'] = {
		label = 'Fentanyl Table',
		weight = 1250,
		stack = false,
		close = true,
	},

    	['poppy'] = {
		label = 'Poppy',
		weight = 20,
		stack = true,
		close = true,
	},

    	['plastic_baggy'] = {
		label = 'Plastic Baggy',
		weight = 12,
		stack = true,
		close = true,
	},

	['heroin_shot'] = {
		label = 'Heroin Shot',
		weight = 15,
		stack = true,
		close = true,
	},

	['cocaine'] = {
		label = 'Cocaine',
		weight = 15,
		stack = true,
		close = true,
	},

	['ogkushkush'] = {
		label = 'OG Kush',
		weight = 15,
		stack = true,
		close = true,
	},

	['meth'] = {
		label = 'Meth',
		weight = 15,
		stack = true,
		close = true,
	},

	['fentanyl'] = {
		label = 'Fentanyl',
		weight = 15,
		stack = true,
		close = true,
	},

	['shrooms'] = {
		label = 'Shrooms',
		weight = 15,
		stack = true,
		close = true,
	},

	['ecstasy'] = {
		label = 'Ecstasy',
		weight = 15,
		stack = true,
		close = true,
	},
//
DELETE FROM items WHERE name = 'plastic_table_heroine';
DELETE FROM items WHERE name = 'plastic_table_cocaine';
DELETE FROM items WHERE name = 'plastic_table_ecstasy';
DELETE FROM items WHERE name = 'plastic_table_meth';
DELETE FROM items WHERE name = 'plastic_table_mushrooms';
DELETE FROM items WHERE name = 'plastic_table_weed';
DELETE FROM items WHERE name = 'plastic_table_fentanyl';
DELETE FROM items WHERE name = 'poppy';
DELETE FROM items WHERE name = 'plastic_baggy';
DELETE FROM items WHERE name = 'heroin_shot';
DELETE FROM items WHERE name = 'cocaine';
DELETE FROM items WHERE name = 'ecstasy';
DELETE FROM items WHERE name = 'meth';
DELETE FROM items WHERE name = 'ogkushkush';
DELETE FROM items WHERE name = 'shrooms';
DELETE FROM items WHERE name = 'fentanyl';


INSERT INTO `items` (`name`, `label`, `weight`) VALUES
	('plastic_table_heroine', 'Heroin Table', 1),
	('plastic_table_cocaine', 'Cocaine Table', 1),
	('plastic_table_ecstasy', 'Ecstasy Table', 1),
	('plastic_table_meth', 'Meth Table', 1),
	('plastic_table_mushrooms', 'Mushroom Table', 1),
	('plastic_table_weed', 'Weed Table', 1),
	('plastic_table_fentanyl', 'Fentanyl Table', 1),
	('poppy', 'Poppy', 1),
	('plastic_baggy', 'Plastic Baggy', 1),
	('heroin_shot', 'Heroin Shot', 1),
	('cocaine', 'Cocaine', 1),
	('ecstasy', 'Ecstasy', 1),
	('meth', 'Meth', 1),
	('fentanyl', 'Fentanyl', 1),
	('ogkushkush', 'OG Kush', 1),
	('shrooms', 'Shrooms', 1)
;

Please install the images provided to you with your download in xs_drugtables/install/inventory_item_images


// ```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
}

```

Portable Drug Table - Features

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

Portable Drug Table - Configuration File

๐Ÿงช
โœ…
๐Ÿ“‚