# AI Gangs

<figure><img src="/files/iw5zfufResHL13nNDc1H" alt=""><figcaption></figcaption></figure>

***

Works great with ESX, QBCore, and any QBCore-based frameworks

Transform your server’s gang role-play with an innovative script that enhances gang dynamics and operations. Equip your gangs with **strategic AI gangsters** and intelligent crew members for immersive, tactical gameplay.

***

### Key Features

#### **Unparalleled Gang Recruitment System**

* **Recruit NPC Gangsters**: Turn NPCs from your hood into loyal crew members ready to back you up.
* **Dynamic NPC Numbers**: Configurable amounts with respawn cooldowns for balance.
* **Strategic Decisions**: Recruit crew members or leave NPCs for hood defense.

#### **Customizable Gang Members**

Server admins can tailor gang NPCs with:

* **Models & Outfits**: Choose from 24 premade outfits or create custom models.
* **Weapon Loadouts**: Equip NPCs with melee or ranged weapons.
* **Health & Accuracy**: Adjust health and shooting precision for balanced gameplay.
* **Driving & Combat Styles**: Set driving speeds and combat behaviors (offensive or defensive).

***

#### **Intelligent Gang Members**

* **Seamless Following**: AI gangsters follow you on foot or in vehicles, coordinating for maximum efficiency.
* **Adaptive Combat**: Automatically engage enemies using configured weapons. Friendly fire is prevented.
* **Unified Gang Force**: Multiple units can work together seamlessly, ensuring organized crew gameplay.

***

#### **Enhanced Mobility**

* **Ride Along**: AI gangsters can ride in your car or drive you around with configurable driving styles.
* **Follow in Vehicles**: AI crew can drive their own cars, providing support on the move.

***

#### **Tactical Territory Defense**

* **Strategic Orders**: Command AI gangsters to guard, attack, or hold formations (e.g., circles, lines).
* **Innovative Defense System**: NPCs defend territories when no allied players are nearby. Alerts notify gang members during attacks.
* **Default Weapons**: Configure AI to use melee or ranged weapons for unclaimed NPCs.

####

***

## Preview

{% embed url="<https://youtu.be/eryobxTimZM?si=3FKr5BUJco2RwZSk>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://enyo-scripts.gitbook.io/documentations/fivem-scripts/ai-gangs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
