# AI Guards V2

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

**Works great with ESX and QBCore and any QBCore based frameworks.**

### Core Features

* **Dynamic Security Detail** – Summon fully customizable bodyguards or elite security squads, from low-profile protection to high-alert mercenaries.
* **Seamless Arrival & Formation** – Agents arrive in custom vehicles, park properly, and automatically take formation around the player.
* **Smart Threat Detection** – Guards automatically detect hostile NPCs and neutralize threats efficiently.
* **Friendly Fire Prevention** – Advanced recognition system ensures agents distinguish allies from enemies.
* **Advanced AI Intelligence** – Agents behave like real players: guarding, following, driving, fighting, and coordinating realistically.
* **Realistic Interaction Features** – Passenger ride-along, agent-controlled driving, outfit customization, and immersive team behavior.

***

### Version 2 – New Features & Improvements

#### Completely Reworked User Interface

* Full **Security Management Dashboard**.
* Manage access permissions for security teams.
* Edit or delete teams when needed.
* Security Menu showing remaining protection days per team.
* Call or cancel deployments via a smooth UI.
* View granted teams, monitor status, and manage deployments easily.
* Team access becomes unavailable to others while granted.
* **Create Team Wizard**:
  * Customize weapons, vehicles, clothing, and skills.
  * Optional pricing system (free or paid service).
  * Real-time cost calculator for budget management.

***

#### New Radial Command Menu (Real-Time Control)

**Allies Management**

* Dynamically add/remove allies.
* Prevent friendly fire and define trusted units.

**Formation Controls**

* Circle In (defensive inward formation)
* Circle Out (outward-facing perimeter)
* Line (battle line formation)
* Queue (single-file follow line)

**Guard Mode System**

* Assign guards to specific locations.
* Secure their current position.
* Temporary or permanent assignments.
* **Stationed Guards persist after server restarts/script reloads.**
* Toggle between:
  * Passive Mode (react only when threatened)
  * Aggressive Mode (engage on sight)

**Orders System**

* Attack marked target.
* Follow player.
* Vehicle follow (guards follow in their own cars).

***

### Admin Configuration Flexibility

* Enable paid security services or keep it free.
* Full pricing control and scaling.
* Adjustable agent behaviors.
* Nothing hardcoded — fully configurable system.

***

### Preview

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


---

# 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-guards-v2.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.
