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

Get territory owners

Returns a table containing the current owner of each territory

Export

local owners = exports["drugs_creator"]:getTerritoryOwners()

Returns

Data Type
Description

table

A table where key = territory name and value = owning job/gang name or nil

Example

local owners = exports["drugs_creator"]:getTerritoryOwners()

for territoryName, ownerFaction in pairs(owners) do
    print(territoryName .. " is owned by " .. (ownerFaction or "nobody"))
end

Last updated