> For the complete documentation index, see [llms.txt](https://gocomedyfunstoredocs.gitbook.io/gocomedyfun-store/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gocomedyfunstoredocs.gitbook.io/gocomedyfun-store/scripts-free/package-fun/english/configuration/items.md).

# Items

## **Creating Items for ox\_inventory**

Items used in the crafting system must be added to:\
**ox\_inventory/data/items.lua**

Each item must follow the standard ox\_inventory structure:

* **label**: displayed name
* **weight**: weight in grams
* **stack**: whether the item can stack
* **close**: closes the inventory after using the item
* **description**: description text
* **client.image**: image located in *ox\_inventory/web/images/* (must be a `.png` file)

***

### **1. Add Required Items**

These items are needed to craft the packages.

```lua
["farine"] = {
    label = "Flour",
    weight = 50,
    stack = true,
    close = true,
    description = "A bag of flour used for certain crafting recipes.",
    client = {
        image = "farine.png",
    }
},

["sachet_plastique"] = {
    label = "Plastic Bag",
    weight = 2,
    stack = true,
    close = true,
    description = "A small plastic bag used for packaging various products.",
    client = {
        image = "sachet_plastique.png",
    }
},

["balance_precision"] = {
    label = "Precision Scale",
    weight = 500,
    stack = false,
    close = true,
    description = "A scale that allows you to measure exact quantities.",
    client = {
        image = "balance_precision.png",
    }
},
```

***

### **2. Add Result Items**

These are the final crafted items produced by the system\
They can also be **unpacked**, which is the reverse process of crafting

```lua
["paquet_farinee"] = {
    label = "Flour Package",
    weight = 250,
    stack = true,
    close = true,
    description = "A neatly wrapped package containing flour.",
    client = {
        image = "paquet_farinee.png",
    }
},
```

***

### **3. Add Items for Additional Recipes (if needed)**

Example with the **herb** recipe:

```lua
["herbe"] = {
    label = "Herb",
    weight = 10,
    stack = true,
    close = true,
    description = "Freshly harvested raw herb.",
    client = {
        image = "herbe.png",
    }
},

["grinder"] = {
    label = "Grinder",
    weight = 150,
    stack = false,
    close = true,
    description = "A grinder used to prepare certain packages.",
    client = {
        image = "grinder.png",
    }
},

["paquet_herbe"] = {
    label = "Herb Package",
    weight = 200,
    stack = true,
    close = true,
    description = "A perfectly wrapped herb package.",
    client = {
        image = "paquet_herbe.png",
    }
},
```

***

### **4. Verify Item Images**

Each item must have a corresponding image inside:

```
ox_inventory/web/images/
```

Required images for the examples above:

* farine.png
* sachet\_plastique.png
* balance\_precision.png
* paquet\_farinee.png
* herbe.png
* grinder.png
* paquet\_herbe.png

**Rules:**

* filenames must be **lowercase**
* format must be **.png**
* must match **exactly** the name used in `client.image`

***

### **5. Restart ox\_inventory**

After adding or modifying items:

```
restart ox_inventory
```

All items will now be available in-game and compatible with:

* the crafting system
* the unpacking system
