Advertisement
Guest User

Instant Reality custom entities

a guest
Jan 29th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.72 KB | None | 0 0
  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. Add entities under the following line:
  15. ---------------------------------------------------------------------------*/
  16. // CUSTOM PRINTERS
  17.  
  18. DarkRP.createEntity("Bronze Money Printer", {
  19.     ent = "bronze_printer",
  20.     model = "models/props_c17/consolebox01a.mdl",
  21.     price = 4000,
  22.     max = 1,
  23.     cmd = "buymoneyprinter1",
  24. })
  25.  
  26. DarkRP.createEntity("Silver Money Printer", {
  27.     ent = "silver_printer",
  28.     model = "models/props_c17/consolebox01a.mdl",
  29.     price = 6000,
  30.     max = 1,
  31.     cmd = "buymoneyprinter2",
  32. })
  33.  
  34. DarkRP.createEntity("Gold Money Printer", {
  35.     ent = "gold_printer",
  36.     model = "models/props_c17/consolebox01a.mdl",
  37.     price = 10000,
  38.     max = 1,
  39.     cmd = "buymoneyprinter3",
  40. })
  41.  
  42. DarkRP.createEntity("Diamond Money Printer", {
  43.     ent = "diamond_printer",
  44.     model = "models/props_c17/consolebox01a.mdl",
  45.     price = 20000,
  46.     max = 1,
  47.     cmd = "buymoneyprinter4",
  48.     customCheck = function(ply) return CLIENT or ply:GetUserGroup("vip") == "vip" or ply:GetUserGroup("superadmin") == "superadmin" or ply:GetUserGroup("vipmod") == "vipmod" or ply:GetUserGroup("vipadmin") == "vipadmin" end,
  49.     CustomCheckFailMsg = "You must be VIP to buy this printer",
  50. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement