Advertisement
Zaktak

Custom Entites

Feb 12th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.53 KB | None | 0 0
  1. ----------------BOUNTY HUNTER ROCKET BOOTS---------------------
  2.  
  3. DarkRP.createEntity("Rocket Boots", {
  4.     ent = "wt_rocketboots",
  5.     model = "models/props_c17/briefcase001a.mdl",
  6.     price = 100,
  7.     max = 1,
  8.     cmd = "buyrocketboots",
  9.     category = "Rocket Boots",
  10.     allowed = {TEAM_BH},
  11.     customCheck = function(ply) return
  12.         table.HasValue({TEAM_BH}, ply:Team())
  13.     end,
  14.     CustomCheckFailMsg = "This is for Bounty Hunters only!",
  15. })
  16.  
  17. DarkRP.createEntity("Rocket Boots Remover", {
  18.     ent = "wt_rocketboots_remover",
  19.     model = "models/props_c17/briefcase001a.mdl",
  20.     price = 100,
  21.     max = 1,
  22.     cmd = "buyrocketbootsremover",
  23.     category = "Rocket Boots",
  24.     allowed = {TEAM_BH},
  25.     customCheck = function(ply) return
  26.         table.HasValue({TEAM_BH}, ply:Team())
  27.     end,
  28.     CustomCheckFailMsg = "This is for Bounty Hunters only!",
  29. })
  30.  
  31. ------------ FOOD ---------------
  32.  
  33. DarkRP.createEntity("Cheese Pizza", {
  34.     ent = "food_cheesepizza",
  35.     model = "models/cheesepizza01/cheesepizza01.mdl",
  36.     price = 100,
  37.     max = 1,
  38.     cmd = "buycheesepizza",
  39.     category = "Food",
  40.     allowed = {TEAM_CANTINAWORKER},
  41.     customCheck = function(ply) return
  42.         table.HasValue({TEAM_CANTINAWORKER}, ply:Team())
  43.     end,
  44.     CustomCheckFailMsg = "This is for Cantine only!",
  45. })
  46.  
  47. DarkRP.createEntity("Mac n' Cheese", {
  48.     ent = "food_macncheese",
  49.     model = "models/alfredo01/alfredo01.mdl",
  50.     price = 100,
  51.     max = 1,
  52.     cmd = "buymacheese",
  53.     category = "Food",
  54.     allowed = {TEAM_CANTINAWORKER},
  55.     customCheck = function(ply) return
  56.         table.HasValue({TEAM_CANTINAWORKER}, ply:Team())
  57.     end,
  58.     CustomCheckFailMsg = "This is for Cantine only!",
  59. })
  60.  
  61. DarkRP.createEntity("Chocolate Shake", {
  62.     ent = "food_shake",
  63.     model = "models/chocolateshake01/chocolateshake01.mdl",
  64.     price = 50,
  65.     max = 1,
  66.     cmd = "buychocolateshake",
  67.     category = "Food",
  68.     allowed = {TEAM_CANTINAWORKER},
  69.     customCheck = function(ply) return
  70.         table.HasValue({TEAM_CANTINAWORKER}, ply:Team())
  71.     end,
  72.     CustomCheckFailMsg = "This is for Cantine only!",
  73. })
  74.  
  75. DarkRP.createEntity("Burger And Fries", {
  76.     ent = "food_burger",
  77.     model = "models/burgerplate01/burgerplate01.mdl",
  78.     price = 50,
  79.     max = 1,
  80.     cmd = "buyburgerandfries",
  81.     category = "Food",
  82.     allowed = {TEAM_CANTINAWORKER},
  83.     customCheck = function(ply) return
  84.         table.HasValue({TEAM_CANTINAWORKER}, ply:Team())
  85.     end,
  86.     CustomCheckFailMsg = "This is for Cantine only!",
  87. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement