Docs /Territories/Configuration
v1.0.0

Configuring foltone_territories

Configuration File

All configuration is done in config.lua.

Zone Definitions

Config.Zones = {
    {
        name = "Grove Street",
        position = vector3(95.0, -1960.0, 21.0),
        width = 200.0,
        height = 200.0,
        rotation = 0.0,
        capturePoints = 100, -- points needed to capture
    },
    -- Add as many zones as needed
}
ParameterDescription
nameDisplay name of the zone
positionCenter coordinates of the zone
widthZone width
heightZone height
rotationZone rotation in degrees
capturePointsNumber of points needed to capture the zone

Drug List

Config.Drugs = {
    {
        item = "weed",
        label = "Weed",
        price = 50,
        capturePoints = 5,
        acceptRate = 0.6, -- 60% chance to accept
        rejectRate = 0.3, -- 30% chance to reject
        -- remaining 10% = call police
    },
    {
        item = "coke",
        label = "Cocaine",
        price = 120,
        capturePoints = 10,
        acceptRate = 0.4,
        rejectRate = 0.4,
    },
}
ParameterDescription
itemItem name in inventory
priceNPC sale price
capturePointsCapture points earned per sale
acceptRateProbability the NPC accepts
rejectRateProbability the NPC refuses

The remaining probability (1 - acceptRate - rejectRate) is the chance the NPC calls the police.

Police Jobs

Config.PoliceJobs = {"police", "fbi", "sheriff"}

List of jobs considered law enforcement for alerts.

Blacklisted Peds

Config.BlacklistedPeds = {
    "s_m_y_cop_01",
    "s_f_y_cop_01",
    -- NPCs you cannot sell to
}

Gang Jobs

Config.GangJobs = {"ballas", "vagos", "families", "lost"}

Only players with one of these jobs can participate in the territory system.