# Fishing Script

### 📋 Overview

`NTeamDev Fishing` is a **FiveM script** that allows players to:

* Catch fish
* Clean fish (with XP rewards)
* Sell fish

The script is **framework-agnostic**, meaning it can work with **any major framework or inventory system**, including:

* **Frameworks:** `ESX (es_extended)` and `QB-Core`
* **Inventory systems:** `ox_inventory` (recommended), or any custom inventory
* **Target systems:** Currently `ox_target` (any target system can be implemented)

The script has been **fully tested** and works correctly for fishing, cleaning (with XP), and selling.

### ⚙️ Dependencies

The script currently relies on:

* `ox_lib`
* `ox_target` or `any`         &#x20;
* `es_extended` or `qb-core`

### 🐟 Fishing Integration with Custom Inventories

If you **don’t use `ox_inventory`**, keep in mind:

* The **fishing item is pre-registered** for `ox_inventory`.
* For other inventory systems, you **must create your own item**.

Then, use the provided event to start fishing:

```lua
TriggerClientEvent('nteamdev_fishing:client:startFishing', source)
```

**Event name:**

```
nteamdev_fishing:client:startFishing
```

This event must be triggered for your custom inventory to integrate properly with the fishing system.

***

### ✅ Features

* 🎣 **Fishing system** with item collection
* ✂️ **Fish cleaning** with optional XP gain
* 💰 **Fish selling** system
* 🌐 **Framework flexible** – works with ESX or QB-Core
* 🔧 **Inventory agnostic** – supports ox\_inventory and custom inventories
* 🎯 **Target system ready**
