Advertisement
Guest User

ddddd

a guest
Dec 2nd, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 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. 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( "Amber Printer", {
  20. ent = "fg_amber_printer",
  21. model = "models/props_c17/consolebox01a.mdl",
  22. price = 5000,
  23. max = 4,
  24. cmd = "buyamberprinter"
  25. } )
  26.  
  27. DarkRP.createEntity( "Sapphire Printer", {
  28. ent = "fg_sapphire_printer",
  29. model = "models/props_c17/consolebox01a.mdl",
  30. price = 10000,
  31. max = 4,
  32. cmd = "buysapphireprinter"
  33. } )
  34.  
  35. DarkRP.createEntity( "Ruby Printer", {
  36. ent = "fg_ruby_printer",
  37. model = "models/props_c17/consolebox01a.mdl",
  38. price = 25000,
  39. max = 4,
  40. cmd = "buyrubyprinter"
  41. } )
  42.  
  43. DarkRP.createEntity( "Emerald Printer", {
  44. ent = "fg_emerald_printer",
  45. model = "models/props_c17/consolebox01a.mdl",
  46. price = 50000,
  47. max = 4,
  48. cmd = "buyemeraldprinter",
  49. customCheck = function(ply) return CLIENT or table.HasValue({"vip", "Premium", "superadmin", "operator VIP", "operator Premium", "moderator VIP", "moderator Premium", "admin VIP", "admin Premium"},
  50. ply:GetUserGroup()) end,
  51. CustomCheckFailMsg = "You don't have the required rank to complete this action!"
  52. } )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement