Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SILCOOK = SILCOOK or {}
- SILCOOK.Config = SILCOOK.Config or {}
- --[[-------------------------------------------------------------------------
- ===[ EXPLANATION OF REWARDS SYSTEM ]===
- There are four things that your recipe can give the player.
- 1) A cook_food entity.
- 2) A cook_ingredient entity.
- 3) A custom entity.
- 4) Money
- These four require a different configuration.
- You will find examples of the configuration methods in the same order as above below:
- 1)
- food = {
- model = "models/foodnhouseholditems/burgersims2.mdl", -- Model of the entity
- hunger = 25, -- Hunger given
- },
- 2)
- food = { "cook_ingredient", "INGREDIENT NAME" } -- Must exit in cook_config.lua
- 3)
- food = "CLASSNAME" -- Replace "CLASSNAME" with your desired entity's class.
- 4)
- food = 100 -- Replace "100" with your desired money amount given upon the recipe's completion.
- ---------------------------------------------------------------------------]]
- SILCOOK.Config.Recipes = {
- ["Cheeseburger"] = { -- This is the name of your recipe.
- ingredients = { -- Add your ingredients under this table.
- ["Bread Slice"] = 2, -- Enter the name of your ingredient or class name as designated in the cook_config.lua ingredient configuration and the amount required.
- ["Cheese"] = 1, -- The amount required MUST be a multiple of the amount given by the ingredient or else it will be impossible to cook/bake this.
- ["Lettuce"] = 2,
- ["Raw Beef"] = 2,
- ["Ketchup"] = 1,
- --["sent_ball"] = 2, -- Example of a custom entity as an ingredient
- },
- cookedEnough = { 15, 30 }, -- Minimum & maximum time for the recipe to be cooked in order to give out the correct reward instead of mush.
- cookers = { "cook_pot" }, -- Table of the cooking devices that this will work on. Currently there is only "cook_pot" and "cook_tray", for the cooking pot & baking tray.
- food = { -- Explained above
- model = "models/foodnhouseholditems/burgersims2.mdl",
- hunger = 40,
- },
- },
- ["Double Cheeseburger"] = {
- ingredients = {
- ["Bread"] = 3,
- ["Cheese"] = 2,
- ["Lettuce"] = 6,
- ["Raw Beef"] = 4,
- ["Ketchup"] = 2,
- },
- cookedEnough = function( time, ply ) -- Example of a function cookedEnough configuration.
- return ( time >= 30 and time < 45 )
- end,
- cookers = { "cook_pot" },
- food = {
- model = "models/foodnhouseholditems/mcdburger.mdl",
- hunger = 80,
- },
- },
- ["Meth"] = {
- ingredients = {
- ["Lighter Fluid"] = 6,
- ["Methylamine"] = 5,
- ["sent_ball"] = 2,
- },
- cookedEnough = { 30, 40 },
- cookers = { "cook_pot" },
- food = 1000, -- Example of a money payout
- },
- ["Turkey"] = {
- ingredients = {
- ["Raw Turkey"] = 1,
- ["Lettuce"] = 3,
- },
- cookedEnough = { 15, 30 },
- cookers = { "cook_tray" },
- food = {
- model = "models/foodnhouseholditems/turkey2.mdl",
- hunger = 100,
- },
- },
- ["Vanilla Cake"] = {
- ingredients = {
- ["Egg"] = 3,
- ["Flour"] = 2,
- ["Vanilla Frosting"] = 4,
- ["Milk"] = 2,
- },
- cookedEnough = { 285, 315 },
- cookers = { "cook_tray" },
- food = {
- model = "models/foodnhouseholditems/cake.mdl",
- hunger = 100,
- }
- },
- ["Chocolate Cake"] = {
- ingredients = {
- ["Egg"] = 3,
- ["Flour"] = 2,
- ["Chocolate Frosting"] = 4,
- ["Milk"] = 2,
- },
- cookedEnough = { 285, 315 },
- cookers = { "cook_tray" },
- food = {
- model = "models/foodnhouseholditems/cake_b.mdl",
- hunger = 100,
- }
- },
- ["Pancake"] = {
- ingredients = {
- ["Flour"] = 1,
- ["Salt"] = 1,
- ["Sugar"] = 2,
- ["Egg"] = 1,
- },
- cookedEnough = { 50, 70 },
- cookers = { "cook_pot" },
- food = {
- model = "models/foodnhouseholditems/pancake.mdl",
- hunger = 20,
- }
- },
- ["Bunch of Pancakes"] = {
- ingredients = {
- ["Flour"] = 3,
- ["Salt"] = 3,
- ["Sugar"] = 6,
- ["Egg"] = 3,
- },
- cookedEnough = { 170, 190 },
- cookers = { "cook_pot" },
- food = {
- model = "models/foodnhouseholditems/pancake.mdl",
- hunger = 60,
- }
- },
- ["Steak"] = {
- ingredients = {
- ["Raw Steak"] = 1,
- ["Salt"] = 1,
- },
- cookedEnough = { 110, 130 },
- cookers = { "cook_tray" },
- food = {
- model = "models/foodnhouseholditems/steak2.mdl",
- hunger = 60,
- }
- },
- ["Lobster"] = {
- ingredients = {
- ["Raw Lobster"] = 1,
- ["Salt"] = 1,
- },
- cookedEnough = { 110, 130 },
- cookers = { "cook_tray" },
- fook = {
- model = "models/foodnhouseholditems/lobster2.mdl",
- hunger = 60,
- },
- },
- ["Pizza"] = {
- ingredients = {
- ["Cheese"] = 3,
- ["Dough"] = 3,
- ["Flour"] = 2,
- ["Ketchup"] = 3,
- },
- cookedEnough = { 170, 190 },
- cookers = { "cook_tray" },
- fook = {
- model = "models/foodnhouseholditems/pizza.mdl",
- hunger = 40,
- },
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement