# ev\_antilag

EV\_Antilag is a forked ressource from bbv. Completely edited and changed to work properly and optimized.

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

## Nitro System Configuration and Usage Guide

This document provides a comprehensive guide for setting up and using the Nitro System script. This guide is compatible with QBCore, ESX, and Standalone frameworks.

### Configuration

The configuration file allows you to customize the Nitro System to fit your server's requirements. Below is an explanation of the settings:

#### **Framework Selection**

```lua
Framework = "QB"
```

* **QB**: Use this for servers running QBCore.
* **ESX**: Uncomment the `ESX` line and set this to `"ESX"` for ESX servers.
* **ST (Standalone)**: Use this for standalone servers.

***

#### **Particles**

```lua
ParticleUsed = 'veh_xs_vehicle_mods'
```

Defines the particle effect used during activation. You can choose custom particles or use the pre-configured options.

***

#### **RPM Threshold**

```lua
RPM = 0.65
```

Specifies the RPM level at which the pop/antilag effect is triggered.

***

#### **Installation Distance**

```lua
InstallDist = 2.5
```

Defines the distance (in meters) required for installation or removal of the Nitro System.

***

#### **Discord Webhook**

```lua
WebHook = "https://discord.com/api/webhooks/..."
```

The webhook URL for sending installation or removal logs to a Discord channel.

***

### Command Settings (Optional)

Commands are useful when running a Standalone server or for admin purposes. Enable commands with the following settings:

```lua
Commands = {
    Enabled = false,  -- Set to true to enable commands
    Permissions = true,  -- Restrict usage to specific players
    Allowed = {
        'steam:11000013b******', -- Add Steam identifiers here
    },
}
```

#### Usage

* **Install Command**: `/antilag_installer`
* **Remove Command**: `/antilag_remover`

If permissions are enabled, only users listed in the `Allowed` table can use these commands.

***

### Items Configuration

Items are essential for QBCore or ESX integration. They are used to interact with the system.

#### **AntiLag Installer**

```lua
AntiLag = {
    Name = "antilag_installer",
    Type = "installer",
}
```

This item installs the Nitro System on a vehicle. Add this item to your database or inventory system.

***

#### **AntiLag Remover**

```lua
AntiLagRemove = {
    Name = "antilag_remover",
    Type = "remover",
}
```

This item removes the Nitro System from a vehicle. Add this item to your database or inventory system.

***

### Usage

#### **For Players**

* Obtain the **AntiLag Installer** or **AntiLag Remover** item from the shop or admin.
* Approach the vehicle within the installation distance.
* Use the item from your inventory to install or remove the Nitro System.

***

#### **For Admins**

If commands are enabled:

1. Use `/antilag_installer` to install the system.
2. Use `/antilag_remover` to remove it.

Ensure your Steam ID is listed in the `Allowed` table if permissions are enabled.

***

### Notes

* Ensure you have proper permissions configured to prevent unauthorized usage.
* For standalone servers, enable commands for functionality.
* Use the Discord Webhook for monitoring and logging purposes.
* Customize particle effects and RPM thresholds to fit the style and gameplay of your server.


---

# 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://docs.evolvedrp.net/ev_ressources/ev_antilag.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.
