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})
end

Get Current Zone

Returns the gang that owns a determinated zone or false, if not a controlled/valid zone.

params:

  • coords?:table x|y|z Coords to scan for gang or empty to use current player coords.

-- 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) end
local coords = {x = 100.0, y = 100.0, z = 100.0}
local zone = exports['av_gangs']:getZone(coords)

Is 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")
end

Get Permissions

Get Interior Info

Last updated