Advertisement
aanndrew

DarkRP Automation Config

Jul 10th, 2020
1,156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.98 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 = 900
  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 = 600
  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 = true
  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_GANGSTER] = true,
  41.     [TEAM_THIEF] = true,
  42. }
  43.  
  44. --[[---------------------
  45.     MUGGING CONFIG
  46. --]]---------------------
  47.  
  48. -- Enable the mugging module?
  49. Automation_Config.ENABLE_MUGGING = true
  50.  
  51. -- The default mug price
  52. -- Players can change this by doing "/mugprice [price]"
  53. Automation_Config.DEFAULT_MUG = 2500
  54.  
  55. -- The minimum price a mug can be set to using /mugprice
  56. Automation_Config.MINIMUM_MUG = 500
  57.  
  58. -- The maximum price a mug can be set to using /mugprice
  59. Automation_Config.MAXIMUM_MUG = 5000
  60.  
  61. -- How long players must wait until they can mug again after mugging, in seconds
  62. Automation_Config.MUG_INTERVAL = 600 -- 600 is 10 minutes
  63.  
  64. -- How much time the mug target has to respond to a mug, in seconds, you should keep this low but not too low
  65. Automation_Config.MUG_RESPONSE_TIME = 10
  66.  
  67. -- The list of jobs what are allowed to mug people
  68. -- If you want everyone to have access to mugging just leave the list empty
  69. Automation_Config.MUG_JOB_WHITELIST = { -- WARNING: Having an invalid team here will cause errors
  70.     --[TEAM_MUGGER] = true,
  71.     [TEAM_THIEF] = true,
  72. }
  73.  
  74. --[[---------------------
  75.     KIDNAPPING CONFIG
  76. --]]---------------------
  77.  
  78. -- Enable the mugging module?
  79. Automation_Config.ENABLE_KIDNAPPING = true
  80.  
  81. -- The maximum time a player can keep somebody kidnapped
  82. -- Set to 0 if you don't want a maximum time
  83. Automation_Config.MAX_KIDNAP_TIME = 900 -- 900 is 15 minutes
  84.  
  85. -- How long players must wait until they can kidnap someone again, in seconds
  86. Automation_Config.KIDNAP_INTERVAL = 900
  87.  
  88. -- How much the players speed is divided by while kidnapped, set this to 1 if you dont want to change the players speed
  89. -- Do not set this to 0 unless you want players to not move
  90. Automation_Config.KIDNAP_DIVIDE_SPEED = 2 -- 2 will half the players speed while being kidnapped
  91.  
  92. -- If we should end the kidnap if the target gets far away enough
  93. Automation_Config.KIDNAP_CHECK_DISTANCE = true
  94.  
  95. -- How far the person being kidnapped must be before the kidnap ends
  96. Automation_Config.KIDNAP_END_DISTANCE = 900000
  97.  
  98. -- The list of jobs what are allowed to kidnap people
  99. -- If you want everyone to have access to kidnapping just leave the list empty
  100. Automation_Config.KIDNAP_JOB_WHITELIST = { -- WARNING: Having an invalid team here will cause errors
  101.     --[TEAM_KIDNAPPER] = true,
  102.     [TEAM_THIEF] = true,
  103. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement