Advertisement
aanndrew

DarkRP Automation Config

Jul 10th, 2020
997
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.88 KB | None | 0 0
  1. Automation_Config = {} -- Ignore
  2. --[[--------------------------------------------------------------
  3.    
  4.     Hello and welcome to my DarkRP automation addon!
  5.  
  6.     If you have any problems please create a support ticket.
  7.  
  8.     Please leave suggestions in the discussion tab as I am always
  9.     looking for ways to improve on this addon :)
  10.  
  11. --]]--------------------------------------------------------------
  12.  
  13. -- Enable a menu in the context menu (C Menu) for easier access to the automation commands below
  14. -- Has different buttons for each action, like raiding and mugging, I reccomend you enable this as its more user friendly than only using commands
  15. Automation_Config.ENABLE_CONTEXT_ACTIONS = true
  16.  
  17. --[[---------------------
  18.     RAIDING CONFIG
  19. --]]---------------------
  20. if CLIENT then return end -- Ignore
  21.  
  22. -- Enable the raiding module?
  23. -- I highly suggest you enable this
  24. Automation_Config.ENABLE_RAIDING = true
  25.  
  26. -- How long players must wait until they can raid again in seconds
  27. -- [5 minutes = 300, 10 minutes = 600, 15 minutes = 900 etc.]
  28. Automation_Config.RAIDING_INTERVAL = 30
  29.  
  30. -- How long players are allowed to raid for in seconds
  31. -- When a raid is started, after this amount of time, the raid is stopped automatically
  32. Automation_Config.MAX_RAID_TIME = 30
  33.  
  34. -- When set to true, the player getting raided will get notified that they are getting raided, false does the opposite
  35. Automation_Config.RAID_NOTIFY_TARGET = false
  36.  
  37. -- The list of jobs what are allowed to raid people
  38. -- If you want everyone to have access to raiding just leave the list empty
  39. Automation_Config.RAID_JOB_WHITELIST = { -- WARNING: Having an invalid team here will cause errors
  40.     [TEAM_MEDIC] = true,
  41. }
  42.  
  43. --[[---------------------
  44.     MUGGING CONFIG
  45. --]]---------------------
  46.  
  47. -- Enable the mugging module?
  48. Automation_Config.ENABLE_MUGGING = true
  49.  
  50. -- The default mug price
  51. -- Players can change this by doing "/mugprice [price]"
  52. Automation_Config.DEFAULT_MUG = 2500
  53.  
  54. -- The minimum price a mug can be set to using /mugprice
  55. Automation_Config.MINIMUM_MUG = 500
  56.  
  57. -- The maximum price a mug can be set to using /mugprice
  58. Automation_Config.MAXIMUM_MUG = 5000
  59.  
  60. -- How long players must wait until they can mug again after mugging, in seconds
  61. Automation_Config.MUG_INTERVAL = 30 -- 600 is 10 minutes
  62.  
  63. -- How much time the mug target has to respond to a mug, in seconds, you should keep this low but not too low
  64. Automation_Config.MUG_RESPONSE_TIME = 10
  65.  
  66. -- The list of jobs what are allowed to mug people
  67. -- If you want everyone to have access to mugging just leave the list empty
  68. Automation_Config.MUG_JOB_WHITELIST = { -- WARNING: Having an invalid team here will cause errors
  69.     [TEAM_MEDIC] = true,
  70. }
  71.  
  72. --[[---------------------
  73.     KIDNAPPING CONFIG
  74. --]]---------------------
  75.  
  76. -- Enable the mugging module?
  77. Automation_Config.ENABLE_KIDNAPPING = true
  78.  
  79. -- The maximum time a player can keep somebody kidnapped
  80. -- Set to 0 if you don't want a maximum time
  81. Automation_Config.MAX_KIDNAP_TIME = 30
  82.  
  83. -- How long players must wait until they can kidnap someone again, in seconds
  84. Automation_Config.KIDNAP_INTERVAL = 10 -- 900 is 15 minutes
  85.  
  86. -- How much the players speed is divided by while kidnapped, set this to 1 if you dont want to change the players speed
  87. -- Do not set this to 0 unless you want players to not move
  88. Automation_Config.KIDNAP_DIVIDE_SPEED = 2 -- 2 will half the players speed while being kidnapped
  89.  
  90. -- If we should end the kidnap if the target gets far away enough
  91. Automation_Config.KIDNAP_CHECK_DISTANCE = true
  92.  
  93. -- How far the person being kidnapped must be before the kidnap ends
  94. Automation_Config.KIDNAP_END_DISTANCE = 900000
  95.  
  96. -- The list of jobs what are allowed to kidnap people
  97. -- If you want everyone to have access to kidnapping just leave the list empty
  98. Automation_Config.KIDNAP_JOB_WHITELIST = { -- WARNING: Having an invalid team here will cause errors
  99.     [TEAM_MEDIC] = true,
  100. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement