Page cover

🍹Prepare Drinks

  • You can define drinks that are available to craft at each restaurant and categories of items in the prepareDrinks.lua file

  • The first key is the restaurant name

  • The second key is the category name you can have as many as you like

  • The third key is the craftable item name you can have as many as you like

  • You must define items that are required as the recipe for the craftable item

  • You can set the item to be removed or not for things like a knife or frying pan

You can set the craft to have either a skill check or progressCircle or both by defining the relevant tables

progress = {
    duration = 5000, -- this is multiplied by the amount the player chooses to process
    label = 'Pouring Drink..', -- label for progressCircle
},
skillCheck = { -- skillCheck settings can be removed if you wish and it will just use the progressCircle instead
    --{'easy', 'easy', {areaSize = 60, speedMultiplier = 2}, 'hard'}, {'w', 'a', 's', 'd'}, -- this is abit more difficult than the default one if you wish to use this instead
    {'easy', 'easy', 'easy'}, {'e'},
},
Config.PrepareDrinks = {
    ['My New Restaurant Name'] = {--the key is the restuarant name
        ['Hot Drinks'] = { -- this is the category name and this contains the list of craftable items
            ['coffee'] = { -- this is the item name
                recipe = { -- this is a table of items required to make the item name above
                    { name = 'hotdrinkscup', amount = 1, remove = true, },
                    { name = 'coffeebeans', amount = 1, remove = true, },
                },
                returned = {--return amounts for crafting the item
                    amount = 1,
                },
                progress = {
                    duration = 5000, -- this is multiplied by the amount the player chooses to process
                    label = 'Pouring coffee..', -- label for progressCircle
                },
                skillCheck = { -- skillCheck settings can be removed if you wish and it will just use the progressCircle instead
                    --{'easy', 'easy', {areaSize = 60, speedMultiplier = 2}, 'hard'}, {'w', 'a', 's', 'd'}, -- this is abit more difficult than the default one if you wish to use this instead
                    {'easy', 'easy', 'easy'}, {'e'},
                },
                anim = {
                    dict = 'amb@prop_human_parking_meter@female@base', -- name of anim dict used (set to nil if using scenario instead)
                    anim = 'base_female', -- name of anim used (set to nil if using scenario instead)
                    flag = 41,  -- flag number
                    props = { -- prop settings
                        {
                            model = nil,  -- name of prop model used (set to nil if using scenario instead)
                            bone = nil, -- bone index used (set to nil if using scenario instead)
                            pos = nil, -- vec3 value for prop position (set to nil if using scenario instead)
                            rot = nil, -- vec3 value for prop rotation (set to nil if using scenario instead)
                        },
                    },
                },
            },
            --other items
        }, 
        ['Smoothies'] = { -- this is the category name and this contains the list of craftable items
            ['applesmoothie'] = { -- this is the item name
                recipe = { -- this is a table of items required to make the item name above
                    { name = 'softdrinkscup', amount = 1, remove = true, },
                    { name = 'applesyrup', amount = 1, remove = true, },
                },
                returned = {--return amounts for crafting the item
                    amount = 1,
                },
                progress = {
                    duration = 5000, -- this is multiplied by the amount the player chooses to process
                    label = 'Pouring milkshake..', -- label for progressCircle
                },
                anim = {
                    dict = 'amb@prop_human_parking_meter@female@base', -- name of anim dict used (set to nil if using scenario instead)
                    anim = 'base_female', -- name of anim used (set to nil if using scenario instead)
                    flag = 41,  -- flag number
                    props = { -- prop settings
                        {
                            model = nil,  -- name of prop model used (set to nil if using scenario instead)
                            bone = nil, -- bone index used (set to nil if using scenario instead)
                            pos = nil, -- vec3 value for prop position (set to nil if using scenario instead)
                            rot = nil, -- vec3 value for prop rotation (set to nil if using scenario instead)
                        },
                    },
                },
            },
            --other items
        },
        --other categories
    },
    --add more restaurants as required
}

Last updated