> For the complete documentation index, see [llms.txt](https://quannsstudios.gitbook.io/quannsstudio-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://quannsstudios.gitbook.io/quannsstudio-docs/restaurant-creator-v1/configuration.md).

# Configuration

here's the Configuration page:

***

**Configuration**

All configuration lives in `config.lua`.

**Full Config**

lua

```lua
Config.OxInventory   = 'ox_inventory'
Config.ImageBasePath = 'nui://ox_inventory/web/images/'
Config.TextUI        = 'Qs_TextUI'
Config.SocietyCutPct = 85
Config.InteractDist  = 2.5

Config.Categories = {
    { id = 'mains',    label = 'Mains'    },
    { id = 'sides',    label = 'Sides'    },
    { id = 'drinks',   label = 'Drinks'   },
    { id = 'desserts', label = 'Desserts' },
    { id = 'specials', label = 'Specials' },
}
```

**Options**

| Option          | Description                                            |
| --------------- | ------------------------------------------------------ |
| `OxInventory`   | Name of your ox\_inventory resource                    |
| `ImageBasePath` | Base path for item images pulled from ox\_inventory    |
| `TextUI`        | Name of the TextUI resource — leave as `Qs_TextUI`     |
| `SocietyCutPct` | Percentage of each sale that goes to the society fund  |
| `InteractDist`  | Distance in metres a player must be within to interact |

**Categories**

You can add, remove, or rename categories to match your server's menu structure. Each category needs a unique `id` and a display `label`.

**Default Items**

You can bulk seed menu items per restaurant on resource start using `Config.DefaultItems`. Items are only inserted if the restaurant exists and doesn't already have items.

lua

```lua
Config.DefaultItems = {
    ['burgershot'] = {
        {
            item_name     = 'burger',
            display_name  = 'Classic Burger',
            description   = 'A juicy beef patty with all the fixings.',
            category      = 'mains',
            price         = 8,
            stock         = -1,   -- -1 = unlimited stock
            cooking_steps = {
                { label='Grill Patty',  dict='amb@prop_human_bbq@male@idle_a', anim='idle_a', duration=5000 },
                { label='Add Toppings', dict='mp_suicide',                     anim='pill',   duration=3000 },
                { label='Wrap & Plate', dict='mp_suicide',                     anim='pill',   duration=2000 },
            }
        },
    },
}
```

**Cooking Animations**

| Animation     | Dict                                               | Clip             |
| ------------- | -------------------------------------------------- | ---------------- |
| Chop / Prep   | amb\@prop\_human\_bbq\@male\@idle\_a               | idle\_a          |
| Stir / Mix    | anim\@heists\@ornate\_bank\@hack                   | hack\_loop       |
| Plating       | mp\_suicide                                        | pill             |
| Washing Hands | anim\@mp\_snowball\_fight                          | pickup\_snowball |
| Carry Tray    | amb\@world\_human\_stand\_impatient\@male\@idle\_a | idle\_a          |
| Grilling      | amb\@prop\_human\_bbq\@male\@idle\_a               | idle\_a          |
| Packaging     | mp\_suicide                                        | pill             |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://quannsstudios.gitbook.io/quannsstudio-docs/restaurant-creator-v1/configuration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
