Advertisement
Guest User

Untitled

a guest
Dec 24th, 2021
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. if not SERVER then return end
  2.  
  3. // Here are some Hooks you can use for Custom Code
  4.  
  5. // Called when the player sells a Pizza
  6. hook.Add("zpiz_OnPizzaSold", "zpiz_OnPizzaSold_Test", function(ply, earning, pizzaID, isburned)
  7. /*
  8. if IsValid(ply) then
  9. print("-----------")
  10. print(ply)
  11. print(earning)
  12. print(pizzaID)
  13. print(isburned)
  14. print("-----------")
  15. end
  16. */
  17. end)
  18.  
  19. // Called when a pizza got finished baking in the oven
  20. hook.Add("zpiz_OnPizzaReady", "zpiz_OnPizzaReady_Test", function(pizza, pizzaowner, pizzaID, oven)
  21. /*
  22. print("-----------")
  23. print(pizza)
  24. print(pizzaowner)
  25. print(pizzaID)
  26. print(oven)
  27. print("-----------")
  28. */
  29. end)
  30.  
  31. // Called when a pizza gets burned
  32. hook.Add("zpiz_OnPizzaBurned", "zpiz_OnPizzaBurned_Test", function(pizza, pizzaowner, pizzaID)
  33. /*
  34. print("-----------")
  35. print(pizza)
  36. print(pizzaowner)
  37. print(pizzaID)
  38. print("-----------")
  39. */
  40. end)
  41.  
  42.  
  43.  
  44. // Called when a player eats a Oizza
  45. hook.Add("zpiz_OnPizzaEaten", "zpiz_OnPizzaEaten_Test", function(ply, pizzaID)
  46. /*
  47. print("-----------")
  48. print(ply)
  49. print(pizzaID)
  50. print("-----------")
  51. */
  52. end)
  53.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement