> For the complete documentation index, see [llms.txt](https://grootdev.gitbook.io/groot-development/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://grootdev.gitbook.io/groot-development/assets/g-shopsv2/configuration/how-to-create-new-item.md).

# How to create new item

{% code overflow="wrap" %}

```lua
--
-- Config.Items - Defines the items available in shops.
--
-- Each item must have a unique ID and contains multiple properties.
--
-- Structure:
--   [id] (number): Unique identifier for the item.
--     itemName (string): Internal name of the item.
--     itemLabel (string): Display name of the item.
--     Price (number): Cost of the item in the shop.
--     VisibleInShops (array of numbers): List of shop IDs where the item is available.
--     Licenses (array of strings): List of required licenses to purchase the item.
--     InfoMessage (string): Description of the item.
--     Category (string): Classification of the item (e.g., "food").
--     canSell (boolean): Determines if the item can be sold back to the shop.
--     sellPrice (table): Defines the selling price range.
--       min (number): Minimum sell price.
--       max (number): Maximum sell price.
--
-- Example:
Config.Items = {
       [1] = {
           itemName = "water",
           itemLabel = "Water",
           Price = 5,
           VisibleInShops = {1, 2},
           Licenses = {"weapon", "electrician"},
           InfoMessage = "A refreshing bottle of water to quench your thirst.",
           Category = "food",
           canSell = true,
           sellPrice = { min = 2, max = 3 },
       },
}

```

{% endcode %}
