> For the complete documentation index, see [llms.txt](https://gtadocs.gta-explore.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gtadocs.gta-explore.com/turf-wars/configuration.md).

# Configuration

## LANGUAGE

The active locale name.

```lua
LANGUAGE = "en"
```

## REQUIRED\_POLICE

The amount of cops required to be online.

```lua
REQUIRED_POLICE = 0
```

## MAX\_SELL

The maximum amount of drug sold at once.

```lua
MAX_SELL = 7    -- MAX AMOUNT OF DRUG SOLD AT ONCE
```

## REPUTATION\_LOSS

The number of reputation points lost every \<REPUTATION\_LOSS\_TIMER>.

```lua
REPUTATION_LOSS_TIMER = 60*60000 -- DELAY BETWEEN 2 REPUTATION POINTS LOST
```

## REPUTATION\_LOSS\_TIMER

The time between each reputation loss.

```lua
REPUTATION_LOSS_TIMER = 60*60000 -- DELAY BETWEEN 2 REPUTATION POINTS LOST
```

## POL\_ALERT\_TIME

The police alert duration (How long the blip stays on the map).

```lua
POL_ALERT_TIME = 30 * 1000  -- 30 seconds
```

## POL\_ALERT\_SPRITE

The blip sprite for the police alert. ([See the list of sprites](https://docs.fivem.net/docs/game-references/blips/#blip-colors))

```lua
POL_ALERT_SPRITE = 108      -- radar_financier_strand...
```

## POL\_ALERT\_COLOR

The blip color for the police alert. ([See the list of colors](https://docs.fivem.net/docs/game-references/blips/#blip-colors))

```lua
POL_ALERT_COLOR = 1         -- Red
```

## POL\_ALERT\_WAVE

Toggle the wave effect behind the blip for the police alert.

```lua
POL_ALERT_WAVE = true       -- Enables the blip wave.
```

## PERCENTAGES\_ADV

The rate of each interaction when trying to sell drugs on an enemy turf. The remaining rate is the sell percentage.\
*The total rate must be under 100.*

* `COPS`: **integer**, rate of calling the cops (and denying).
* `GANG`: **integer**, rate of calling the gang owning the turf (and denying).
* `DENY`: **integer**, rate of denying.

```lua
PERCENTAGES_ADV = { -- BE SURE TO NEVER GO OVER A TOTAL OF 100
    COPS = 20,
    GANG = 30,
    DENY = 0
}
```

## PERCENTAGES\_OWN

The rate of each interaction when trying to sell drugs on your gang turfs. The remaining rate is the sell percentage.\
*The total rate must be under 100.*

* `COPS`: **integer**, rate of calling the cops (and denying).
* `DENY`: **integer**, rate of denying.

```lua
PERCENTAGES_OWN = { -- BE SURE TO NEVER GO OVER A TOTAL OF 100
    COPS = 20,
    DENY = 20
}
```

## PERCENTAGES\_OUT

The rate of each interaction when trying to sell drugs out of turfs. The remaining rate is the sell percentage.\
*The total rate must be under 100.*

* `COPS`: **integer**, rate of calling the cops (and denying).
* `DENY`: **integer**, rate of denying.

```lua
PERCENTAGES_OUT = { -- BE SURE TO NEVER GO OVER A TOTAL OF 100
    COPS = 30,
    DENY = 25
}
```

## TURF\_MULTIPLIER

The prices' multiplier when selling on a turf.

```lua
TURF_MULTIPLIER = 1.5 -- 1 = 100%
```

## DRUGS

The drug prices.

```lua
DRUGS = { -- Item prices for sell
    ["weed"] = 91,
    ["meth"] = 200,
}
```

## GANG\_COLORS

The gang colors to display on the minimap.\
*These are CSS colors (hex, rgba, colors, ...).*

```lua
GANG_COLORS = {
    neutral = "white", -- DEFAULT TURF GANG, WHEN NO REAL GANG HAS REPUTATION, 
    vagos = "yellow",
    ballas = "purple"
}
```

## TURFS

The turfs' delimitations, as a polygon.

* `Polygon`: **table**, list of vector2 position.

```lua
TURFS = {
    DEL_PERRO = {
        Polygon = {
            vector2(-2240.08, -367.21),
            vector2(-2068.57, -32.42),
            vector2(-1557.0, -184.18),
            vector2(-1083.4, -761.62),
            vector2(-1779.0, -1349.0),
            vector2(-1930.0, -1245.0)
        }
    },
    
    ...

}
```
