> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_banners/configs/business.md).

# Business

All business related stuff to rcore\_banners can be found there.

Path: `rcore_banners/configs/business.lua`

{% hint style="warning" %}
The Business system is only supported with ESX, QBCore, and QBox.
{% endhint %}

## Setting up a business

{% stepper %}
{% step %}

### Define your business

Add your business to `Config.Business.List` - see the field reference below for all available options.
{% endstep %}

{% step %}

### Refresh the resource

Run in your server console:

```
refresh
ensure rcore_banners
```

{% endstep %}

{% step %}

### Register the business

Run in your server console:

```
bannersetup business
```

This refreshes the business data and registers your newly defined business.
{% endstep %}
{% endstepper %}

### Field reference

* **Unique identifier** - the key used internally to reference your business (e.g. `printers`).
* **enabled** - `true` if the business should be active and usable.
* **name** - human-readable name for your business.
* **pos** - location using `vec3(X, Y, Z)`.
* **blipEnabled** - `true` to show a map blip for your business.
* **blip** - `name`, `color`, `scale`, `sprite` for the blip.
* **interact** - list of interaction points, each with a `type` (e.g. `Interact.PRODUCTION_MINIGAME`, `Interact.BOSS_MENU`), `pos`, and optional `heading`.
* **grades** - list of employee grades, each with a `name`, `salary`, and `isBoss` (set `true` for the boss grade).

<details>

<summary>Config.Business</summary>

* **Type:** `table`
* **Description:** Business toggle, service fee settings, printer production settings, boss menu options, business permissions, and the list of businesses.

```lua
Config.Business = {
    Enabled = true, -- What is business state for banners enabled / disabled?

    ServiceFee = true, -- Is service fee enabled?
    ServiceFeeTime = 14, -- Each 14 days service fee is taken from business bank account
    ServiceFeePercentage = 10, -- 10% of business bank account is taken for service fee
    SellBannerPercentage = 50, -- 50% of billboard price is given to player when selling banner

    Printers = {
        ProductionItem = 'paper', -- Which item is needed for production?
        ProductionItemNeed = true, -- Is requirement of item needed for production needed?
        Cooldown = 2 * 60 * 1000 -- 2 mins cooldown
    },

    SocietyOptionsESX = {
        checkBal = true,  -- Allow to check society money from boss menu.
        withdraw = true,  -- Allow to withdraw from society (boss menu)
        deposit = true,   -- Allow to deposit to society (boss menu)
        employees = true, -- Allow to hire employees in business (boss menu)
        salary = true,    -- Allow to adjust employees salary (boss menu)
        grades = true,    -- Allow to adjust grades in boss menu.
        wash = false,     -- Allow to wash business money.
    },

    -- List of job grades, which holds specific permission access.
    Permissions = {
        ['boss'] = {
            ['workstation'] = {
                [WORKSTATION_PERMS.ACCESS_WORKSTATION_CUSTOM] = true,
                [WORKSTATION_PERMS.ACCESS_WORKSTATION_MANAGEMENT] = true,
                [WORKSTATION_PERMS.CAN_SET_BANNER] = true,
                [WORKSTATION_PERMS.CAN_UPDATE_TARGET_BATCH] = true,
                [WORKSTATION_PERMS.CAN_STOP_TARGET_PRODUCTION] = true,
            },
        },
        ['manager'] = {
            ['workstation'] = {
                [WORKSTATION_PERMS.ACCESS_WORKSTATION_CUSTOM] = true,
                [WORKSTATION_PERMS.ACCESS_WORKSTATION_MANAGEMENT] = true,
                [WORKSTATION_PERMS.CAN_SET_BANNER] = true,
                [WORKSTATION_PERMS.CAN_UPDATE_TARGET_BATCH] = true,
                [WORKSTATION_PERMS.CAN_STOP_TARGET_PRODUCTION] = true,
            },
        }
    },

    -- List of business
    List = {
        ['printers'] = {
            enabled = true, -- Is business enabled and can be used?
            name = "printers", -- Name of business
            pos = vec3(-1064.736, -243.742, 44.021), -- Location of business
            blipEnabled = true, -- Should show blip on the map?
            blip = {
                name = "Printers",
                color = 5, -- Yellow
                scale = 1.0, -- Blip size
                sprite = 783, -- See https://docs.fivem.net/docs/game-references/blips/ if you want to change it to something else.
            },
            interact = {
                {
                    type = Interact.PRODUCTION_MINIGAME,
                    pos = vec3(-1053.114, -231.452, 44.021),
                    heading = 296.965
                },
                {
                    type = Interact.PRODUCTION_MINIGAME,
                    pos = vec3(-1053.698, -230.260, 44.021),
                    heading = 296.965
                },
                {
                    type = Interact.BOSS_MENU,
                    pos = vec3(-1050.323, -242.605, 44.020),
                    heading = 126.0
                }
            },
        }
    }
}
```

</details>
