Groot Development
Store
  • 👋Welcome
  • Coding Information
    • Register Key Mapping
  • ASSETS
    • 🕙g-duty
      • Why?
      • Installation
      • Config.lua
    • 📋g-scoreboard-V1
      • Installation
      • Config.lua
    • 📋g-scoreboardV2
      • Installation
      • Config.lua
      • Exports & Events
    • 🎁g-giftcard
      • Installation
      • Config.lua
      • Export
    • 🏡g-job-vehicle-shop
      • Installation
      • ⚙️Configuration
        • Exports
        • Create Vehicle Management Panel
        • Create Vehicle Shops
    • 💯g-redeem-code
      • 🗒️Features
      • Installation
      • ⛔Note
      • ⚙️Configuration
        • Create New item
    • 📖g-pausemenu
      • 🗒️Features
      • Installation
      • ⚙️Features Guide
        • Info Buttons
        • socials Buttons
        • Rules
        • Organization Avatar
    • 🛠️g-crafting
      • 🗒️Features
      • 📦Patch Details
      • Installation
      • ❔Why
      • ⚔️Exports
      • Configuration
        • How to Create New Station
        • How to Create crafting time for an item.
    • 🛒g-shopsV2
      • 🗒️Features
      • 📦Patch Details
      • Installation
      • ⚔️Exports
      • Configuration
        • How to Create New Shop
        • How to create new item
    • 🔧g-adv-modern-repairkit
      • 🗒️Features
      • 📦Patch Details
      • Installation
      • ⚙️Configuration
  • 📖g-pausemenu-simplified
    • 📦Patch Details
    • Installation
    • ❔Why
    • Configuration
      • Git Dev Patchs
  • FREE RELEASE
    • 🎁g-starterpack-gift
      • Installation
      • Config.lua
    • 👨‍🔬g-employee-chat-list
      • Installation
    • g-notifications
      • Installation
      • Notification
      • Framework Integration
      • Remove Notification By ID
Powered by GitBook
On this page
  1. ASSETS
  2. g-shopsV2
  3. Configuration

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

PreviousHow to Create New ShopNextg-adv-modern-repairkit

Last updated 2 months ago

🛒