Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
651
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.55 KB | None | 0 0
  1. zpizmak = zpizmak || {}
  2. zpizmak.config = zpizmak.config || {}
  3. ////////////////////////////////////////////////////////////////////////////////
  4.  
  5. // Bought by 76561198868637212
  6. // Version 1.1.3
  7.  
  8. ////////////////////////////////////////////////////////////////////////////////
  9. // Developed by ZeroChain:
  10. // http://steamcommunity.com/id/zerochain/
  11. // https://www.gmodstore.com/users/view/76561198013322242
  12.  
  13. // If you wish to contact me:
  14. // clemensproduction@gmail.com
  15.  
  16. ////////////////////////////////////////////////////////////////////////////////
  17. //////////////BEFORE YOU START BE SURE TO READ THE README.TXT///////////////////
  18. ////////////////////////////////////////////////////////////////////////////////
  19.  
  20.  
  21. // Misc
  22. ///////////////////////
  23. // This enables fast download
  24. zpizmak.config.EnableResourceAddfile = false
  25.  
  26. // What language do we want? en,de,fr,pl,pt,cn
  27. zpizmak.config.selectedLanguage = "fr"
  28.  
  29. // What gamemode are we using
  30. zpizmak.config.selectedGamemode = "DarkRP"
  31. // DarkRP
  32. // BaseWars
  33.  
  34. // These Ranks are allowed do use the save command  !savepizzamaker
  35. // If xAdmin is installed then this table gets ignored
  36. zpizmak.config.allowedRanks = {"superadmin"}
  37.  
  38. // The Currency
  39. zpizmak.config.Currency = "€"
  40.  
  41. // This defines how much health a entity has, Set it to -1 to disable it
  42. zpizmak.config.Damage = {
  43.     ["zpizmak_fridge"] = -1,
  44.     ["zpizmak_oven"] = -1,
  45.     ["zpizmak_opensign"] = -1
  46. }
  47.  
  48. // This will turn the Health the Player receives when eating a Pizza to Energy for the HungerMod
  49. zpizmak.config.UseHungermod = true
  50.  
  51. // Do we want the Health do stop at the Pizza HealthCap?
  52. zpizmak.config.HealthCap = true
  53.  
  54. // This will remove the Owner checks so everyone can use the Players Equipment
  55. zpizmak.config.EquipmentSharing = false
  56. //*Note This needs do be true if you save the Equipment for the Map via !savepizzamaker in chat or zpizmak_savepublicentities in console
  57.  
  58. // Here you can add all the Jobs that are allowed do interact with the Fridge, Oven and OpenSign
  59. zpizmak.config.JobRestriction = {"Cuisinier"}
  60. //*Note Leave empty do disable the JobRestriction
  61.  
  62. // This will spawn the Money from the Open Sign as Entity instead of sending it direct too the Owner
  63. zpizmak.config.RevenueSpawn = false
  64. // Only works in DarkRP at the moment
  65. ///////////////////////
  66.  
  67.  
  68. // Fridge Shop
  69. ///////////////////////
  70. // This Sets up our Fridge Shop and also the available Ingredients for Pizza
  71. zpizmak.config.Ingredients = {
  72.    [1] = {
  73.         Name = "Pâte",
  74.         Model = "models/zerochain/props_pizza/zpizmak_pizzadough.mdl",
  75.         Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_dough.png", "smooth"),
  76.         Desc = "La pâte à Pizza de base",
  77.         Price = 30,
  78.     },
  79.     [2] = {
  80.         Name = "SauceTomate",
  81.         Model = "models/zerochain/props_pizza/zpizmak_ingredient_tomato.mdl",
  82.         Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_tomato.png", "smooth"),
  83.         Desc = "Sauce tomate de bonne qualité",
  84.         Price = 30,
  85.         iColor = Color(200,0,0),
  86.     },
  87.     [3] = {
  88.         Name = "Fromage",
  89.         Model = "models/zerochain/props_pizza/zpizmak_ingredient_cheese.mdl",
  90.         Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_cheese.png", "smooth"),
  91.         Desc = "Fromage frais",
  92.         Price = 30,
  93.         iColor = Color(252,223,118),
  94.     },
  95.     [4] = {
  96.         Name = "Epinards",
  97.         Model = "models/zerochain/props_pizza/zpizmak_ingredient_spinat.mdl",
  98.         Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_spinat.png", "smooth"),
  99.         Desc = "Peu savoureux mais très utile",
  100.         Price = 30,
  101.         iColor = Color(139,164,60),
  102.     },
  103.     [5] = {
  104.         Name = "Salami",
  105.         Model = "models/zerochain/props_pizza/zpizmak_ingredient_salami.mdl",
  106.         Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_salami.png", "smooth"),
  107.         Desc = "Salami gouteux et de bonne qualité",
  108.         Price = 30,
  109.         iColor = Color(131,23,29),
  110.     },
  111.     [6] = {
  112.         Name = "Olives",
  113.         Model = "models/zerochain/props_pizza/zpizmak_ingredient_olives.mdl",
  114.         Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_olive.png", "smooth"),
  115.         Desc = "Des olives venus de Provence",
  116.         Price = 30,
  117.         iColor = Color(156,155,34),
  118.     },
  119.     [7] = {
  120.         Name = "Aubergine",
  121.         Model = "models/zerochain/props_pizza/zpizmak_ingredient_eggplant.mdl",
  122.         Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_eggplant.png", "smooth"),
  123.         Desc = "Aubergine fraiche",
  124.         Price = 30,
  125.         iColor = Color(90,14,94),
  126.     },
  127.     [8] = {
  128.         Name = "Chili",
  129.         Model = "models/zerochain/props_pizza/zpizmak_ingredient_chilli.mdl",
  130.         Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_chilli.png", "smooth"),
  131.         Desc = "Chili mexicain assez épicé",
  132.         Price = 30,
  133.         iColor = Color(255,57,57),
  134.     },
  135.     [9] = {
  136.         Name = "Cornichon",
  137.         Model = "models/zerochain/props_pizza/zpizmak_ingredient_pickle.mdl",
  138.         Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_pickle.png", "smooth"),
  139.         Desc = "Cornichon frais",
  140.         Price = 30,
  141.         iColor = Color(25,31,19),
  142.     },
  143.     [10] = {
  144.         Name = "Champignons",
  145.         Model = "models/zerochain/props_pizza/zpizmak_ingredient_mushroom.mdl",
  146.         Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_mushroom.png", "smooth"),
  147.         Desc = "Champignons blanc prêt à être cuisiner",
  148.         Price = 30,
  149.         iColor = Color(249,220,178),
  150.     },
  151.     [11] = {
  152.         Name = "Ananas",
  153.         Model = "models/zerochain/props_pizza/zpizmak_ingredient_pineapple.mdl",
  154.         Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_pineapple.png", "smooth"),
  155.         Desc = "Ananas de très bonne qualité",
  156.         Price = 30,
  157.         iColor = Color(238,175,74),
  158.     },
  159.     [12] = {
  160.         Name = "Oeuf",
  161.         Model = "models/props_phx/misc/egg.mdl",
  162.         Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_egg.png", "smooth"),
  163.         Desc = "Oeuf pondu avec amour",
  164.         Price = 30,
  165.         iColor = Color(229,229,229),
  166.     },
  167.     [13] = {
  168.         Name = "Bacon",
  169.         Model = "models/zerochain/props_pizza/zpizmak_ingredient_bacon.mdl",
  170.         Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_bacon.png", "smooth"),
  171.         Desc = "Bacon pur porc",
  172.         Price = 30,
  173.         iColor = Color(118,29,33),
  174.     },
  175. }
  176.  
  177. // The Limit each fridge can spawn in
  178. zpizmak.config.Ingredient_Limit = 6
  179.  
  180. // How long until the ingredient despawn, -1 disables this function
  181. zpizmak.config.Ingredient_Despawn = 60 //seconds
  182. ///////////////////////
  183.  
  184.  
  185. // Pizza Recipes
  186. ///////////////////////
  187. // All the Pizzas
  188. zpizmak.config.Pizzas = {
  189.     [1] = {
  190.         Name = "Magarita",
  191.         Recipe = {SauceTomate = 1,Fromage = 1}, // The Ingredients needed.
  192.         BakeTime = 10, // The Time in seconds the Pizza needs do be Baked
  193.         Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl", // This can stay the same for every Pizza
  194.         Desc = "A basic Pizza!",
  195.         Price = 70, // This Value gets added to the Ingredients Cost
  196.         PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_magarita.png", "smooth"), // How should the Pizza look when its done
  197.         SpawnChance = 50, // How high is the Chance that this Pizza gets choosen by a Customer (1-100)
  198.         ConsumHealth = 50, // How much Health gets the Player if he eats the Pizza
  199.     },
  200.     [2] = {
  201.         Name = "Pizza Epinards",
  202.         Recipe = {SauceTomate = 1,Fromage = 1,Epinards = 2},
  203.         BakeTime = 15,
  204.         Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
  205.         Desc = "A really Green Pizza!",
  206.         Price = 120,
  207.         PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_spinat.png", "smooth"),
  208.         SpawnChance = 25,
  209.         ConsumHealth = 50,
  210.     },
  211.     [3] = {
  212.         Name = "Pizza Salami",
  213.         Recipe = {SauceTomate = 1,Fromage = 1,Salami = 2},
  214.         BakeTime = 15,
  215.         Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
  216.         Desc = "A Donkey Pizza!",
  217.         Price = 120,
  218.         PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_salami.png", "smooth"),
  219.         SpawnChance = 10,
  220.         ConsumHealth = 50,
  221.     },
  222.     [4] = {
  223.         Name = "Pizza Olive",
  224.         Recipe = {SauceTomate = 1,Fromage = 1,Olives = 3},
  225.         BakeTime = 20,
  226.         Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
  227.         Desc = "A Italiano Pizza!",
  228.         Price = 120,
  229.         PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_olivia.png", "smooth"),
  230.         SpawnChance = 10,
  231.         ConsumHealth = 50,
  232.     },
  233.     [5] = {
  234.         Name = "Grande Pizza",
  235.         Recipe = {SauceTomate = 1,Fromage = 1,Salami = 1,Olives = 1, Aubergine = 1,Epinards = 1,Cornichon = 1},
  236.         BakeTime = 120,
  237.         Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
  238.         Desc = "A Big Pizza!",
  239.         Price = 150,
  240.         PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_grande.png", "smooth"),
  241.         SpawnChance = 5,
  242.         ConsumHealth = 100,
  243.     },
  244.     [6] = {
  245.         Name = "Pizza Bacon",
  246.         Recipe = {SauceTomate = 1,Fromage = 1,Bacon = 2},
  247.         BakeTime = 25,
  248.         Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
  249.         Desc = "Bacon!",
  250.         Price = 120,
  251.         PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_bacon.png", "smooth"),
  252.         SpawnChance = 10,
  253.         ConsumHealth = 50,
  254.     },
  255.     [7] = {
  256.         Name = "Pizza Oeuf",
  257.         Recipe = {SauceTomate = 1,Fromage = 1,Oeuf = 1,Chili = 1,Bacon = 1},
  258.         BakeTime = 25,
  259.         Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
  260.         Desc = "Eggs and more Eggs.",
  261.         Price = 120,
  262.         PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_egg.png", "smooth"),
  263.         SpawnChance = 10,
  264.         ConsumHealth = 50,
  265.     },
  266.     [8] = {
  267.         Name = "Pizza Champignons",
  268.         Recipe = {SauceTomate = 1,Fromage = 1,Epinards = 1,Chili = 1,Champignons = 1},
  269.         BakeTime = 25,
  270.         Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
  271.         Desc = "Dont gets you High.",
  272.         Price = 120,
  273.         PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_mushroom.png", "smooth"),
  274.         SpawnChance = 10,
  275.         ConsumHealth = 50,
  276.     },
  277.     [9] = {
  278.         Name = "Hawaïenne",
  279.         Recipe = {SauceTomate = 1,Fromage = 2,Ananas = 1},
  280.         BakeTime = 30,
  281.         Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
  282.         Desc = "Tropical Taste!",
  283.         Price = 120,
  284.         PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_hawai.png", "smooth"),
  285.         SpawnChance = 10,
  286.         ConsumHealth = 50,
  287.     },
  288.     [10] = {
  289.         Name = "Fromagère",
  290.         Recipe = {SauceTomate = 1,Fromage = 3},
  291.         BakeTime = 30,
  292.         Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
  293.         Desc = "A cheese Pizza!",
  294.         Price = 120,
  295.         PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_cheese.png", "smooth"),
  296.         SpawnChance = 10,
  297.         ConsumHealth = 50,
  298.     },
  299. }
  300. ///////////////////////
  301.  
  302.  
  303. // Pizza Oven
  304. ///////////////////////
  305. // How much time till the Pizza got Burned
  306. zpizmak.config.PizzaBurnTime = 20
  307.  
  308. ///////////////////////
  309.  
  310.  
  311. // Customers
  312. ///////////////////////
  313. // Some Data for our customers
  314. zpizmak.config.Customers = {
  315.     [1] = {
  316.         Model = "models/Humans/Group01/male_07.mdl", // The Customer Model
  317.         SitAnim = {"silo_sit"}, // The Customer Sit Animations
  318.         ServAnim = {"cheer1", "cheer2"} // The Customer gets Pizza Animations
  319.     },
  320.     [2] = {
  321.         Model = "models/Humans/Group01/male_08.mdl",
  322.         SitAnim = {"sitchair1", "silo_sit"},
  323.         ServAnim = {"cheer1", "cheer2"}
  324.     },
  325.     [3] = {
  326.         Model = "models/Humans/Group01/male_09.mdl",
  327.         SitAnim = {"silo_sit"},
  328.         ServAnim = {"cheer1", "cheer2"}
  329.     },
  330.     [4] = {
  331.         Model = "models/Humans/Group01/Female_01.mdl",
  332.         SitAnim = {"sitchair1", "silo_sit"},
  333.         ServAnim = {"cheer1", "heal"}
  334.     },
  335.     [5] = {
  336.         Model = "models/Humans/Group01/Female_02.mdl",
  337.         SitAnim = {"sitchair1", "silo_sit"},
  338.         ServAnim = {"cheer1", "heal"}
  339.     },
  340.     [6] = {
  341.         Model = "models/Humans/Group01/Female_03.mdl",
  342.         SitAnim = {"sitchair1", "silo_sit"},
  343.         ServAnim = {"cheer1", "heal"}
  344.     },
  345.     [7] = {
  346.         Model = "models/Humans/Group01/Male_01.mdl",
  347.         SitAnim = {"silo_sit"},
  348.         ServAnim = {"cheer1", "cheer2"}
  349.     },
  350.     [8] = {
  351.         Model = "models/alyx.mdl",
  352.         SitAnim = {"d1_t03_sit_bed"},
  353.         ServAnim = {"cheer1", "heal"}
  354.     },
  355.     [9] = {
  356.         Model = "models/gman_high.mdl",
  357.         SitAnim = {"silo_sit"},
  358.         ServAnim = {"tiefidget", "lintpick"}
  359.     },
  360.     [10] = {
  361.         Model = "models/Kleiner.mdl",
  362.         SitAnim = {"silo_sit"},
  363.         ServAnim = {"heal"}
  364.     }
  365. }
  366.  
  367. // How much does the player gets payed if he delivers a burned pizza
  368. zpizmak.config.Customer_BurnedPizzaPenalty = 0.2 //20%
  369.  
  370. // The Interval at which new customers get spawned
  371. zpizmak.config.Customer_RespawnRate = 20
  372.  
  373. // How many Customers can one Player have at once
  374. zpizmak.config.Customer_Limit = 3
  375.  
  376. // Time in seconds we add to the bake time of the pizza for the Customer do wait.
  377. zpizmak.config.Customer_ExtraWaitTime = 100
  378.  
  379. ///////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement