For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:

  • gang:string|nil Returns the gang name controlling the territory, or nil if nobody owns it.

  • points:number Amount of points held by the controlling gang, or 0 if unowned.

local gang, points = exports['av_gangs']:getZone()
print(gang, points)
local coords = {x = 100.0, y = 100.0, z = 100.0}
local gang2, points2 = exports['av_gangs']:getZone(coords)
print(gang2, points2)

Is Player Zone

Get Permissions

Get Interior Info

Last updated