# Configuration Guide: Nail Trap System

### **1️⃣ Core Configuration**

To configure the script, open the `shared/config.lua`

#### **Framework Selection**

Set your core framework based on your server:

```lua
J0.Core = "QBCore" -- Options: "QBCore", "ESX", "Qbox"
```

* **"QBCore"** → Use this for a qb-core-based server.
* **"ESX"** → Use this if your server runs on es\_extended.
* **"Qbox"** → Select this if your server is using qbox\_core.

***

### **2️⃣ Targeting System**

Select the targeting system your server uses:

```lua
J0.Target = "ox_target" -- Options: "ox_target", "qb-target", "interact"
```

* **"ox\_target"** → Uses ox\_target for interacting with nails.
* **"qb-target"** → Uses qb-target as the interaction method.
* **"interact"** → Uses a basic interaction system instead of a targeting resource.

***

### **3️⃣ Inventory System**

Choose the inventory system that matches your server:

```lua
J0.Inventory = 'qb' -- Options: "qb", "ox"
```

* **"qb"** → Use this if you have **qb-inventory** installed.
* **"ox"** → Use this if you are running **ox\_inventory**.

***

### **4️⃣ Nails System Settings**

Customize how the nails function in-game:

```lua
J0.NailsCfg = {
    CleanUp = 10, -- Time (in minutes) before deployed nails automatically disappear
    DamagePerNail = 33.335 -- Damage percentage applied to a vehicle's tire upon contact with a nail
}
```

* **`CleanUp`** → Defines how long (in minutes) nails will stay on the ground before they are removed automatically. Default: **10 minutes**.
* **`DamagePerNail`** → Determines how much tire damage a single nail will cause when driven over. Default: **33.335%** per nail.

***

### **📌 Final Steps**

1. Make sure you have selected the correct framework, targeting system, and inventory system.
2. Adjust the cleanup time and damage settings to fit your server's needs.
3. Restart your server for the changes to take effect.
