# Configuration

The configuration file (named config.lua) allows you to modify all the different parameters taken into account within our script. In case of problems with the scripts, first check that you have correctly edited this document

<details>

<summary><em><strong>Content of the configuration file by default</strong></em></summary>

```lua
CONFIG_DELETE_GUN = {
    -- ace | custom
    -- If you're using the ACE permissions system, you must to give by default the permission madonne.deletegun .
    -- You can edit this permission in the customs.lua file.
    FRAMEWORK = "esx", -- esx | none
    INVENTORY = "ox", -- ox | none <- ONLY IF FRAMEWORK IS NOT NONE

    PERMISSION_SYSTEM = "ace",
    
    WEAPON_TO_USE = "WEAPON_RAYCARBINE",
    AUTOMATICALLY_GIVE_WEAPON = true,

    NOTIFICATION_TEXT = "Entity deleted !",
    -- notification | chat | other
    NOTIFICATION_TYPE = "notification",
    notifChatColor = {255,255,255},
}
```

</details>

<details>

<summary><em>Main Delete Gun Configuration</em></summary>

Select if you use ESX and potentially OX Inventory or not.

```lua
FRAMEWORK = "esx", -- esx | none
INVENTORY = "ox", -- ox | none <- ONLY IF FRAMEWORK IS NOT NONE
```

Configure which permission must be used to give access to the delete gun.

```lua
-- ace | custom
-- If you're using the ACE permissions system, you must to give by default the permission madonne.deletegun .
-- You can edit this permission in the customs.lua file.
PERMISSION_SYSTEM = "ace",
```

Select which weapon must be used as Delete Gun, and if you want this wepaon to be given automatically to players able to use it.

<pre class="language-lua"><code class="lang-lua"><strong> WEAPON_TO_USE = "WEAPON_RAYCARBINE",
</strong> AUTOMATICALLY_GIVE_WEAPON = true,
</code></pre>

Whether or not to show a notification above the map when an entity is deleted with the delete gun.

```lua
NOTIFICATION_TEXT = "Entity deleted !",
-- notification | chat | other
NOTIFICATION_TYPE = "notification",
notifChatColor = {255,255,255},
```

</details>


---

# 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://documentation.madonnestudio.com/free-scripts/delete-gun/configuration.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.
