# Jomidar Moonshine

> ## Jomidar Moonshine V4 Inspired Moonshine Script For QBCore

Preview

{% embed url="<https://youtu.be/RsKfstZm0lA>" %}

<figure><img src="https://3582736172-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fp9w0KnyXBFzMSsFZxG6G%2Fuploads%2FxEsFfwnsp4QlrZ4Eac97%2FAdd%20a%20heading.png?alt=media&#x26;token=ee3475eb-c1bc-4642-b380-7e2e197e6e38" alt=""><figcaption></figcaption></figure>

### Installation <a href="#installation" id="installation"></a>

Buy The Script From Here

[![Logo](https://dunb17ur4ymx4.cloudfront.net/webstore/favicons/e2a5c458c772cda43e1dd4ce17980213dfd7a3b1.png)Haaasib | Welcome](https://haaasib.tebex.io/)

1st Step

Drag And Drop The Script To Your Server Files . Dont Change The Script Name

Copy

```
jomidar-moonshine
```

2nd Step

Copy And Paste The Items Icons To Your Inventory

Copy

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

3d Step

qb-core/shared/items.lua

```
oldstill = { name = 'oldstill', label = 'Old Still', weight = 5000, type = 'item', image = 'still.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = "An old shoddily built still, it's a miracle it still work" },

bestcrate = { name = 'bestcrate', label = 'Crate of Bottles', weight = 500, type = 'item', image = 'cratebtls.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = "A crate with eight stoneware jugs inside filled with moonshine. Labeled with 'decent'" },

averagecrate = { name = 'averagecrate', label = 'Crate of Bottles', weight = 500, type = 'item', image = 'cratebtls.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = "A crate with eight stoneware jugs inside filled with moonshine. Labeled with 'below-average'" },

bestbottle = { name = 'bestbottle', label = 'Small Paper Wrapped Bottle', weight = 18, type = 'item', image = 'bestbottle.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = "A small bottle filled with moonshine, wrapped in a paper bag with an address and a note attached: 'Leave on doorstep, they'll slide payment under door'" },

avgbottle = { name = 'avgbottle', label = 'Small Paper Wrapped Bottle', weight = 18, type = 'item', image = 'avgbtle.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = "A small bottle filled with moonshine, wrapped in a paper bag with an address and a note attached: 'Leave on doorstep, they'll slide payment under door'" },

oldbread = { name = 'oldbread', label = 'Old Bread', weight = 18, type = 'item', image = 'oldbread.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = "Old bread, but still bread" },

oldfruit = { name = 'oldfruit', label = 'Old Fruit', weight = 18, type = 'item', image = 'oldfruit.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = "Old fruit, but still fruit" },

oldcorn = { name = 'oldcorn', label = 'Old Corn', weight = 18, type = 'item', image = 'oldcorn.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = "Old corn, but still corn" },
```

4th Step

Copy And Run The Sql

```
CREATE TABLE IF NOT EXISTS `jomidar_moonshine` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `owner` varchar(50) NOT NULL,
    `model` varchar(255) NOT NULL,
    `position` text NOT NULL,
    `rotation` text NOT NULL,
    `amount` int(11) NOT NULL,
    PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

```

5th Step

Download The Dependencies

{% embed url="<https://github.com/Demigod916/object_gizmo>" %}

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

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

{% embed url="<https://cdn.discordapp.com/attachments/1032318831437287495/1269772624012116056/interact.rar?ex=66b14768&hm=9b8d07dd746786b6bb2279833b1c800968aefad23e0323381970c7c4fdd0ae71&is=66aff5e8>" %}

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

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

Copy

```

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

        { 
            Ped = {
                Enable = true,
                coords = vector4(1984.36, 5176.23, 47.64, 134.1),
                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(1984.36, 5176.23, 47.64),
                sprite = 88,
                color = 2,
                scale = 0.5,
                text = "MoonShine"
            },
            Menu = {
                Label = "MoonShine",
                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 = "Moonshine 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('jomidar-moonshine:cl:openshop')
                        exports[GetCurrentResourceName()]:closeMenu()
                    end
                },
                [2] = { -- Button 3 and answers
                    label = "Start Delivery",
                    systemAnswer = {enable = true, type = "message", text = "Delivery"},
                    playerAnswer = {enable = true, text = "Checking"},
                    maxClick = 1,
                    onClick = function() 
                        TriggerEvent('delivery:jomidar_moonshine')
                        exports[GetCurrentResourceName()]:closeMenu()
                    end
                },
                [3] = { -- 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
                }
            }
        },
    }
}

```
