💻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.

Last updated