KuzQuality - FiveM Documentation
Webstore
  • KuzQuality - FiveM Scripts
  • Useful links
    • KuzQuality.com | Shop now
    • Our Discord
  • General
    • Common issues
    • Frequently asked questions
    • Updating server artifacts
    • Installation basics
  • RESOURCES
    • Premium Resources
      • Shell Creator
        • Config
        • Installation Guide
        • Video guide
        • API
          • Server
          • Client
      • Cocaine Production
        • Config
        • Installation Guide
      • Roof boxes & bike racks
        • Config
        • Installation Guide
        • API
      • Meth Cooking
        • Config
        • Installation Guide
      • Private islands
        • Config
        • Installation Guide
      • Real offroad physics
        • Config
        • Installation Guide
        • API
      • Placeable items
        • Config
        • Inventory integrations
        • Installation Guide
      • Car Dyno
        • Config
        • Installation Guide
      • Outfit Bag 2.0
        • Config
        • Installation Guide
      • Realistic wheel damage
        • Config
      • Smash 'n Grab 2.0
        • Config
        • Installation Guide
      • Animation Suggestions
        • Config
        • Installation Guide
      • Smugglers Heist
        • Config
        • Installation Guide
      • Car Heist
        • Config
      • Towing & Winching
        • Config
        • Installation Guide
      • Security Systems
        • Config
        • Developer Docs
      • Drift Tires
        • Config
        • Installation Guide
      • Engine Swaps [ESX]
        • Config
      • Engine Swaps [QBCore]
        • Config
      • Islands Generator
        • Config
        • Installation Guide
      • Brake Overheating
        • Config
        • Installation Guide
      • Drift Smoke
        • Config
      • Advanced Ped Looting
        • Config
        • Installation Guide
      • Bike Jump Ability
        • Config
        • Installation Guide
      • Hideouts 2.0
        • Config
      • Detective Tools
        • Config
      • Classic Outfit Bag
        • Config
      • Traction Control Toggle
        • Config
      • Car Lift
        • Config
      • Vehicle Towing
        • Config
      • RGB Controller (Full)
        • Config
      • Diving [ESX]
        • Config
      • Diving [QBCore]
        • Config
    • Free Resources
      • Prop Placer
        • Config
      • Nightclub Heist
        • Config
      • Basic Security Lasers
        • Config
        • Developer Docs
      • Advanced Airdrop
        • Config
      • Smooth Throttle Control
        • Config
      • Better rollbacks & handbrake turns
        • Config
      • Wild Cannabis (Loot Areas Example)
        • Config
      • RGB Controller (Basic)
        • Config
      • Dragy
        • Config
      • Easter Egg Hunt
        • Config
      • Loot Areas
        • Config
        • Developer docs
  • KQ Link
    • KQ Link | Installation guide
    • Using Git
    • Developer reference
      • Exports
        • Server
        • Client
Powered by GitBook
On this page
  1. RESOURCES
  2. Free Resources
  3. Wild Cannabis (Loot Areas Example)

Config

Config = {}

Config.debug = true

--- SETTINGS FOR ESX
Config.esxSettings = {
    enabled = true,
    oldEsx = false,
    moneyAccount = 'black_money',
    useNewESXExport = true,
}

--- SETTINGS FOR QBCORE
Config.qbSettings = {
    enabled = false,
    useNewQBExport = true, -- Make sure to uncomment the old export inside fxmanifest.lua if you're still using it
    moneyAccount = 'cash',
}

Config.target = {
    enabled = false,
    system = 'ox_target' -- 'qtarget' or 'qb-target' or 'ox_target'  (Other systems might work as well)
}

--- CANNABIS SPAWN LOCATIONS CAN BE CONFIGURED IN SERVER/SERVER.LUA

Config.crafting = {
    {
        location = {
            x = 2195.27, y = 5602.2, z = 54.4, h = 92.56,
        },
        prop = 'bkr_prop_weed_scales_01a',
        
        duration = 3000, -- crafting duration in ms
        
        requiredItems = {
            {
                item = 'kq_wild_cannabis',
                amount = 4, -- required amount of leaves to craft one packaged cannabis
            },
            {
                item = 'kq_empty_baggie',
                amount = 1, -- required amount of baggies to craft one packaged cannabis
            }
        },
        craftedItem = 'kq_packaged_wild_cannabis', -- result item
        craftedAmount = 1,
        
        showBlip = true, -- whether or not to show the cannabis bagging location blip on the map
    }
}


Config.selling = {
    {
        location = {
            x = -327.22, y = -2463.43, z = 7.3, h = 108.6,
        },

        pedModel = 'g_m_m_mexboss_01',

        duration = 2000, -- selling duration in ms
        
        item = 'kq_packaged_wild_cannabis',
        
        -- By not putting the math.random into a function the price will be set randomly on each server start/script start
        -- this will result in better days for selling the cannabis
        price = math.random(300, 500),

        showBlip = true, -- whether or not to show the cannabis selling location blip on the map
    }
}

----------------------------------------------------------------------------------------------
--- KEYBINDS
----------------------------------------------------------------------------------------------
-- https://docs.fivem.net/docs/game-references/controls/
-- Use the input index for the "input" value
Config.keybinds = {
    interact = {
        label = 'E',
        input = 38,
    },
}
PreviousWild Cannabis (Loot Areas Example)NextRGB Controller (Basic)

Last updated 8 months ago