Page cover

πŸ₯™Prepare Foods

  • You can define food items that are available to craft at each restaurant and categories of items in the prepareFoods.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 = 'Preparing burger..', -- 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.PrepareFoods = {
    ['My New Restaurant Name'] = {--the key is the restuarant name
        ['Grill'] = { -- this is the category name and this contains the list of craftable items
            ['hamburger'] = { -- this is the item name
                recipe = { -- this is a table of items required to make the item name above
                    { name = 'slicedburgerbun', amount = 1, remove = true, },
                    { name = 'burgersauce', amount = 1, remove = true, },
                    { name = 'slicedtomato', amount = 1, remove = true, },
                    { name = 'slicedonion', amount = 1, remove = true, },
                    { name = 'slicedpickles', amount = 1, remove = true, },
                    { name = 'burgerpatty', 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
                },
                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
        }, 
        ['Fryer'] = { -- this is the category name and this contains the list of craftable items
            ['cookedfries'] = { -- this is the item name
                recipe = { -- this is a table of items required to make the item name above
                    { name = 'rawfries', 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 = 'Cooking fries..', -- label for progressCircle
                },
                skillCheck = { -- skillCheck settings once progressCircle is complete to determine if the player was successful pouring the drink
                    --{'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
        },
        --other categories
    },
    --add more restaurants as required
}

Last updated