> For the complete documentation index, see [llms.txt](https://docs.menanak47.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.menanak47.com/multi-framework/ak47_territories.md).

# ak47\_territories

The ultimate gang territory, turf war, and underworld empire experience for FiveM servers.

{% embed url="<https://youtu.be/6N9g2B21qBk>" %}

Transform gang roleplay with a fully dynamic territory system featuring real-time zone influence, custom 3D graffiti spraying, automated drug labs with custom animated interiors, intense turf wars, contraband airdrops, and corner drug sales. Powered by an ultra-modern 4-layer dark frosted glass NUI and `ak47_lib`, it offers plug-and-play multi-framework support and deep customization.

***

### 🔥 Key Features

Designed to improve roleplay immersion and economy balancing:

#### 🏴 Territory Control & Turf Wars

* **Dynamic Zone Influence:** Influence shifts organically based on gang presence, wall tagging, NPC drug distribution, crate captures, and PvP kills against rival members or law enforcement. Reaching 100% influence completely claims the territory.
* **In-Game Zone Builder:** Administrators can create and edit PolyZones, BoxZones, and CircleZones in real time using 3D placement gizmos and live boundary lines.
* **Dynamic Zones Expansion:** Enable map-wide expansion allowing crews to start claiming territories from anywhere on the map simply by spraying their gang tag.
* **Timed Turf Wars:** Gangs can contest rival hoods in timed capture battles featuring customizable zone radiuses, gradual circle shrinkage, capture countdowns, and citywide server alerts.

#### 🧪 Underworld Drug Labs & Supply Missions

* **Fully Functional Laboratories:** Includes pre-configured Weed, Cocaine, and Meth labs with custom IPLs, animated worker peds, and a mobile Acid Lab inside the Brickade 6x6.
* **Versatile Ownership Models:** Labs can be claimed through territory dominance, purchased outright with cash/bank/coins, or rented on a recurring daily cycle.
* **Supply Runs & Combat AI:** Refill lab materials through legal purchases or high-risk supply heist missions against hostile NPC guards with 4 difficulty levels (Easy, Medium, Hard, Insane).
* **Automated Processing:** Monitor supplies, manage production times, collect packaged bricks/pouches, and manage upgrades directly through the in-lab laptop terminal.

#### 🎨 3D Graffiti Spraying & Corner Drug Dealing

* **Immersive Wall Tagging:** Spray custom text or gang logos on flat walls using spray cans. Features 38+ scaleform fonts, 10+ gang logos (Ballas, Families, Vagos, Cartel, Marabunta, etc.), 14 font colors, daytime/nighttime lighting adaptation, surface material filtering, and paint removers.
* **Street-Level NPC Dealing:** Sell narcotics to local pedestrians using burner phones. Features multiple customer models, 5 customizable tension minigame levels, and auto-selling options.
* **Dynamic Pricing Multipliers:** Payouts scale dynamically based on your gang's territory influence (Low <30%, Mid <70%, High >70%).
* **Realistic Street Hazards:** Buyers can reject low-quality product, attempt to rob the dealer, or trigger silent/audible police and rival gang dispatch alerts.

#### 🏢 Gang Management, Rackets & Contraband Airdrops

* **Modern Frosted Glass NUI:** Sleek gang creation, member hierarchy management, and competitive real-time leaderboards (tracking K/D ratios, kills, deaths, influence, and crate captures).
* **Contraband Airdrops:** Call in tactical supply drops using flare sticks. An incoming cargo plane flies over the drop zone, releases a parachuted supply crate, and creates an intense KOS Red Zone.
* **Extortion & Protection Rackets:** Place racket points across controlled neighborhoods that accumulate passive income over configurable intervals, with robbery and collection notifications.
* **Gang Stash & Fleet Garages:** Assign shared gang stashes and fleet vehicle spawn points with configurable total vehicle limits and per-model spawn limits.

#### 🛠️ Technical Excellence

* **Multi-Framework & Target Support:** Seamlessly works with ESX, QB, QBX, and various target systems (ox\_target, qb-target, qtarget).
* **Highly Secure:** Built-in server-side exploit checks, including distance validation and trigger authentication, to prevent cheating.
* **Comprehensive Integration:** Integrated with major inventory systems (ox\_inventory, qb-inventory, codem-inventory, tgiann-inventory), multiple police dispatches (ps-dispatch, qs-dispatch, cd\_dispatch, qb-policejob), and marked bill metadata worth support.

***

### 💻 Framework:

* ESX, QB, QBX

***

### ⚙️ Dependencies:

* ak47\_lib: <https://github.com/MenanAk47/ak47_lib/releases/latest>

***

### ⚙️ How To Install:

* Download ak47\_territories from your cfx portal.
* Add the script in your resources folder.
* Add items based on your framework instruction.
* Add item images into inventory.
* Start the script in your server.cfg below framework files.
* Make sure you have all dependencies.
* Restart the server.

***

### 🔗 Links & Support:

* **📖 Documentation:** <https://docs.menanak47.com/multi-framework/ak47_territories>
* **🛒 Buy Now (Tebex):** <https://menanak47.tebex.io/package/6810765>
* **💬 Discord Support:** <https://discord.gg/menanak47>

***

### 📝 Note:

* We don't support custom framework. Make sure you are using official framework update.
* Renaming the script is not allowed. It may break the functionalities.
* Don't upload the script with FileZilla, Use Winscp if you are using FTP for file uploading
