LC-Development
  • ๐Ÿ‘‹Welcome to HapticCode
  • ๐Ÿ“šLibrary
    • ๐Ÿ–ฅ๏ธHaptic-Lib
      • ๐Ÿ”ง Config
      • ๐Ÿ“™ Usage
      • ๐ŸคClient Functions
        • Blips
        • Items
        • Notify
        • Target
        • Peds
      • ๐Ÿ’ปServer Functions
        • Items
        • Jobs
        • Money Functions
        • Notify
  • ๐Ÿ˜‡Remastered Scripts
    • ๐Ÿ›’ LC-Businesses
      • ๐ŸŽฏJob Blips
      • ๐Ÿ’ผ Duty Locations
      • โ„๏ธ Fridges
        • Fridge Shops
        • Fridge Stashs
        • Final Step
      • ๐Ÿ“ฅ Trays
      • ๐Ÿ” Drink/Fryer/Grill/Pack
      • ๐Ÿ“ฆShared Employee Stash
      • ๐Ÿ“ฆPrivate Employee Stash
      • ๐Ÿ“ฆTable Stashs
      • ๐Ÿช‘ Chairs
      • ๐Ÿ’ƒ NPC Dancers/Strippers
      • ๐ŸŽง DJ Booths
      • ๐Ÿ’ฐCash Registers
      • ๐Ÿง‘Custom Animations
      • ๐Ÿ”Consumables
    • ๐Ÿ›๏ธLC-Cityhall
      • ๐Ÿ“Config
      • ๐Ÿ’ณLicenses
  • Haptic
    • ๐Ÿ˜ท Haptic-Gangs
      • ๐Ÿ”ง Initial Config
      • ๐Ÿ“š Zone Configuration
      • ๐Ÿ’ŠDrug Dealing
        • ๐Ÿ’Š Zone Based Dealing
      • ๐Ÿ’€Death Tracker
      • ๐Ÿ’ปExports
      • ๐Ÿ“ Integrations
        • ๐Ÿš‘ QB-AmbulanceJob
        • ๐Ÿ’Ž QB-Jewellery
        • ๐Ÿ’ต QB-StoreRobbery
        • ๐Ÿ’ฆRcore Integration
      • ๐Ÿ—๏ธCommon Issues
    • ๐Ÿ”ซHaptic-Ammunation
      • ๐Ÿ“Config
    • ๐Ÿ’ŠHaptic-DrugEffects
Powered by GitBook
On this page
  1. Haptic
  2. ๐Ÿ˜ท Haptic-Gangs
  3. ๐Ÿ’ŠDrug Dealing

๐Ÿ’Š Zone Based Dealing

We have a unique system allowing you to set certain drugs to sell for their own price depending on the zone the person is, we can also configure the zones to have different robbery chances.

Config.ZoneDrugSettings = {
    ["default"] = {
        robberychance = 50,
        policecall = 50,
    },
    ["Vespucci"] = {
        robberychance = 50,
        policecall = 50,
    },
}

The default parameter will only be used if the user is selling in an area that is not a zone. Otherwise its required to have a unique section for each zone you have configured.

Config.Drugs = {
    ["default"] = {
        ["joint"] = { max_quantity = 10, min_price = 20, max_price = 40 },
        ["cokebaggy"] = {  max_quantity = 5, min_price = 40, max_price = 80 },
    },
    ["Vespucci"] = {
        ["joint"] = { max_quantity = 10, min_price = 200, max_price = 400 },
        ["cokebaggy"] = { max_quantity = 10, min_price = 400, max_price = 800 },
    },
}

You will also need to define what drugs each zone can have.

Previous๐Ÿ’ŠDrug DealingNext๐Ÿ’€Death Tracker

Last updated 5 months ago