How to create new item

--
-- 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 },
       },
}

Last updated