# Jomidar Fishing

> ## Jomidar Fishing V4 Inspired Fishing Script For QBCore

## Preview

**You can customize delivery location reward money amount**

{% embed url="<https://www.youtube.com/watch?v=RUZmO50u-gg>" %}
Youtube Preview
{% endembed %}

<figure><img src="/files/04dw3p5cavu4s2brm1oa" alt=""><figcaption></figcaption></figure>

## Installation

Get from tebex

{% embed url="<https://github.com/Haaasib/jomidar-fishing/>" %}

1st Step

Drag And Drop The Script To Your Server Files .  Dont Change The Script Name&#x20;

```javascript
jomidar-fishing
```

2nd Step

Copy And Paste The Items Icons To Your Inventory&#x20;

```
qb-inventory\html\images
```

3d Step

qb-core/shared/items.lua

```
    -- Jomidar Fishing
    sturgeon           = { name = 'sturgeon', label = 'Sturgeon', weight = 2500, type = 'item', image = 'sturgeon.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Sturgeon' },
    whitefish          = { name = 'whitefish', label = 'Whitefish', weight = 2500, type = 'item', image = 'whitefish.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Whitefish' },
    codfish            = { name = 'codfish', label = 'Codfish', weight = 2500, type = 'item', image = 'codfish.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Cod' },
    mackerel           = { name = 'mackerel', label = 'Mackerel', weight = 2500, type = 'item', image = 'mackerel.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Mackerel' },
    alewife            = { name = 'alewife', label = 'Alewife', weight = 2500, type = 'item', image = 'alewife.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A normal fish Tatses pretty good!' },
    carp               = { name = 'carp', label = 'Carp', weight = 2500, type = 'item', image = 'carp.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A normal fish Tatses pretty good!' },
    catfish            = { name = 'catfish', label = 'Catfish', weight = 2500, type = 'item', image = 'catfish.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A normal fish Tatses pretty good!' },
    whitesucker        = { name = 'whitesucker', label = 'Whitesucker', weight = 2500, type = 'item', image = 'whitesucker.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A normal fish Tatses pretty good!' },
    redhorse           = { name = 'redhorse', label = 'Redhorse', weight = 2500, type = 'item', image = 'redhorse.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A normal fish Tatses pretty good!' },
    salmon             = { name = 'salmon', label = 'Salmon', weight = 2500, type = 'item', image = 'salmon.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A normal fish Tatses pretty good!' },
    herring            = { name = 'herring', label = 'Herring', weight = 2500, type = 'item', image = 'herring.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A normal fish Tatses pretty good!' },
    bass               = { name = 'bass', label = 'Bass', weight = 2500, type = 'item', image = 'bass.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A normal fish Tatses pretty good!' },
    -- Bait + Gear
    fishbait 			     	         = {name = 'fishbait', 					label = 'Bait Container', 			weight = 400, 		type = 'item', 		image = 'fishbait.png', 			unique = false,    useable = true, 	   shouldClose = true,	   combinable = nil,   description = 'Fishing bait'},
    fishingrod 			 		 = {name = 'fishingrod', 				label = 'Weak Rod', 				weight = 750, 		type = 'item', 		image = 'fishingrod.png', 			unique = false,    useable = true, 	   shouldClose = true,	   combinable = nil,   description = 'A fishing rod for adventures with friends!!'},	
    fishcontainer 			     	 = {name = 'fishcontainer', 				label = 'Container', 				weight = 400, 		type = 'item', 		image = 'fishbait.png', 			unique = false,    useable = true, 	   shouldClose = true,	   combinable = nil,   description = 'Fishing bait'},
 
```

4th Step

Run The Sql

```
CREATE TABLE leaderboard (
    id INT AUTO_INCREMENT PRIMARY KEY,
    player_name VARCHAR(50) NOT NULL,
    length FLOAT NOT NULL,
    caught_time DATETIME NOT NULL
);
```

5th Step

Download The Dependencies

***`Download And Put In The Server`***

{% embed url="<https://github.com/Haaasib/j-textui>" %}

