m-Scripts
  • m-Scripts Documentation
  • QBCore
    • Jobs
      • 🚗[QB] TunerJob
        • 🛠️Installation
        • ❓Common Questions
        • 🗒️Config
      • 🍞[QB] BeanMachine
        • 🛠️Installation
        • 🗒️Config
      • 🍔[QB] Burgershot
        • 🛠️Installation
        • 🗒️Config
      • 🍈[QB] CoolBeans
        • 🛠️Installation
        • 🗒️Config
      • 🚚[QB] Deliveries
        • 🛠️Installation
        • 📃Config
          • 📃config_functions
      • 🍎[QB] Farming
        • 🛠️Installation
        • 🗒️Config
      • 🐟[QB] Fishing
        • 🛠️Installation
        • 🗒️Config
          • 📄config_diving
          • 📄config_fishingnet
          • 📄config_fishingrod
          • 📄config_functions
          • 📄config_language
          • 📄config_seashells
          • 📄config_tournament
          • 📄config_upgrades
      • 🚛[QB] Garbage
        • 🛠️Installation
        • 🗒️Config
      • 🗝️[QB] GoldRush
        • 🛠️Installation
        • 🗒️Config
      • ⛰️[QB] Hunting
        • 🛠️Installation
        • 🗒️Config
      • 🪵[QB] Lumberjack
        • 🛠️Installation
        • 🗒️Config
      • ⛏️[QB] Mining
        • 🛠️Installation
        • 🗒️Config
      • 🛢️[QB] Oil Factory
        • 🛠️Installation
        • ❓Common Questions
        • 🗒️Config
      • ☕[QB] Pond Coffee
        • 🛠️Installation
        • ❓Common Questions
        • 🗒️Config
      • 🚚[QB] Trucker
        • 🛠️Installation
        • 🗒️Config
          • 📄Functions
          • 📄Language
      • 🥃[QB] Vanilla
        • 🛠️Installation
        • 🗒️Config
      • 🛻[QB] Mechanic Run
        • 🛠️Installation
        • 🗒️Config
      • 🥃[QB] Bahamas
        • 🛠️Installation
        • 📄Config
      • 🔫[QB] Ammunation
        • 🛠️Installation
        • 📄Config
      • 🐟[QB] Pearls
        • 🛠️Installation
        • 📄Config
      • 🔓[QB] Impound
        • 🛠️Installation
        • 📄Config
        • ✅Garages
      • 🚘[QB] Vehicleshop
        • 🛠️Installation
        • 📄Config
          • Functions
          • Job
          • Language
        • ❓Common Questions
    • General
      • 🏕️[QB] Camping
        • 🛠️Installation
        • 🗒️Config
          • Consumables
          • Language
      • 🎄[QB] Christmas
        • 🛠️Installation
        • 🗒️Config
      • 🎃[QB] Halloween
        • 🛠️Installation
        • 🗒️Config
      • 📔[QB] Insurance
        • 🛠️Installation
        • 🖥️Compatibilities
        • 🗒️Config
        • 🔁Server-Exports
      • 🏘️[QB] Vespucci
        • 🛠️Installation
        • 🗒️Config
          • Brewery
          • Digital Den
          • Masquerade
          • Pro Bikes
      • 🏖️[QB] Beach Activities
        • 🛠️Installation
        • 🗒️Config
      • 🚘[QB] Car Rental
        • 🛠️Installation
        • 📄Config
        • 🖥️Compatibilities
      • ✈️[QB] Sky Racing
        • 🛠️Installation
        • 📄Config
      • 🚘[QB] Car Wash
        • 🛠️Installation
        • 📄Config
      • 🪨[QB] Grinder
        • 🛠️Installation
        • 📄Config
      • 📹[QB] SpyCams & CCTV's
        • 🛠️Installation
        • 📄Config
      • 🏠[QB] Motel
        • 🛠️Installation
        • 📄Config
        • 🖥️Compatibilities
      • 🏚️[QB] Job Center
        • 📄Config
      • 🛠️[QB] Crafting
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
    • Illegal
      • 🔫[QB] Gangs
        • 🛠️Installation
        • 🗒️Config
      • 🔔[QB] Drug Selling
        • 🗒️Config
      • 🌱[QB] Drugs
        • 🛠️Installation
        • 🗒️Config
      • 🍯[QB] Craft Potion
        • 🛠️Installation
        • 🗒️Config
      • 🅱️[QB] Blackmarket
        • 🛠️Installation
        • 🗒️Config
          • config_functions
          • config_language
      • 🚗[QB] Car Thief
        • 🗒️Config
      • 🏠[QB] House Robbery
        • 🛠️Installation
        • 🗒️Config
      • 💎[QB] Jewelry
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • ®️[QB] Mini Robberys
        • 🛠️Installation
        • 🗒️Config
      • 💰[QB] MoneyWash
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 🔫[QB] Rob NPC
        • 🛠️Installation
        • 🗒️Config
      • 🏃‍♂️[QB] Runs
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • ⛽[QB] Steal Fuel
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 🏬[QB] Store Robbery
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 🪛[QB] Scrapyard
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 👾[QB] Territories
        • 🛠️Installation
        • 📄Config
          • Functions
      • 🏨[QB] GoPostal
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
          • S_utils
  • ESX
    • Jobs
      • 🚗[ESX] Tunerjob
        • ❗Dependencies
        • 🛠️Installation
          • ℹ️OX-Inventory
          • ℹ️QS-Inventory
        • 🗒️Config
          • BlacklistVehicles
          • Craft
          • Functions
          • Language
          • Targets
          • Wraps
          • Events
        • ❓Common Questions
      • 🚚[ESX] Trucker
        • 🛠️Installation
        • 🗒️Config
          • 📄Functions
          • 📄Language
      • 🪵[ESX] Lumberjack
        • 🛠️Installation
        • 🗒️Config
      • 🛻[ESX] Mechanic Run
        • 🛠️Installation
        • 🗒️Config
      • ⛏️[ESX] Mining
        • 🛠️Installation
        • 🗒️Config
      • 🎣[ESX] Fishing
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
          • Diving
          • Fishingnet
          • Fishingrod
          • Seashells
          • Tournament
          • Upgrades
    • General
      • 🚘[ESX] Car Rental
        • 🛠️Installation
        • 🗒️Config
      • 📃[ESX] Insurance
        • 🛠️Installation
        • 🖥️Compatibilities
        • 📄Config
        • 🔁 Server-Exports
      • 🚘[ESX] Car Wash
        • 🛠️Installation
        • 📄Config
      • 📹[ESX] SpyCams & CCTV's
        • 🛠️Installation
        • 📄Config
        • 🏠[ESX] Motel
          • 🛠️Installation
          • 📄Config
          • 🖥️Compatibilities
      • 🛠️[ESX] Crafting
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
      • 🎄[ESX] Christmas
        • 🛠️Installation
        • 📄Configs
    • Illegal
      • 🔫[ESX] Gangs
        • 🛠️Installation
        • 📄Config
        • ❓Common Questions
      • 🅱️[ESX] Blackmarket
        • 🛠️Installation
        • 🗒️Config
          • config_functions
          • config_language
      • 🏨[ESX] GoPostal
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
          • S_utils
  • Both Framework
    • Scripts
      • 🚗Car Rebuild
        • 🛠️Installation
        • 🗒️Config
      • 🗺️City Guide
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
      • 🛒Shops
        • 📄Config
        • 🛠️Installation
      • 🔁Reputation
        • 📄Config
        • 🛠️Installation
        • ⁉️Exports & Commands
          • Server Exports
          • Commands
      • 💤AFK System
        • 📄Configs
        • 🛠️Installation
      • 🚗Garages
        • 🛠️Installation
        • 📑User Guide
          • Create Garages
          • Create Private Garage
          • Impound & Auctions
          • Add vehicle to gang/job
          • Commands
      • ✈️Airplane Job
        • 🛠️Installation
        • 📃Configs
        • ℹ️Exports
      • 📋Scoreboard
        • 📃Config
      • 📦StorageUnits
        • 🛠️Installation
        • 📃Config
