Exports
Get Player Gang
-- returns nil if not a gang member or a table with the gang and player info
local gang = exports['av_gangs']:getGang()
if gang then
print(json.encode(gang, {indent = true})
endGet Current Zone
-- returns nil is not inside a zone or the gang that controls the zone
local zone = exports['av_gangs']:getZone()
if zone then print(zone) endIs Player Zone
-- returns true if the current zone belongs to his gang or false
local myZone = exports['av_gangs']:myZone()
if myZone then
print("Is my territory")
else
print("Territory belongs to a rival gang or isn't taken")
endGet Permissions
Get Interior Info
addToGang(playerId, gang)
removeFromGang(identifier)
getGang(playerId)
getPermissions(playerId)
getGangByName(gang)
registerGang(label,playerId)
setBoss(gang,playerId)
getGangNames()
getGraffitis(gang)
addXP(gang,amount,skipDaily)
removeXP(gang,amount)
getGangXP(gang)
getGangLevel(gang)
getMembers(gang)
getMembersOnline(gang)
getMembersCount(gang)
sendSpray(playerId,gang)
addReputation(playerId,amount)
removeReputation(playerId,amount)
getReputation(playerId)
Last updated