How to add new Kitchen Recipe

This guide explains how to add new cooking recipes to RTX Housing System.

Kitchen recipes are stored in:

configs/kitchen.lua

You will edit:

Config.KitchenRecipes
1

Recipe fields explained

Each recipe is a table with these fields:

  • id Unique recipe identifier (used internally) ✅ In RTX Housing this is also the item name the player receives after cooking.

  • title Name shown in the UI.

  • description Short text shown in the UI.

  • time Cooking time in seconds.

  • energycost How much electricity the recipe consumes.

  • ingredients A list of required items:

    • itemitem name (must exist in your inventory)

    • label → display label in UI

    • amount → required quantity

circle-info

Important

  • id must be unique (no duplicates)

  • id should match a valid item in your inventory system, because the player receives this item after cooking

2

Add the recipe to Config.KitchenRecipes

Open:

configs/kitchen.lua

Find:

Config.KitchenRecipes = {

Add your new recipe anywhere inside the list (recommended: near similar recipes).

chevron-rightExample: New recipe (click to expand)hashtag
{
    id          = "spaghetti",
    title       = "Spaghetti",
    description = "Classic pasta with tomato sauce.",
    time        = 12,
    energycost  = 0.25,
    ingredients = {
        { item = "pasta",  label = "Pasta",  amount = 1 },
        { item = "tomato", label = "Tomato", amount = 1 },
        { item = "salt",   label = "Salt",   amount = 1 },
    }
},
3

Add the output item to your inventory

Because the player receives the item named in id, you must have that item available in your inventory system.

Example:

  • recipe id = "spaghetti"

  • player receives item: spaghetti

So you must add spaghetti into:

  • ESX items (SQL / items table), or

  • QBCore items, or

  • ox_inventory item definitions

4

Balancing tips

  • time: use 4–8 seconds for simple snacks, 10–20 seconds for meals

  • energycost: keep consistent with your utility/bills balance

5

Restart & test

Steps to verify your new recipe:

  • Restart the housing resource:

restart rtx_housing
  • Enter a property with a kitchen interaction

  • Open the kitchen menu and cook your new recipe

  • Confirm:

    • ingredients are removed

    • cooking time is correct

    • the output item (recipe id) is given to the player

chevron-rightCommon mistakes (click to expand)hashtag
  • ❌ Duplicate id (recipe won’t work correctly)

  • ❌ Ingredients use item names that don’t exist in inventory

  • ❌ Output item (id) not added to inventory items

  • ❌ Missing comma between recipes in the config

circle-info

Need help?

If you want, we can add custom recipes for you (including inventory item setup). Contact us on Discord: https://discord.gg/rtxdev

Last updated