{% embed url="<https://github.com/Haaasib/jomidar-ui>" %}

{% embed url="<https://github.com/0resmon/resource-pack/tree/main>" %}

{% embed url="<https://github.com/Haaasib/skillchecks>" %}

Download The 0r-npcdialog & Paste this on Shared/config.lua

```

Config = {
    MenuAlign = "left", -- left or right
    Dialogs = {

        { 
            Ped = {
                Enable = true,
                coords = vector4(1304.48, 4229.45, 33.91, 100.29),
                hash = "a_m_m_farmer_01", -- Check here https://docs.fivem.net/docs/game-references/ped-models/
                animDict = "amb@world_human_hang_out_street@female_arms_crossed@idle_a",
                animName = "idle_a"
            },
            Blip = { -- https://docs.fivem.net/docs/game-references/blips/
                Enable = true,
                coords = vector3(1304.48, 4229.45, 33.91),
                sprite = 88,
                color = 2,
                scale = 0.5,
                text = "Fishing"
            },
            Menu = {
                Label = "Fishing",
                Description = "MENU",
                Icon = "fas fa-briefcase", -- https://fontawesome.com/v5/search | You can use Pro Icons too
            },
            AutoMessage = { -- This is an automatic message system that sends automatic message when you open dialog menu.
                Enable = true,
                AutoMessages = {
                    {type = "question", text = "Welcome, choose what you want to do."},
                    --{type = "message",  text = "This is an automatic message."}
                }
            },
            Buttons = {
                [1] = { -- Button 2 and answers
                    label = "Fishing Shop",
                    systemAnswer = {enable = true, type = "message", text = "On Shop"},
                    playerAnswer = {enable = true, text ="Ok"},
                    maxClick = 1,
                    onClick = function()
                        -- Write your export or events here
                        -- exports[GetCurrentResourceName()]:closeMenu()
                        TriggerEvent('qb-uwucafe:client:openShop')
                        exports[GetCurrentResourceName()]:closeMenu()
                    end
                },
                [2] = { -- Button 3 and answers
                    label = "See Leaderboard",
                    systemAnswer = {enable = true, type = "message", text = "Check Leaderboard"},
                    playerAnswer = {enable = true, text = "Checking"},
                    maxClick = 1,
                    onClick = function() 
                        TriggerServerEvent('leaderboard:open')
                        exports[GetCurrentResourceName()]:closeMenu()
                    end
                },
                [3] = { -- Button 4 and answers
                label = "Start Delivery",
                systemAnswer = {enable = true, type = "message", text = "Delivery Started"},
                playerAnswer = {enable = false, text = "Understood. Head to the rendezvous point, and be ready to move fast."},
                maxClick = 1,
                onClick = function()
                    
                    TriggerEvent('delivery:start')

                    -- Write your export or events here
                    exports[GetCurrentResourceName()]:closeMenu()
                end
                },
                [4] = { -- Button 4 and answers
                    label = "Leave Conversation",
                    systemAnswer = {enable = false, type = "message", text = "The authorities are closing in. We need a clear path for extraction."},
                    playerAnswer = {enable = false, text = "Understood. Head to the rendezvous point, and be ready to move fast."},
                    maxClick = 1,
                    onClick = function()
                        -- Write your export or events here
                        exports[GetCurrentResourceName()]:closeMenu()
                    end
                },
                -- Don't write more than 5 buttons
            },
            Interaction = {
                Target = {
                    Enable = true,
                    Distance = 2.0,
                    Label = "Contact",
                    Icon = "fa-solid fa-address-book"
                },
                Text = {
                    Enable = true,
                    Distance = 3.0,
                    Label = "[E] Contact"
                },
                DrawText = {
                    Enable = false,
                    Distance = 3.0,
                    Show = function()
                        exports["qb-core"]:DrawText("Contact", "left")

                    end,
                    Hide = function()
                        exports["qb-core"]:HideText()
                    end
                }
            }
        },
    }
}

```


---

# 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://hasib.gitbook.io/home/docs/jomidar-fishing.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.
