SHARE
TWEET

Untitled

a guest May 19th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[---------------------------------------------------------------------------
  2. DarkRP custom entities
  3. ---------------------------------------------------------------------------
  4.  
  5. This file contains your custom entities.
  6. This file should also contain entities from DarkRP that you edited.
  7.  
  8. Note: If you want to edit a default DarkRP entity, first disable it in darkrp_config/disabled_defaults.lua
  9.     Once you've done that, copy and paste the entity to this file and edit it.
  10.  
  11. The default entities can be found here:
  12. https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua#L111
  13.  
  14. For examples and explanation please visit this wiki page:
  15. http://wiki.darkrp.com/index.php/DarkRP:CustomEntityFields
  16.  
  17. Add entities under the following line:
  18. ---------------------------------------------------------------------------]]
  19. DarkRP.createEntity("Bitminer Light", {
  20.     ent = "bit_miner_light",
  21.     model = "models/BITMINER/BitMinerLight.mdl",
  22.     price = 15000,
  23.     max = 2,
  24.     cmd = "MinerLight",
  25.     allowed = {TEAM_BITCOINMINER, TEAM_STAFFONDUTY},
  26.     category = "Bitminers"
  27. })
  28.  
  29. DarkRP.createEntity("Bitminer Standard", {
  30.     ent = "bit_miner_medium",
  31.     model = "models/BITMINER/BitMinerMedium.mdl",
  32.     price = 30000,
  33.     max = 1,
  34.     cmd = "MinerStandard",
  35.     allowed = {TEAM_BITCOINMINER, TEAM_STAFFONDUTY},
  36.     category = "Bitminers"
  37. })
  38.  
  39. DarkRP.createEntity("Bitminer Pro", {
  40.     ent = "bit_miner_heavy",
  41.     model = "models/BITMINER/BitMinerHeavy.mdl",
  42.     price = 300000,
  43.     max = 1,
  44.     cmd = "MinerPro",
  45.     allowed = {TEAM_BITCOINMINER, TEAM_STAFFONDUTY},
  46.     category = "Bitminers"
  47. })
  48.  
  49. DarkRP.createEntity("Donator Bitminer Pro", {
  50.     ent = "bit_miner_heavy",
  51.     model = "models/BITMINER/BitMinerHeavy.mdl",
  52.     price = 300000,
  53.     max = 1,
  54.     cmd = "DonatorMinerPro",
  55.     category = "Donator Bitminers",
  56.     customCheck = function(ply) return CLIENT or
  57.         table.HasValue({"trialmoderator", "moderator", "admin", "headadmin", "headmoderator", "staffmanager", "servermanager", "superadmin", "prime", "elite", "eventmanager", "adminplus", "moderatorplus", "operator"}, ply:GetNWString("usergroup"))
  58.     end,
  59.     CustomCheckFailMsg = "This bitminer is for Prime/Elite only!",
  60. })
  61.  
  62. local maxPrinters = 4
  63. local commands = {
  64.     "basicprinter",
  65.     "goldprinter",
  66.     "diamondprinter",
  67.     "emeraldprinter",
  68.     "sapphireprinter",
  69.     "rubyprinter",
  70.     "nuclearprinter",
  71.     // ADD ALL YOUR PRINTERS (DEFINED CHAT COMMANDS OF THEM!)
  72. }
  73. function canGetPrinter(ply)
  74.     local printers = 0
  75.     for i=1, #commands do
  76.         if ply:customEntityLimitReached({cmd = commands[i], max = 1}) then
  77.             printers = printers + 1
  78.         end
  79.     end
  80.     if printers >= maxPrinters then return false end
  81.     return true
  82. end
  83.  
  84. DarkRP.createEntity("Basic Printer", {
  85.     ent = "moneyprinter_basic",
  86.     model = "models/props_c17/consolebox01a.mdl",
  87.     price = 25000,
  88.     max = 1,
  89.     cmd = "basicprinter",
  90.     category = "Printers",
  91.     customCheck = function(ply) return CLIENT or canGetPrinter(ply) end,
  92.     CustomCheckFailMsg = "You already have 4 printers!",
  93. })
  94.  
  95. DarkRP.createEntity("Gold Printer", {
  96.     ent = "moneyprinter_gold",
  97.     model = "models/props_c17/consolebox01a.mdl",
  98.     price = 35000,
  99.     max = 1,
  100.     cmd = "goldprinter",
  101.     category = "Printers",
  102.     customCheck = function(ply) return CLIENT or canGetPrinter(ply) end,
  103.     CustomCheckFailMsg = "You already have 4 printers!",
  104. })
  105.  
  106. DarkRP.createEntity("Diamond Printer", {
  107.     ent = "moneyprinter_diamond",
  108.     model = "models/props_c17/consolebox01a.mdl",
  109.     price = 60000,
  110.     max = 1,
  111.     cmd = "diamondprinter",
  112.     category = "Printers",
  113.     customCheck = function(ply) return CLIENT or canGetPrinter(ply) end,
  114.     CustomCheckFailMsg = "You already have 4 printers!",
  115. })
  116.  
  117. DarkRP.createEntity("Emerald Printer", {
  118.     ent = "moneyprinter_emerald",
  119.     model = "models/props_c17/consolebox01a.mdl",
  120.     price = 100000,
  121.     max = 1,
  122.     cmd = "emeraldprinter",
  123.     category = "Printers",
  124.     customCheck = function(ply)
  125.         if CLIENT then return true end
  126.         if !canGetPrinter(ply) then return false end
  127.         if !table.HasValue({"trialmoderator", "moderator", "admin", "headadmin", "headmoderator", "staffmanager", "servermanager", "superadmin", "prime", "elite", "eventmanager", "adminplus", "moderatorplus", "operator", "vip", "prestige"}, ply:GetNWString("usergroup")) then return false end
  128.         return true
  129.     end,
  130.     CustomCheckFailMsg = function(ply)
  131.         if canGetPrinter(ply) then
  132.             return "This printer is for VIP/Prime/Elite/Prestige only!"
  133.         else
  134.             return "You already have 4 printers"
  135.         end
  136.     end,
  137. })
  138.  
  139. DarkRP.createEntity("Sapphire Printer", {
  140.     ent = "moneyprinter_sapphire",
  141.     model = "models/props_c17/consolebox01a.mdl",
  142.     price = 175000,
  143.     max = 1,
  144.     cmd = "sapphireprinter",
  145.     category = "Printers",
  146.     customCheck = function(ply)
  147.         if CLIENT then return true end
  148.         if !canGetPrinter(ply) then return false end
  149.         if !table.HasValue({"trialmoderator", "moderator", "admin", "headadmin", "headmoderator", "staffmanager", "servermanager", "superadmin", "prime", "elite", "eventmanager", "adminplus", "moderatorplus", "operator", "prestige"}, ply:GetNWString("usergroup")) then return false end
  150.         return true
  151.     end,
  152.     CustomCheckFailMsg = function(ply)
  153.         if canGetPrinter(ply) then
  154.             return "This printer is for Prime/Elite/Prestige only!"
  155.         else
  156.             return "You already have 4 printers"
  157.         end
  158.     end,
  159. })
  160.  
  161. DarkRP.createEntity("Ruby Printer", {
  162.     ent = "moneyprinter_ruby",
  163.     model = "models/props_c17/consolebox01a.mdl",
  164.     price = 225000,
  165.     max = 1,
  166.     cmd = "rubyprinter",
  167.     category = "Printers",
  168.     customCheck = function(ply)
  169.         if CLIENT then return true end
  170.         if !canGetPrinter(ply) then return false end
  171.         if !table.HasValue({"trialmoderator", "moderator", "admin", "headadmin", "headmoderator", "staffmanager", "servermanager", "superadmin", "elite", "eventmanager", "adminplus", "moderatorplus", "operator", "prestige"}, ply:GetNWString("usergroup")) then return false end
  172.         return true
  173.     end,
  174.     CustomCheckFailMsg = function(ply)
  175.         if canGetPrinter(ply) then
  176.             return "This printer is for Elite/Prestige only!"
  177.         else
  178.             return "You already have 4 printers"
  179.         end
  180.     end,
  181. })
  182.  
  183. DarkRP.createEntity("Nuclear Printer", {
  184.     ent = "moneyprinter_nuclear",
  185.     model = "models/props_c17/consolebox01a.mdl",
  186.     price = 300000,
  187.     max = 1,
  188.     cmd = "nuclearprinter",
  189.     category = "Printers",
  190.     customCheck = function(ply)
  191.         if CLIENT then return true end
  192.         if !canGetPrinter(ply) then return false end
  193.         if !table.HasValue({"trialmoderator", "moderator", "admin", "headadmin", "headmoderator", "staffmanager", "servermanager", "superadmin", "eventmanager", "adminplus", "moderatorplus", "operator", "prestige"}, ply:GetNWString("usergroup")) then return false end
  194.         return true
  195.     end,
  196.     CustomCheckFailMsg = function(ply)
  197.         if canGetPrinter(ply) then
  198.             return "This printer is for Prestige only!"
  199.         else
  200.             return "You already have 4 printers"
  201.         end
  202.     end,
  203. })
  204.  
  205.  
  206. DarkRP.createEntity("Barrel", {
  207.     ent = "the_opium_barrel",
  208.     model = "models/props_c17/oildrum001.mdl",
  209.     price = 100,
  210.     max = 4,
  211.     cmd = "opbarrel",
  212.     allowed = {TEAM_OPIUM},
  213.     category = "Opium",
  214. })
  215. DarkRP.createEntity("Bottle", {
  216.     ent = "the_opium_bottle",
  217.     model = "models/props_junk/water_bottle.mdl",
  218.     price = 100,
  219.     max = 5,
  220.     cmd = "bottle",
  221.     allowed = {TEAM_OPIUM},
  222.     category = "Opium",
  223. })
  224. DarkRP.createEntity("Codeine", {
  225.     ent = "the_opium_codeine",
  226.     model = "models/props_c17/oildrum001.mdl",
  227.     price = 100,
  228.     max = 4,
  229.     cmd = "codeine",
  230.     allowed = {TEAM_OPIUM},
  231.     category = "Opium",
  232. })
  233.  
  234. DarkRP.createEntity("Gas", {
  235.     ent = "the_opium_gas",
  236.     model = "models/props_junk/big_water_bottle.mdl",
  237.     price = 100,
  238.     max = 4,
  239.     cmd = "opgas",
  240.     allowed = {TEAM_OPIUM},
  241.     category = "Opium",
  242. })
  243.  
  244. DarkRP.createEntity("Heater", {
  245.     ent = "the_opium_heater",
  246.     model = "models/props_c17/furnitureStove001a.mdl",
  247.     price = 100,
  248.     max = 4,
  249.     cmd = "opheater",
  250.     allowed = {TEAM_OPIUM},
  251.     category = "Opium",
  252. })
  253. DarkRP.createEntity("Packer", {
  254.     ent = "the_opium_packer",
  255.     model = "models/props_c17/oildrum001.mdl",
  256.     price = 100,
  257.     max = 4,
  258.     cmd = "oppacker",
  259.     allowed = {TEAM_OPIUM},
  260.     category = "Opium",
  261. })
  262. DarkRP.createEntity("Papaverine", {
  263.     ent = "the_opium_papaverine",
  264.     model = "models/props_c17/oildrum001.mdl",
  265.     price = 100,
  266.     max = 4,
  267.     cmd = "oppapa",
  268.     allowed = {TEAM_OPIUM},
  269.     category = "Opium",
  270. })
  271. DarkRP.createEntity("Sulfate", {
  272.     ent = "the_opium_sulfate",
  273.     model = "models/props_c17/oildrum001.mdl",
  274.     price = 100,
  275.     max = 4,
  276.     cmd = "opsulfate",
  277.     allowed = {TEAM_OPIUM},
  278.     category = "Opium",
  279. })
  280. DarkRP.createEntity("Water", {
  281.     ent = "the_opium_water",
  282.     model = "models/props_junk/big_water_bottle.mdl",
  283.     price = 100,
  284.     max = 4,
  285.     cmd = "opwater",
  286.     allowed = {TEAM_OPIUM},
  287.     category = "Opium",
  288. })
  289.  
  290. DarkRP.createEntity("Alchemy Table", {
  291.     ent = "alchemy_table",
  292.     model = "models/props_c17/oildrum001.mdl",
  293.     price = 2500,
  294.     max = 1,
  295.     cmd = "alchemytable",
  296.     allowed = {TEAM_ALCHEMIST},
  297.     category = "Alchemy",
  298. })
  299.  
  300. DarkRP.createEntity("Empty Potion", {
  301.     ent = "alchemy_empty_potion",
  302.     model = "models/props_c17/oildrum001.mdl",
  303.     price = 250,
  304.     max = 1,
  305.     cmd = "emptypotion",
  306.     allowed = {TEAM_ALCHEMIST},
  307.     category = "Alchemy",
  308. })
  309.  
  310. DarkRP.createEntity("Shelf", {
  311.     ent = "weapon_shelf",
  312.     model = "models/dansgunshelf/dansgunshelf.mdl",
  313.     price = 1000,
  314.     max = 1,
  315.     cmd = "shelf",
  316.     allowed = {TEAM_GUN, TEAM_VAPEDEALER, TEAM_BLACKMARKETDEALER, TEAM_EXPLOSIVESDEALER},
  317.     category = "Dealer Supplies",
  318. })
  319.  
  320. DarkRP.createEntity("Combiner", {
  321.     ent = "zmlab_combiner",
  322.     model = "models/zerochain/zmlab/zmlab_combiner.mdl",
  323.     price = 5000,
  324.     max = 1,
  325.     cmd = "buycombiner_zmlab",
  326.     allowed = TEAM_ZMLAB_COOK,
  327.     category = "Meth Supplies"
  328. })
  329.  
  330. DarkRP.createEntity("Gas Filter", {
  331.     ent = "zmlab_filter",
  332.     model = "models/zerochain/zmlab/zmlab_filter.mdl",
  333.     price = 1500,
  334.     max = 1,
  335.     cmd = "buyfilter_zmlab",
  336.     allowed = TEAM_ZMLAB_COOK,
  337.     category = "Meth Supplies"
  338. })
  339.  
  340. DarkRP.createEntity("Frezzer", {
  341.     ent = "zmlab_frezzer",
  342.     model = "models/zerochain/zmlab/zmlab_frezzer.mdl",
  343.     price = 2500,
  344.     max = 2,
  345.     cmd = "buyfrezzer_zmlab",
  346.     allowed = TEAM_ZMLAB_COOK,
  347.     category = "Meth Supplies"
  348. })
  349.  
  350. DarkRP.createEntity("Transport Crate", {
  351.     ent = "zmlab_collectcrate",
  352.     model = "models/zerochain/zmlab/zmlab_transportcrate.mdl",
  353.     price = 250,
  354.     max = 4,
  355.     cmd = "buycollectcrate_zmlab",
  356.     allowed = TEAM_ZMLAB_COOK,
  357.     category = "Meth Supplies"
  358. })
  359.  
  360. DarkRP.createEntity("Methylamin", {
  361.     ent = "zmlab_methylamin",
  362.     model = "models/zerochain/zmlab/zmlab_methylamin.mdl",
  363.     price = 1000,
  364.     max = 1,
  365.     cmd = "buymethylamin_zmlab",
  366.     allowed = TEAM_ZMLAB_COOK,
  367.     category = "Meth Supplies"
  368. })
  369.  
  370. DarkRP.createEntity("Aluminium", {
  371.     ent = "zmlab_aluminium",
  372.     model = "models/zerochain/zmlab/zmlab_aluminiumbox.mdl",
  373.     price = 100,
  374.     max = 1,
  375.     cmd = "buyaluminium_zmlab",
  376.     allowed = TEAM_ZMLAB_COOK,
  377.     category = "Meth Supplies"
  378. })
  379.  
  380. DarkRP.createEntity("Transport Palette", {
  381.     ent = "zmlab_palette",
  382.     model = "models/props_junk/wood_pallet001a.mdl",
  383.     price = 100,
  384.     max = 3,
  385.     cmd = "buypalette_zmlab",
  386.     allowed = TEAM_ZMLAB_COOK,
  387.     category = "Meth Supplies"
  388. })
  389.  
  390. DarkRP.createEntity("Bag", {
  391.     ent = "uweed_bag",
  392.     model = "models/base/weedbag.mdl",
  393.     price = 500,
  394.     max = 2,
  395.     cmd = "bag",
  396.     category = "Weed Supplies",
  397.     allowed = {TEAM_STONER}
  398. })
  399.  
  400. DarkRP.createEntity("Battery", {
  401.     ent = "uweed_battery",
  402.     model = "models/base/battery.mdl",
  403.     price = 1000,
  404.     max = 2,
  405.     cmd = "battery",
  406.     category = "Weed Supplies",
  407.     allowed = {TEAM_STONER}
  408. })
  409.  
  410. DarkRP.createEntity("Frontwoods", {
  411.     ent = "uweed_frontwoods",
  412.     model = "models/base/frontwoods.mdl",
  413.     price = 1500,
  414.     max = 1,
  415.     cmd = "frontwoods",
  416.     category = "Weed Supplies",
  417.     allowed = {TEAM_STONER}
  418. })
  419.  
  420. DarkRP.createEntity("Light", {
  421.     ent = "uweed_light",
  422.     model = "models/base/lamp1.mdl",
  423.     price = 300,
  424.     max = 2,
  425.     cmd = "light",
  426.     category = "Weed Supplies",
  427.     allowed = {TEAM_STONER}
  428. })
  429.  
  430. DarkRP.createEntity("Industrial Light", {
  431.     ent = "uweed_light_big",
  432.     model = "models/base/lamp2.mdl",
  433.     price = 750,
  434.     max = 2,
  435.     cmd = "industriallight",
  436.     category = "Weed Supplies",
  437.     allowed = {TEAM_STONER}
  438. })
  439.  
  440. DarkRP.createEntity("Pot", {
  441.     ent = "uweed_plant",
  442.     model = "models/base/weedplant.mdl",
  443.     price = 500,
  444.     max = 2,
  445.     cmd = "pot",
  446.     category = "Weed Supplies",
  447.     allowed = {TEAM_STONER}
  448. })
  449.  
  450. DarkRP.createEntity("Scale", {
  451.     ent = "uweed_scale",
  452.     model = "models/base/scale.mdl",
  453.     price = 1000,
  454.     max = 1,
  455.     cmd = "scale",
  456.     category = "Weed Supplies",
  457.     allowed = {TEAM_STONER}
  458. })
  459.  
  460. DarkRP.createEntity("Seed Box", {
  461.     ent = "uweed_seed_box",
  462.     model = "models/base/weedbox.mdl",
  463.     price = 250,
  464.     max = 1,
  465.     cmd = "seedbox",
  466.     category = "Weed Supplies",
  467.     allowed = {TEAM_STONER}
  468. })
  469.  
  470. DarkRP.createEntity("Armor Recharger", {
  471.     ent = "armor_recharger",
  472.     model = "models/props_c17/consolebox03a.mdl",
  473.     price = 7500,
  474.     max = 1,
  475.     cmd = "armorrecharger",
  476.     category = "Rechargers"
  477. })
  478.  
  479. DarkRP.createEntity("Health Recharger", {
  480.     ent = "health_recharger",
  481.     model = "models/props_c17/consolebox03a.mdl",
  482.     price = 5000,
  483.     max = 1,
  484.     cmd = "healthrecharger",
  485.     category = "Rechargers"
  486. })
  487.  
  488. DarkRP.createEntity("VIP/Prime Armor Recharger", {
  489.     ent = "vip_armor_recharger",
  490.     model = "models/props_lab/reciever01a.mdl",
  491.     price = 15000,
  492.     max = 1,
  493.     cmd = "vipprimearmorrecharger",
  494.     category = "Rechargers",
  495.         customCheck = function(ply) return CLIENT or
  496.         table.HasValue({"trialmoderator", "moderator", "admin", "headadmin", "staffmanager", "servermanager", "superadmin", "prime", "elite", "headmoderator", "eventmanager", "vip", "adminplus", "moderatorplus", "operator"}, ply:GetNWString("usergroup"))
  497.     end,
  498.     CustomCheckFailMsg = "This is for VIP/Prime/Elite only!",
  499. })
  500.  
  501. DarkRP.createEntity("VIP/Prime Health Recharger", {
  502.     ent = "vip_health_recharger",
  503.     model = "models/props_lab/reciever01a.mdl",
  504.     price = 10000,
  505.     max = 1,
  506.     cmd = "vipprimehealthrecharger",
  507.     category = "Rechargers",
  508.         customCheck = function(ply) return CLIENT or
  509.         table.HasValue({"trialmoderator", "moderator", "admin", "headadmin", "staffmanager", "servermanager", "superadmin", "prime", "elite", "headmoderator", "eventmanager", "vip", "adminplus", "moderatorplus", "operator"}, ply:GetNWString("usergroup"))
  510.     end,
  511.     CustomCheckFailMsg = "This is for VIP/Prime/Elite only!",
  512. })
  513.  
  514. DarkRP.createEntity("Lean Barrel", {
  515.     ent = "lean_barrel",
  516.     model = "models/freeman/codeine_barrel.mdl",
  517.     price = 2500,
  518.     max = 2,
  519.     cmd = "buyleanbarrel",
  520.     category = "Lean Production",
  521.     allowed = {TEAM_LEANENTHUSIAST}
  522. })
  523.  
  524. DarkRP.createEntity("Lean Crate", {
  525.     ent = "lean_crate",
  526.     model = "models/freeman/codeine_crate.mdl",
  527.     price = 100,
  528.     max = 2,
  529.     cmd = "buyleancrate",
  530.     category = "Lean Production",
  531.     allowed = {TEAM_LEANENTHUSIAST}
  532. })
  533.  
  534. DarkRP.createEntity("Lean Cup", {
  535.     ent = "lean_cup",
  536.     model = "models/freeman/codeine_cup.mdl",
  537.     price = 50,
  538.     max = 4,
  539.     cmd = "buyleancup",
  540.     category = "Lean Production",
  541.     allowed = {TEAM_LEANENTHUSIAST}
  542. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top