RX Scripts Logo
Drug Labs

Operation DLC

Here you will find all the information you need to setup the Operation DLC.

Download Asset(s)

Ensuring Asset(s)

To make sure the asset(s) starts & works properly we need to make sure all asset(s) start in the correct order in your server.cfg. Below you can find an example of how it can look like.

You can also create a folder called [dlc] in your resource folder. If you own multiple DLCs from RX, you will not need to add them all to your server.cfg seperately.
server.cfg
# 1. Start DLC
ensure RxD_Operation

# 2. Start main script
ensure RxDrugLabs

or

server.cfg
# 1. Start DLCs
ensure [dlc]

# 2. Start main scripts
ensure [rx]

Configuration

We have pre-configured the 3 shells from our store aswell as an IPL location included within the default RxDrugLabs, below you can find how to add your own. To make sure your laptop works properly in the drug lab to sell or buy the ingredients for example, you need to add shell/mlo name in the config.

We already have 4 labs pre-configured. Where you see 'change_me,' you need to enter the name of the shell/MLO that you set or added in RxDrugLabs. Below, you will find an example of the names.
['change_me'] = { -- The 'change_me' must be the same as the map name, found in the RxDrugLabs/config/labs folder.
    locationsAmount = { min = 4, max = 6 }, -- amount of drop-off locations, picked from the locations table, make sure to have enough locations for max
    cooldown = 30, -- in minutes
    sellings = { -- all items that are sold at a drop-off
        ['weed_baggy'] = {
            amount = { min = 1, max = 20 }, -- range of amount of items that can be sold at one drop-off
            moneyReturn = { min = 800, max = 1200, type = 'bank' }, -- random price in between, given per 1x item, type is money type from your framework/inventory
        }
    },
    dropOff = {
        blip = {
            sprite = 501,
            color = 1,
            scale = 0.7,
            display = 4,
            label = "Drop Off",
            shortrange = true,
        },
        progress = {
            label = "Dropping Off",
            duration = 3000,
            animation = {
                anim = 'givetake1_a',
                dict = 'mp_common',
            },
        }
    }
},