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
  • Client
  • Server
  1. Haptic
  2. 😷 Haptic-Gangs

💻Exports

We have made this super simple for you to integrate into your other resources, we will also be providing tutorials on how to implement it.

Client

exports["Haptic-Gangs"]:getCurrentZone(playerCoords)

This will return the zone name that the player is in or "default"

Server

exports["Haptic-Gangs"]:getZoneLeader(zone)

This export will let you find out which gang is leading in that zone.

exports["Haptic-Gangs"]:getCurrentZone(src)

This export will get you the users current zone purely based of their source.

exports["Haptic-Gangs"]:modifypoints(src, action, amount)

This is our points modifier export, action can be "add" "remove" and you put in the amount of points.

Will always return false if user is not in a gang.

Will always return false if user is not in a gang zone

Will return false if invalid PED

exports["Haptic-Gangs"]:modifygangpoints(gang, zone, action, amount)

This will let you add points or remove points from a gang by gangname and zonename

exports["Haptic-Gangs"]:deadPlayer(src)

This export is specific for integration into QB-Ambulancejob, allowing modifiers for player deaths in zones.

Previous💀Death TrackerNext📝 Integrations

Last updated 5 months ago