Skip to content

Configuration

Main config structure and the settings most servers change

The main configuration file is 0r-drugbusiness/config.lua.

Main Settings You Will Usually Change#

FieldWhat it controls
Config.CleanMoneyHow clean money is paid
Config.DirtyMoneyHow dirty money is stored
Config.PackagedProductProduct item names and warehouse stock limit
Config.PoliceJobNameWhich jobs count as police
Config.BusinessTypesBusiness labels, unlock levels, and prices
Config.WarehouseOwned and sale blip settings
Config.UnauthorizedEntryRequired item for break-in access
Config.SecuritySystemSecurity system upgrade price
Config.StockWater, gas, and electricity unit prices
Config.EmployeeRecruitment and salary costs
Config.RawMaterialsUpgrade vehicles, stock upgrades, and raw material amount
Config.MoneyWashingWashing upgrades and interior settings
Config.SaleMissionPer-package dirty money payout
Config.LabsLab entrances, exits, and upgrade prices
Config.FallbackExitCoordSafe fallback exit location
Config.debug / Config.debugZoneDebug options

Product Items#

The packaged item names are set here:

lua
Config.PackagedProduct = {
    maxStock = 200,
    ['weed'] = { itemName = 'packaged_weed' },
    ['cocaine'] = { itemName = 'packaged_cocaine' },
    ['meth'] = { itemName = 'packaged_meth' },
}

If you use different item names on your server, change them here and in your inventory.

Business Types#

This section controls which illegal business types exist and when players can unlock them:

lua
Config.BusinessTypes = {
    [1] = { key = 'weed', label = 'Weed', requiredLevel = 1, price = 50000 },
    [2] = { key = 'cocaine', label = 'Cocaine', requiredLevel = 10, price = 100000 },
    [3] = { key = 'meth', label = 'Meth', requiredLevel = 15, price = 200000 },
}

Keep the key values as they are. Only change label, level, and price.

Police, Break-In, and Security#

The most common server-side edits are:

  • Add or remove police jobs in Config.PoliceJobName
  • Change the break-in item in Config.UnauthorizedEntry.requiredItemName
  • Adjust security upgrade cost in Config.SecuritySystem.price

Stock, Employees, and Raw Materials#

These sections control the business economy:

  • Config.Stock changes water, gas, and electricity cost
  • Config.Employee changes recruit and salary fees
  • Config.RawMaterials changes delivery vehicle upgrades, stock upgrades, and package material amounts

If you want to rebalance progression, start here first.

Sale Mission and Money Washing#

Use these sections when you want to change earnings:

  • Config.SaleMission.packageFees
  • Config.MoneyWashing.upgrades

The current sale payout config is packageFees, not feePerPackage.

Lab Locations and Interiors#

The drug lab entries are configured inside Config.Labs.

Each business type has:

  • Entrance coordinates
  • Exit area
  • Panel location
  • Upgrade prices

You can also review these data files if you want to change world positions:

  • data/raw_material_locations.lua
  • data/sale_mission_locations.lua
  • data/theme_interiors.lua
  • data/warehouses.lua

Localization#

This resource uses locale files in the locales/ folder. The default locale is handled through ox_lib.

Example:

cfg
set ox:locale "en"