# Configuration

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

## Main Settings You Will Usually Change

| Field                               | What it controls                                          |
| ----------------------------------- | --------------------------------------------------------- |
| `Config.CleanMoney`                 | How clean money is paid                                   |
| `Config.DirtyMoney`                 | How dirty money is stored                                 |
| `Config.PackagedProduct`            | Product item names and warehouse stock limit              |
| `Config.PoliceJobName`              | Which jobs count as police                                |
| `Config.BusinessTypes`              | Business labels, unlock levels, and prices                |
| `Config.Warehouse`                  | Owned and sale blip settings                              |
| `Config.UnauthorizedEntry`          | Required item for break-in access                         |
| `Config.SecuritySystem`             | Security system upgrade price                             |
| `Config.Stock`                      | Water, gas, and electricity unit prices                   |
| `Config.Employee`                   | Recruitment and salary costs                              |
| `Config.RawMaterials`               | Upgrade vehicles, stock upgrades, and raw material amount |
| `Config.MoneyWashing`               | Washing upgrades and interior settings                    |
| `Config.SaleMission`                | Per-package dirty money payout                            |
| `Config.Labs`                       | Lab entrances, exits, and upgrade prices                  |
| `Config.FallbackExitCoord`          | Safe fallback exit location                               |
| `Config.debug` / `Config.debugZone` | Debug 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"
```
