> For the complete documentation index, see [llms.txt](https://arivia.rlib.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://arivia.rlib.io/faq/add-food-categories.md).

# Add Food Categories

Since DarkRP does not give category customization for Food; Arivia has provided a solution.

Open lua\modules\arivia\cfg\sh\_6\_food.lua and locate the table cfg.food.categories; you may add your own categories to this list for food.

{% tabs %}
{% tab title="arivia\cfg\sh\_6\_food.lua" %}

```lua
cfg.food.categories =
{
    [ 'yum' ] =
    {
        name                = 'Yum',
        startExpanded       = true,
        sortOrder           = 1,
        tip                 = 'The good stuff',
    },
}
```

{% endtab %}
{% endtabs %}

Next, locate your entities file and create a food item:

{% tabs %}
{% tab title="entities.lua" %}

```lua
DarkRP.createFood( 'Bunch of bananas',
{
    model       = "models/props/cs_italy/bananna_bunch.mdl",
    energy      = 20,
    price       = 20,
    category    = 'Yum',
} )
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
DarkRP may require that you restart your server after adding entities to the provided darkrp mods files.
{% endhint %}

After adding your category code and food entity; open your F4 menu, click **Food**, and you should see the new category with your item.
