Advertisement
Crap-Head

Mayor Config

Jan 30th, 2023
765
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.56 KB | None | 0 0
  1. CH_Mayor = CH_Mayor or {}
  2. CH_Mayor.Config = CH_Mayor.Config or {}
  3. CH_Mayor.Upgrades = CH_Mayor.Upgrades or {}
  4.  
  5. -- SET LANGUAGE
  6. -- Available languages: English: en
  7. CH_Mayor.Config.Language = "en" -- Set the language of the script.
  8.  
  9. --[[
  10.     TEAMS CONFIG
  11. --]]
  12. CH_Mayor.Config.MayorTeam = "Mayor" -- Name of your mayor team.
  13.  
  14. CH_Mayor.Config.GovernmentTeams = { -- Teams that are considered government.
  15.     ["Police Officer"] = true,
  16.     ["Police Chief"] = true,
  17.     ["Civil Protection"] = true,
  18.     ["Medic"] = true,
  19.     ["SWAT"] = true,
  20. }
  21.  
  22. CH_Mayor.Config.PoliceTeams = { -- Teams that are considered police teams (for example counts towards when you can rob the vault).
  23.     ["Police Officer"] = true,
  24.     ["Police Chief"] = true,
  25.     ["Civil Protection"] = true,
  26.     ["SWAT"] = true,
  27. }
  28.  
  29. CH_Mayor.Config.CriminalTeams = { --Teams that are considered criminals. These can rob the vault.
  30.     ["Citizen"] = true,
  31.     ["Gangster"] = true,
  32. }
  33.  
  34. --[[
  35.     GENERAL CONFIG
  36. --]]
  37. CH_Mayor.Config.NotificationTime = 8 -- Amount of seconds the notification display for DarkRP
  38. CH_Mayor.Config.DistanceTo3D2D = 500000 -- Distance to draw 3d2d on entities
  39.  
  40. CH_Mayor.Config.UseMayorMenuKey = true -- Should we enable the key to open the mayor menu?
  41. CH_Mayor.Config.MayorMenuKey = KEY_F7 -- The key that opens the mayor menu. You can find all keys here: https://wiki.garrysmod.com/page/Enums/KEY
  42.  
  43. CH_Mayor.Config.UseMayorChatCommand = true -- Should we enable the chat command to open the mayor menu?
  44. CH_Mayor.Config.MayorMenuChatCommand = "!mayor" -- Chat command to open the mayor menu.
  45.  
  46. --[[
  47.     VAULT CONFIG
  48. --]]
  49. CH_Mayor.Config.PermanentlySaveVaultMoney = false -- Should vault money be stored in the database and move over on server restarts?
  50.  
  51. CH_Mayor.Config.VaultGenerateMoney = true -- Should money automatically be generated in the vault?
  52. CH_Mayor.Config.GenerateMoneyInterval = 60 -- Every x seconds money will be generated in the vault.
  53. CH_Mayor.Config.GenerateMoneyMin = 50 -- Minimum amount of money generated in the vault every time the interval runs.
  54. CH_Mayor.Config.GenerateMoneyMax = 150 -- Maximum amount of money generated in the vault every time the interval runs.
  55.  
  56. CH_Mayor.Config.VaultDefaultMax = 100000 -- The default max money the vault can hold
  57.  
  58. CH_Mayor.Config.VaultBodygroupLevels = { -- The bodygroups for the vault change based on how much money there is. For example it will be bodygroup 1 when it has 1 dollar and bodygroup 2 when it has 6000 dollars.
  59.     [1] = 1,
  60.     [2] = 6000,
  61.     [3] = 9000,
  62.     [4] = 18000,
  63.     [5] = 27000,
  64.     [6] = 36000,
  65.     [7] = 45000,
  66. }
  67.  
  68. CH_Mayor.Config.EnableDeposit = true -- Should mayor be able to deposit funds into the bank vault himself?
  69. CH_Mayor.Config.DepositMaximumPerMayor = 5000 -- How much money can a mayor deposit in total? This resets when they're demoted/leaves
  70.  
  71. CH_Mayor.Config.EnableWithdraw = true -- Should mayor be able to withdraw money to himself from the vault?
  72. CH_Mayor.Config.WithdrawMaximumPerMayor = 5000 -- How much money can a mayor withdraw in total? This resets when they're demoted/leaves
  73.  
  74. --[[
  75.     ROBBERY CONFIG
  76. --]]
  77. CH_Mayor.Config.MayorRequiredToRob = true -- If this is set to true then there must be an active mayor to rob the mayor vault.
  78. CH_Mayor.Config.PoliceRequired = 3 -- How many police officers are required before a criminal can start a robbery?
  79. CH_Mayor.Config.PlayersRequired = 5 -- How many total players are required to start a robbery?
  80. CH_Mayor.Config.RobberyAliveTime = 1 -- For how many minutes must a player stay alive to succeed with the robbery? (IN MINUTES)
  81. CH_Mayor.Config.RobberyDistance = 50000 -- How far away can the player move from the vault before the robbery fails
  82. CH_Mayor.Config.RobberyCooldownTime = 5 -- How long time is the mayor vault on a cooldown (cannot be robbed) after a robbery attempt? (IN MINUTES)
  83.  
  84. CH_Mayor.Config.EmitSoundOnRob = true -- Should an alarm go off when the bank vault gets robbed.
  85. CH_Mayor.Config.TheSound = "ambient/alarms/alarm_citizen_loop1.wav" -- The sound to be played.
  86. CH_Mayor.Config.SoundVolume = 100 -- The sound volume for the alarm sound https://wiki.facepunch.com/gmod/Enums/SNDLVL
  87. CH_Mayor.Config.SoundDuration = 30  -- Amount of seconds the sound should play for.
  88.  
  89. CH_Mayor.Config.KillReward = 5000 -- The reward for killing an active robber.
  90.  
  91. CH_Mayor.Config.XPSuccessfulRobbery = 100 -- XP given for succesfully robbing the vault.
  92. CH_Mayor.Config.XPStoppingRobber = 50 -- XP given for killing a vault robber.
  93.  
  94. --[[
  95.     OFFICIALS MANAGEMENT
  96.     The first team is the team that can be promoted.
  97.     The second part of the table are the teams that you can promote this team to.
  98.    
  99.     For example you can promote medics to medic chief or medic overhead.
  100.     Or you can promote the police officer team to police chief.
  101. --]]
  102. CH_Mayor.Config.PromotableTeams = {
  103.     ["Medic"] = {
  104.         "Medic Chief",
  105.         "Medic Overhead",
  106.     },
  107.     ["Police Officer"] = {
  108.         "Police Chief",
  109.     },
  110.     ["Police Chief"] = {
  111.         "SWAT",
  112.         "SWAT Chief",
  113.     },
  114. }
  115.  
  116. --[[
  117.     CIVILIAN MANAGEMENT
  118. --]]
  119. CH_Mayor.Config.MaximumWantedTime = 300 -- Maximum amount of seconds mayor can make a player wanted for
  120.  
  121. --[[
  122.     TAXES
  123.     Command to generate random taxes for all your darkrp teams: ch_mayor_randomtaxes
  124. --]]
  125. CH_Mayor.Config.TeamsTaxes = { -- Teams and their default taxes. If team is not listed, then it does not pay taxes.
  126.     ["Citizen"] = 20,
  127.     ["Guard"] = 10,
  128.     ["Gun Dealer"] = 5,
  129.     ["Hobo"] = 25,
  130.     ["Medic"] = 0,
  131.     ["Police Officer"] = 50,
  132.     ["SWAT"] = 20,
  133.     ["SWAT Sniper"] = 10,
  134.     ["Secret Service"] = 5,
  135.     ["Hitman"] = 25,
  136.     ["Kidnapper"] = 0,
  137.     ["Thief"] = 50,
  138.     ["Gangster"] = 20,
  139.     ["Mob boss"] = 10,
  140.     ["Pro Thief"] = 5,
  141.     ["SWAT Leader"] = 25,
  142.     ["VIP Secret Service"] = 0,
  143.     ["Staff On Duty"] = 50,
  144. }
  145.  
  146. CH_Mayor.Config.MaximumTeamTax = 80 -- What is the maximum team tax a team can have?
  147.  
  148. CH_Mayor.Config.ResetTeamTaxOnDemoted = true -- Should all team taxes reset to their default when a mayor leaves/is demoted?
  149.  
  150. CH_Mayor.Config.TaxMoneyGoesToCityVault = true -- Should money paid in taxes on paychecks go to the city vault? If true then yes, if false it just dissapears
  151. CH_Mayor.Config.TaxMoneyCityVaultNotify = false -- Should the mayor receive a notitication of receiving money in vault when it's tax money from salaries? (Could case a little bit of spam with a lot of people)
  152.  
  153. --[[
  154.     LAWS
  155. --]]
  156. CH_Mayor.Config.ResetLawsOnDemote = true -- Should laws reset when the mayor is demoted/leaves?
  157.  
  158. --[[
  159.     CATALOG
  160. --]]
  161. CH_Mayor.Config.RemoveCatalogEntsOnDemote = true -- Should we remove entities bought via catalog on demote? Like boards, screens, props, etc
  162.  
  163. --[[
  164.     TRASHCAN
  165. --]]
  166. CH_Mayor.Config.TrashcanEntities = { -- List of entities that the trashcan can remove plus their min/max pays for trashing.
  167.     ["prop_physics"] = { 10, 50 }, -- The 10 is the minimum and 50 is the maximum reward for prop_physics throw in trash
  168.     ["drug"] = { 10, 50 },
  169.     ["drug_lab"] = { 10, 50 },
  170.     ["food"] = { 10, 50 },
  171.     ["gunlab"] = { 10, 50 },
  172.     ["letter"] = { 10, 50 },
  173.     ["microwave"] = { 10, 50 },
  174.     ["money_printer"] = { 10, 50 },
  175.     ["spawned_ammo"] = { 10, 50 },
  176.     ["spawned_food"] = { 10, 50 },
  177.     ["spawned_money"] = { 10, 50 },
  178.     ["spawned_shipment"] = { 10, 50 },
  179.     ["spawned_weapon"] = { 10, 50 },
  180. }
  181.  
  182. CH_Mayor.Config.TrashcanModel = "models/props_junk/TrashDumpster01a.mdl" -- Sets the model for the trashcan
  183. CH_Mayor.Config.EnableTrashReward = true -- Should players receive money for trashing items?
  184.  
  185. CH_Mayor.Config.EnableTrashXPReward = false -- If we should also receive XP rewards for trashing items.
  186. CH_Mayor.Config.TrashXPReward = 10 -- How much XP?
  187.  
  188. --[[
  189.     MAYOR DEATH
  190. --]]
  191. CH_Mayor.Config.DemoteMayorOnDeath = false -- Should the mayor be demoted on death?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement