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

πŸ“š Zone Configuration

We will go over creating new gang zones.

To create zones you will want to go in your game, go to one cordinate and copy the vector 2, and to the other and copy that vector 2. We will want to put it in Config.Zones, and give it a Unique Name. This will allow us to later configure the drug sales in that zone.

Config.Zones = {
    { name = "Vespucci", coords = { start = vector2(-1859.43, -875.01), finish = vector2(-682.35, -1826.47) }},
    { name = "UpperVespucci", coords = { start = vector2(-682.22, -871.0), finish = vector2(-2369.08, -345.86) } },
    { name = "Airport", coords = { start = vector2(-2233.02, -3396.51), finish = vector2(-239.84, -1833.79) } },
    { name = "Docks", coords = { start = vector2(-245.41, -2165.84), finish = vector2(1368.52, -3444.71) } },
    { name = "Davis", coords = { start = vector2(-239.33, -2164.92), finish = vector2(652.88, -1341.87) } },
    { name = "Legion", coords = { start = vector2(-308.91, -660.15), finish = vector2(652.88, -1341.87) } },
    { name = "Machinery", coords = { start = vector2(652.59, -2165.22), finish = vector2(3033.91, -784.5) } },
    { name = "MirrorPark", coords = { start = vector2(653.0, -783.41), finish = vector2(1630.69, 433.64) } },
    { name = "CentralLS", coords = { start = vector2(652.55, -659.53), finish = vector2(-690.89, -181.11) } },
    { name = "UpperVinewood", coords = { start = vector2(-690.89, -181.11), finish = vector2(644.35, 1106.39) } },
    { name = "WestVinewood", coords = { start = vector2(-692.0, -343.68), finish = vector2(-3317.0, 969.56) } },
    { name = "WestSide", coords = { start = vector2(-683.18, 4012.66), finish = vector2(-3317.0, 969.56) } },
    { name = "Sandy", coords = { start = vector2(-683.18, 4012.66), finish = vector2(3098.93, 1096.33) } },
    { name = "Paleto", coords = { start = vector2(3446.52, 5499.24), finish = vector2(-2350.98, 7984.03) } },
    { name = "Grapeseed", coords = { start = vector2(3098.59, 4012.35), finish = vector2(-3304.34, 5509.95) } },
    { name = "Eastside", coords = { start = vector2(3098.43, 5499.37), finish = vector2(4492.26, 1763.42) } },
    { name = "VinewoodBowl", coords = { start = vector2(642.26, 1095.76), finish = vector2(1630.63, 435.3) } },
    { name = "EastSide", coords = { start = vector2(1631.85, 1095.2), finish = vector2(3828.64, -765.13) } },--]]
}

We have some other options to configure in relation to Zones

Config.ZoneDebug = false
Config.ZoneGangDebug = false
Config.ZoneGangRepDebug = false 
Config.ZoneGangOnly = true 
Config.ZoneGangRemoval = 5

Config.ZoneDebug (Will display the zones with GPS Markers to make it easier for you).

Config.ZoneGangDebug (Will give you a bunch of prints in console related to gangs)

Config.ZoneGangOnly (This will make it so only gangs can see the zones not to disturb other players)

Config.ZoneGangRemoval (This is ran every 10, and is the number of points gangs should lose in that time frame across all turfs)

PreviousπŸ”§ Initial ConfigNextπŸ’ŠDrug Dealing

Last updated 5 months ago