Powered by GitBook
On this page
  1. QBCore
  2. Illegal
  3. [QB] Drugs

Config

Config = {}

Config.Core = "qb-core" -- Your qb-core folder name
Config.Notify = "qb" -- "qb", "okok" or "ox"
Config.Menus = "qb" -- "qb" or "ox"
Config.Inventory = "qb" -- "qb" or "ox"
Config.Dispatch = 'ps' -- "ps", "cd" or "qs"

Config.Props = {
    Weed = "prop_weed_01", -- Props: https://gtahash.ru/
    Coke = "prop_plant_fern_02b", -- Props: https://gtahash.ru/
    Meth = "prop_plant_01a", -- Props: https://gtahash.ru/
}

Config.Drugs = {
    ["Weed"] = {
        gang = "", -- Gang needed?
        SpawnLocations = { -- List of locations to spawn props
            [1] = {coords = vector3(3687.33, 4597.62, 21.30), prop = Config.Props.Weed},
            [2] = {coords = vector3(3694.26, 4592.44, 22.21), prop = Config.Props.Weed},
            [3] = {coords = vector3(3701.77, 4595.96, 20.63), prop = Config.Props.Weed},
            [4] = {coords = vector3(3696.55, 4609.48, 18.74), prop = Config.Props.Weed},
            [5] = {coords = vector3(3686.51, 4615.27, 18.89), prop = Config.Props.Weed},
        },
        Harvest = {
            alertCops = { enable = false, chance = 30 }, -- Settings to calling the cops
            minigame = { enable = true, NumberOfCircles = 2, MS = 10 }, -- https://github.com/Project-Sloth/ps-ui
            item = nil, -- Need item to pick up? If yes, make: item = "phone"
            time = 5000, -- Time of progressbar
            animDict = "amb@prop_human_bum_bin@idle_a", -- Animation of progressbar
            anim = "idle_a", -- Animation of progressbar
            drops = {
                -- @param item = Item the player will receive
                -- @param amount = Amount of item the player will receive
                -- @param chance = 0-100 chance of dropping the item
                [1] = { item = "weed-bad-ql", amount = math.random(5,9), chance = 100}, 
                [2] = { item = "weed-med-ql", amount = math.random(3,6), chance = 50},
                [3] = { item = "weed-max-ql", amount = math.random(1,3), chance = 15},
            }
        },
        Cut = {
            alertCops = { enable = false, chance = 30 }, -- Settings to calling the cops
            minigame = { enable = true, NumberOfCircles = 2, MS = 10 }, -- https://github.com/Project-Sloth/ps-ui
            Locations = { -- List of loaction to cut weed
                [1] = { coords = vector3(-1160.48, -1386.27, -1.8) },
            },
            time = 5000, -- Time of progressbar
            animDict = "mp_arresting", -- Animation of progressbar
            anim = "a_uncuff", -- Animation of progressbar
            drops = {
                -- @param itemRemove = Item that will be removed from the player
                -- @param removeAmount = Amount of item that will be removed from the player
                -- @param itemReward = Item the player will receive
                -- @param rewardAmount = Amount of item the player will receive
                ["badql"] = { itemRemove = "weed-bad-ql", removeAmount = 5, itemReward = "leaves-weed-bad-ql", rewardAmount = math.random(5,9) },
                ["medql"] = { itemRemove = "weed-med-ql", removeAmount = 5, itemReward = "leaves-weed-med-ql", rewardAmount = math.random(3,6) },
                ["maxql"] = { itemRemove = "weed-max-ql", removeAmount = 5, itemReward = "leaves-weed-max-ql", rewardAmount = math.random(1,3) },
            }
        },
        Packaging = {
            alertCops = { enable = false, chance = 30 }, -- Settings to calling the cops
            minigame = { enable = true, NumberOfCircles = 2, MS = 10 }, -- https://github.com/Project-Sloth/ps-ui
            Locations = { -- List of loaction to process weed
                [1] = { coords = vector3(-1151.66, -1378.44, -1.8) },
            },
            time = 5000, -- Time of progressbar
            animDict = "mp_arresting", -- Animation of progressbar
            anim = "a_uncuff", -- Animation of progressbar
            drops = {
                -- @param itemRemove = Item that will be removed from the player
                -- @param removeAmount = Amount of item that will be removed from the player
                -- @param itemReward = Item the player will receive
                -- @param rewardAmount = Amount of item the player will receive
                ["badql"] = { itemRemove = "leaves-weed-bad-ql", removeAmount = 5, itemReward = "package-weed-bad-ql", rewardAmount = math.random(5,9) },
                ["medql"] = { itemRemove = "leaves-weed-med-ql", removeAmount = 5, itemReward = "package-weed-med-ql", rewardAmount = math.random(3,6) },
                ["maxql"] = { itemRemove = "leaves-weed-max-ql", removeAmount = 5, itemReward = "package-weed-max-ql", rewardAmount = math.random(1,3) },
            }
        }
    },
    ["Coke"] = {
        gang = "", -- Gang needed?
        SpawnLocations = { -- List of locations to spawn props
            [1] = {coords = vector3(66.15, 7152.57, 18.66), prop = Config.Props.Coke}, -- Props: https://gtahash.ru/
            [2] = {coords = vector3(72.00, 7150.50, 21.48), prop = Config.Props.Coke}, -- Props: https://gtahash.ru/
            [3] = {coords = vector3(78.95, 7155.95, 20.45), prop = Config.Props.Coke}, -- Props: https://gtahash.ru/
            [4] = {coords = vector3(79.85, 7148.93, 22.80), prop = Config.Props.Coke}, -- Props: https://gtahash.ru/
            [5] = {coords = vector3(72.90, 7143.35, 22.39), prop = Config.Props.Coke}, -- Props: https://gtahash.ru/
        },
        Harvest = {
            alertCops = { enable = false, chance = 30 }, -- Settings to calling the cops
            minigame = { enable = true, NumberOfCircles = 2, MS = 10 }, -- https://github.com/Project-Sloth/ps-ui
            item = nil, -- Need item to pick up? If yes, make: item = "phone"
            time = 5000, -- Time of progressbar
            animDict = "amb@prop_human_bum_bin@idle_a", -- Animation of progressbar
            anim = "idle_a", -- Animation of progressbar
            drops = {
                -- @param item = Item the player will receive
                -- @param amount = Amount of item the player will receive
                -- @param chance = 0-100 chance of dropping the item
                [1] = { item = "coke-bad-ql", amount = math.random(5,9), chance = 100}, 
                [2] = { item = "coke-med-ql", amount = math.random(3,6), chance = 50},
                [3] = { item = "coke-max-ql", amount = math.random(1,3), chance = 15},
            }
        },
        Cut = {
            alertCops = { enable = false, chance = 30 }, -- Settings to calling the cops
            minigame = { enable = true, NumberOfCircles = 2, MS = 10 }, -- https://github.com/Project-Sloth/ps-ui
            Locations = { -- List of loaction to cut weed
                [1] = { coords = vector3(-1063.99, 4588.6, 113.85) },
            },
            time = 5000, -- Time of progressbar
            animDict = "mp_arresting", -- Animation of progressbar
            anim = "a_uncuff", -- Animation of progressbar
            drops = {
                -- @param itemRemove = Item that will be removed from the player
                -- @param removeAmount = Amount of item that will be removed from the player
                -- @param itemReward = Item the player will receive
                -- @param rewardAmount = Amount of item the player will receive
                ["badql"] = { itemRemove = "coke-bad-ql", removeAmount = 5, itemReward = "leaves-coke-bad-ql", rewardAmount = math.random(5,9) },
                ["medql"] = { itemRemove = "coke-med-ql", removeAmount = 5, itemReward = "leaves-coke-med-ql", rewardAmount = math.random(3,6) },
                ["maxql"] = { itemRemove = "coke-max-ql", removeAmount = 5, itemReward = "leaves-coke-max-ql", rewardAmount = math.random(1,3) },
            }
        },
        Packaging = {
            alertCops = { enable = false, chance = 30 }, -- Settings to calling the cops
            minigame = { enable = true, NumberOfCircles = 2, MS = 10 }, -- https://github.com/Project-Sloth/ps-ui
            Locations = { -- List of loaction to process coke
                [1] = { coords = vector3(-1061.54, 4585.96, 113.73) },
            },
            time = 5000, -- Time of progressbar
            animDict = "mp_arresting", -- Animation of progressbar
            anim = "a_uncuff", -- Animation of progressbar
            drops = {
                -- @param itemRemove = Item that will be removed from the player
                -- @param removeAmount = Amount of item that will be removed from the player
                -- @param itemReward = Item the player will receive
                -- @param rewardAmount = Amount of item the player will receive
                ["badql"] = { itemRemove = "leaves-coke-bad-ql", removeAmount = 5, itemReward = "package-coke-bad-ql", rewardAmount = math.random(5,9) },
                ["medql"] = { itemRemove = "leaves-coke-med-ql", removeAmount = 5, itemReward = "package-coke-med-ql", rewardAmount = math.random(3,6) },
                ["maxql"] = { itemRemove = "leaves-coke-max-ql", removeAmount = 5, itemReward = "package-coke-max-ql", rewardAmount = math.random(1,3) },
            }
        }
    },
    ["Meth"] = {
        gang = "", -- Gang needed?
        SpawnLocations = { -- List of locations to spawn props
            [1] = {coords = vector3(-2344.53, 2389.43, 4.37), prop = Config.Props.Meth}, -- Props: https://gtahash.ru/
            [2] = {coords = vector3(-2338.23, 2388.30, 4.13), prop = Config.Props.Meth}, -- Props: https://gtahash.ru/
            [3] = {coords = vector3(-2336.03, 2381.91, 4.12), prop = Config.Props.Meth}, -- Props: https://gtahash.ru/
            [4] = {coords = vector3(-2341.28, 2376.10, 4.40), prop = Config.Props.Meth}, -- Props: https://gtahash.ru/
            [5] = {coords = vector3(-2345.53, 2379.75, 4.24), prop = Config.Props.Meth}, -- Props: https://gtahash.ru/
        },
        Harvest = {
            alertCops = { enable = false, chance = 30 }, -- Settings to calling the cops
            minigame = { enable = true, NumberOfCircles = 2, MS = 10 }, -- https://github.com/Project-Sloth/ps-ui
            item = nil, -- Need item to pick up? If yes, make: item = "phone"
            time = 5000, -- Time of progressbar
            animDict = "amb@prop_human_bum_bin@idle_a", -- Animation of progressbar
            anim = "idle_a", -- Animation of progressbar
            drops = {
                -- @param item = Item the player will receive
                -- @param amount = Amount of item the player will receive
                -- @param chance = 0-100 chance of dropping the item
                [1] = { item = "meth-bad-ql", amount = math.random(5,9), chance = 100}, 
                [2] = { item = "meth-med-ql", amount = math.random(3,6), chance = 50},
                [3] = { item = "meth-max-ql", amount = math.random(1,3), chance = 15},
            }
        },
        Cut = {
            alertCops = { enable = false, chance = 30 }, -- Settings to calling the cops
            minigame = { enable = true, NumberOfCircles = 2, MS = 10 }, -- https://github.com/Project-Sloth/ps-ui
            Locations = { -- List of loaction to cut weed
                [1] = { coords = vector3(586.94, -430.26, 17.94) },
            },
            time = 5000, -- Time of progressbar
            animDict = "mp_arresting", -- Animation of progressbar
            anim = "a_uncuff", -- Animation of progressbar
            drops = {
                -- @param itemRemove = Item that will be removed from the player
                -- @param removeAmount = Amount of item that will be removed from the player
                -- @param itemReward = Item the player will receive
                -- @param rewardAmount = Amount of item the player will receive
                ["badql"] = { itemRemove = "meth-bad-ql", removeAmount = 5, itemReward = "leaves-meth-bad-ql", rewardAmount = math.random(5,9) },
                ["medql"] = { itemRemove = "meth-med-ql", removeAmount = 5, itemReward = "leaves-meth-med-ql", rewardAmount = math.random(3,6) },
                ["maxql"] = { itemRemove = "meth-max-ql", removeAmount = 5, itemReward = "leaves-meth-max-ql", rewardAmount = math.random(1,3) },
            }
        },
        Packaging = {
            alertCops = { enable = false, chance = 30 }, -- Settings to calling the cops
            minigame = { enable = true, NumberOfCircles = 2, MS = 10 }, -- https://github.com/Project-Sloth/ps-ui
            Locations = { -- List of loaction to process meth
                [1] = { coords = vector3(595.43, -441.71, 17.94) },
            },
            time = 5000, -- Time of progressbar
            animDict = "mp_arresting", -- Animation of progressbar
            anim = "a_uncuff", -- Animation of progressbar
            drops = {
                -- @param itemRemove = Item that will be removed from the player
                -- @param removeAmount = Amount of item that will be removed from the player
                -- @param itemReward = Item the player will receive
                -- @param rewardAmount = Amount of item the player will receive
                ["badql"] = { itemRemove = "leaves-meth-bad-ql", removeAmount = 5, itemReward = "package-meth-bad-ql", rewardAmount = math.random(5,9) },
                ["medql"] = { itemRemove = "leaves-meth-med-ql", removeAmount = 5, itemReward = "package-meth-med-ql", rewardAmount = math.random(3,6) },
                ["maxql"] = { itemRemove = "leaves-meth-max-ql", removeAmount = 5, itemReward = "package-meth-max-ql", rewardAmount = math.random(1,3) },
            }
        }
    },
}

Config.Consumables = {
    ["Weed"] = {
        enable = true, -- Enable smoking weed?
        time = 10000, -- 10 Seconds with effects
        items = { -- List of possible items to smoke
            "weed-bad-ql",
            "weed-med-ql",
            "weed-max-ql",
        },
    },
    ["Coke"] = {
        enable = true, -- Enable smoking coke?
        time = 10000, -- 10 Seconds with effects
        items = { -- List of possible items to smoke
            "coke-bad-ql",
            "coke-med-ql",
            "coke-max-ql",
        },
    },
    ["Meth"] = {
        enable = true, -- Enable smoking meth?
        time = 10000, -- 10 Seconds with effects
        items = { -- List of possible items to smoke
            "meth-bad-ql",
            "meth-med-ql",
            "meth-max-ql",
        },
    },
}
PreviousInstallationNext[QB] Craft Potion

Last updated 1 year ago

🌱
🗒️