Lusty94
Tebex StoreSupport DiscordGitHubCFX Profile
  • 👋 Lusty94 Scripts
  • 💵Store Discounts
  • 📥 Script Installation
  • 🤝Supported Scripts
  • 📜Paid Resouces
    • 🍻Bars
      • 🔧Changelogs
      • 💼 Jobs
      • 📦Stashes
      • 👁️Blips
      • 🧩Props
      • 👆Interaction Locations
      • 📸CCTV
      • 🍳Recipes
      • 📬Supplies
      • 🥦Ingredients
    • 🍁Weed Shops
      • 🔧Changelogs
      • 💼 Jobs
      • 📦Stashes
      • 👁️Blips
      • 🧩Props
      • 👆Interaction Locations
      • 🍃Picking
      • 📸CCTV
      • 🍳Recipes
      • 📬Supplies
      • 🥦Ingredients
      • 🚬Consumables
    • 💲Money Wash
    • 💰Pawn Shop
      • 🔧Changelogs
      • 🛒Pawnshop Locations
    • 📲Drug Sales
      • 🔧Changelogs
      • 📲Selling
      • 💻Default Configuration
    • 🚗Chop Shop
      • 🔧Changelogs
      • 📅SQL
      • 🗣️Commands
      • 📋Reputation
      • 💰Selling
      • 🚗Chop Shops
      • 💻Default Configuration
    • 🚘Vehicle Shop
      • 🔧Changelogs
      • 📅SQL
      • 🗣️Commands
      • 📥Database
      • 🚘Vehicle Shops
      • 💻Default Configuration
    • 🚗Rental
    • 🚙Towing
    • 🍲Restaurants
    • 💊Drugs
    • 🍁Weed
  • 📜Free Resources
    • 🛒Shops
      • 🔧Changelogs
      • 🛒Adding Shops
      • 🪛Configuration
    • 🖥️Boss Menu
      • 🔧Changelogs
      • 💻Adding Job Locations
    • ✅Green Zones
      • 🔧Changelogs
      • 📌Adding Zones
Powered by GitBook
On this page
  1. Paid Resouces
  2. Weed Shops

Consumables

Adding more CONSUMABLES

  • Adding more consumables to the script is easily achieved via the consumables.lua file

  • Consumable items can have required items to use and return items from using the consumable


Config.WeedShopConsumables = {
    ['my_cool_new_consumable'] = { 
        effects = {
            armour = 25, -- amout of armour given
            stress = 20, -- amount of stress reduced
        },
        progress = {
            duration = 5000, -- progressCircle duration
            label = 'Using My Cool New Consumable', -- progressCircle label
        },
        required = {
            active = true, -- activates a return item from this consumable item
            items = { -- this can be multiple items or just a single one
                {name = 'required_item_for_my_new_consumable', label = 'Required Item For My New Consumable',},
            },
        },
        returned = {
            active = false, -- activates a return item from this consumable
            items = { --this can be multiple items or just a single one
                {name = 'returned_item_from_my_new_consumable', label = 'Returned Item From My New Consumable',},
            },
        },
        anim = {
            dict = 'amb@world_human_smoking@male@male_a@enter', -- name of anim dict used
            anim = 'enter', -- name of anim used
            flag = 49,  -- flag number
            props = { -- prop settings
                {
                    model = 'prop_sh_joint_01',  -- name of prop model used
                    bone = 47419, -- bone index used
                    pos = vec3(0.015, -0.009, 0.003), -- vec3 value for prop position
                    rot = vec3(55.0, 0.0, 110.0), -- vec3 value for prop rotation
                },
            },
        },
    },
}

Last updated 2 months ago

📜
🍁
🚬
Page cover image