> For the complete documentation index, see [llms.txt](https://sbscripts.gitbook.io/sb-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sbscripts.gitbook.io/sb-scripts/sb-jobs/adding-a-business.md).

# Adding a Business

A job file has this structure, trimmed down:

```lua
Config.Jobs['yourjob'] = {

    label   = 'Your Business',
    jobName = 'yourjob',            -- must match the job name in your framework

    blip = {
        sprite = 106, color = 21, scale = 0.8,
        label  = 'Your Business',
        coords = vector3(0.0, 0.0, 0.0),
    },

    stock              = vector3(0.0, 0.0, 0.0),   -- stock room spot
    managementLocation = vector3(0.0, 0.0, 0.0),   -- boss menu spot
    bossMenuGrade      = 2,                        -- minimum grade for the boss menu

    stash = {
        coords = vector3(0.0, 0.0, 0.0),
        label  = 'Supply Storage',
        slots  = 120,
        weight = 500000,
    },

    registers = { ... },
    cookingStations = { ... },
    recipes = { ... },
    delivery = { ... },
}
```

### Steps to add one

1. Copy any file in `config/jobs/` and rename it, for example `config/jobs/mycafe.lua`.
2. Change the key, `Config.Jobs['mycafe']`, and update `label` and `jobName`.
3. Update the coordinates for the blip, stock, boss menu, stash, registers, cooking stations and delivery.
4. Edit the recipes, register items and supply items to match what you sell.
5. Create the items in your inventory and add their images.
6. Create the job in your framework.
7. Restart `sbjobs`.
