Page cover

🍺Moonshiner

Documentation relating to the lumen_moonshiner

Installation

  • Works with RedEM:RP / VORP / RSG . Be sure you installed one of them before to use this script.

  • You need to have 2 utility scripts. These will be provided by discord

    • redemrp_menu_base

    • uiprompt

  • Drag and drop the resource in your resources folder

    • lumen_moonshiner

  • Add this ensure in your server.cfg below under all utility scripts

    • ensure lumen_moonshiner

  • Edit the config.lua to make sure to customize the code

If you have any questions, please contact our lumen works discord.

Framework

Config.framework = "redemrp"

You can set the framework you need. The available options are "redemrp" , "vorp" or "rsg

Language

Config.Text = {
    [1] = "You can't do that because it's broken",
    [2] = "The boiler is not broken.",
    [3] = "Payment for delivery $",
    [4] = "Moonshiner",
    [5] = "Create",
    [6] = "Dismantle",
    [7] = "Repair",
    [8] = "correct",
    [9] = "low",
    [10] = "high",
    [11] = "Temperature is already correct",
    [12] = "The pressure is already correct",
    [13] = "You don't have enough ingredients",
    [14] = "Temperature corrected",
    [15] = "Try again",
    [16] = "Regulate temperature",
    [17] = "Decrease",
    [18] = "Increase",
    [19] = "Regulate pressure",
    [20] = "Corrected pressure", 
    [21] = "Temperature ",
    [22] = "Pressure ",
    [23] = "Damaged ",
    [24] = "Progress ",
    [25] = "Completed ",
    [26] = "Place yourself in a zone to start sending and press [ENTER]",
    [27] = "You are too far away",
    [28] = "Destination",
    [29] = "Choose location",
    [30] = "Shipment cancelled",
    [31] = "Go to the delivery area before the time runs out or you will damage the cart",
    [32] = "You have run out of delivery time",
    [33] = "The right wheel is broken",
    [34] = "The left wheel is broken",
    [35] = "The trolley has broken and the shipment has been cancelled",
    [36] = "Time ",
    [37] = "Wear ",
    [38] = "Press [ENTER] to deliver the shipment", 
    [39] = "You have cooked: ",
    [40] = "You got $ ",
    [41] = "You got your workbench back",
    [42] = "Currently in use",
    [43] = "Delivery",
    [44] = "Recolect",
    [45] = "You must first complete the delivery",

}

Sounds

```lua
Config.sounds = {
    ["temp"] = "temp.mp3",
    ["press"] = "presure.mp3",
}
```

Here you can add as many phonographs as you want and you can customize it

  • label : It is the name of the skill.

  • image: Here you can add an image as an icon.

  • requirementsJob : You can specify which jobs can raise this skill (example: {"police","doctor"} ). If you leave it empty {} all players will be able to use it

  • text : Description of the skill

Notifications & Witness

```lua
Config.notifyServer = function(text,src)
    TriggerClientEvent('redem_roleplay:ShowObjective',src, text, 4000)
end

Config.notifyClient = function(text)
    TriggerEvent('redem_roleplay:ShowObjective', text, 4000)
end

Config.alertPolice = true

Config.alertPolice = function()
    --EVENT ALERT
end
```

You can set your custom notification system here, by default redemrp is added. You can also enable the police to be notified when they start the shipment.

Destilleries

```lua
Config.distilleries = {

    ["mp006_p_moonshiner_still02x"] = {
        nameDestilery = "Destilery 1",
        itemProp = "suministroCocinero",
        recipes = {1,2},
        powerData = {time = 5, progression = 5, damage = 20},
        minigameTemp = {time = 10, prob = 75},
        minigamePressure = {time = 40, prob = 50},
        colorSmoke = {r = 0.0, g = 0.0, b = 0.0},
        timeSmoke = 300,
    },

    ["mp006_p_moonshiner_still03x"] = {
        nameDestilery = "Destilery 2",
        itemProp = "propDestilery2",
        recipes = {2},
        powerData = {time = 2, progression = 30, damage = 3},
        minigameTemp = {time = 3, prob = 3},
        minigamePressure = {time = 3, prob = 3},
        colorSmoke = {r = 0.0, g = 255.0, b = 0.0},
        timeSmoke = 300,
    },
   

}
```

Here you can customize each moonshiner model to your liking.

  • nameDestilery : Label of destillery

  • itemProp : Item name (inventory)

  • recipes : Indicates which recipe is available for cooking (see recipe section).

  • powerData : You have 3 values. Time indicates how many seconds this parameter checks, progression indicates the amount of percentage that will increase until it is completed and damage is the damage that will increase in percentage.

  • mingameTemp : You have 2 values. Time indicates how many seconds this parameter is checked, prob indicates the probability for the temperature to decrease or increase.

  • minigamePressure : Same as temperature, but for pressure

  • colorSmoke : color of the smoke emitted by the still

  • timeSmoke : Smoke duration for the entire server

Destiny

```lua

Config.destiny = {
    ["Blackwater"] = vector3(-1285.37, -1632.52, 81.618),
    ["Strawberry"] = vector3(-3611.60, -3053.92, 9.3909),
    ["Valentine"] = vector3(-192.446, 639.3209, 113.25),
}

```

You can add as many destinations as you wish

Recipes

```lua

Config.Recipes = {

    [1] = {
        name = "Irish whiskey",
        refineItem = {name = "whiskeyIrlandes", qty = 1},
        img = "https://shorturl.at/aGOS1",
        ingredients = {
            {src = "https://shorturl.at/nVX49", text = "Water", item = "agua", count = 1},

        },
        priceDelivery = 3,

    },

    [2] = {
        name = "Bourbon",
        refineItem = {name = "bourbon", qty = 3},
        img = "https://shorturl.at/ioxZ0",
        ingredients = {
            {src = "https://shorturl.at/nVX49", text = "Water", item = "agua", count = 1},
            {src = "https://shorturl.at/hjopT", text = "Wheat", item = "trigo", count = 2},
        },
        priceDelivery = 5,
    }, 


}
```

Here you can create as many recipes as you want

  • name : recipe label

  • refineItem : name of the final item (inventory) and final quantity

  • img : imagen url (discord or imgur)

  • ingredients: Here you can add as many ingredients as you wish

  • priceDelivery : Final payment if shipment is successfully completed

Remember to respect the number of the recipe, this number must be indicated in the "recipes" section of each still so that it appears correctly in the creation menu.

Last updated