Advertisement
Silhouhat

City Worker Configuration

Sep 15th, 2018
4,030
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.80 KB | None | 0 0
  1. CITYWORKER = CITYWORKER or {}
  2.  
  3. CITYWORKER.Config = CITYWORKER.Config or {}
  4.  
  5. --[[
  6.   /$$$$$$  /$$   /$$                     /$$      /$$                     /$$                          
  7.  /$$__  $$|__/  | $$                    | $$  /$ | $$                    | $$                          
  8. | $$  \__/ /$$ /$$$$$$   /$$   /$$      | $$ /$$$| $$  /$$$$$$   /$$$$$$ | $$   /$$  /$$$$$$   /$$$$$$
  9. | $$      | $$|_  $$_/  | $$  | $$      | $$/$$ $$ $$ /$$__  $$ /$$__  $$| $$  /$$/ /$$__  $$ /$$__  $$
  10. | $$      | $$  | $$    | $$  | $$      | $$$$_  $$$$| $$  \ $$| $$  \__/| $$$$$$/ | $$$$$$$$| $$  \__/
  11. | $$    $$| $$  | $$ /$$| $$  | $$      | $$$/ \  $$$| $$  | $$| $$      | $$_  $$ | $$_____/| $$      
  12. |  $$$$$$/| $$  |  $$$$/|  $$$$$$$      | $$/   \  $$|  $$$$$$/| $$      | $$ \  $$|  $$$$$$$| $$      
  13.  \______/ |__/   \___/   \____  $$      |__/     \__/ \______/ |__/      |__/  \__/ \_______/|__/      
  14.                          /$$  | $$                                                                    
  15.                         |  $$$$$$/                                                                    
  16.                          \______/                                                                      
  17.                                
  18.                                                 v1.0.0
  19.                                     By: Silhouhat (76561198072551027)
  20.                                             Unlicensed Preview
  21.  
  22. --]]
  23.  
  24. -- How often should we check (in seconds) for City Workers with no assigned jobs, so we can give them?
  25. CITYWORKER.Config.Time = 15
  26.  
  27. -- Configuration for the DarkRP job.
  28. CITYWORKER.Config.Job = {
  29.     name = "City Worker",
  30.  
  31.     color = Color( 20, 150, 20, 255 ),
  32.     model = {
  33.         "models/player/Group01/Female_01.mdl",
  34.         "models/player/Group01/Female_02.mdl",
  35.         "models/player/Group01/Female_03.mdl",
  36.         "models/player/Group01/Female_04.mdl",
  37.         "models/player/Group01/Female_06.mdl",
  38.         "models/player/group01/male_01.mdl",
  39.         "models/player/Group01/Male_02.mdl",
  40.         "models/player/Group01/male_03.mdl",
  41.         "models/player/Group01/Male_04.mdl",
  42.         "models/player/Group01/Male_05.mdl",
  43.         "models/player/Group01/Male_06.mdl",
  44.         "models/player/Group01/Male_07.mdl",
  45.         "models/player/Group01/Male_08.mdl",
  46.         "models/player/Group01/Male_09.mdl"
  47.     },
  48.     description = "The city worker's job is to go around and fix leaks, fire hydrants, rubble, and electrical problems around the city, and get paid doing it!",
  49.     weapons = { "cityworker_pliers", "cityworker_shovel", "cityworker_wrench" },
  50.     command = "cityworker",
  51.     max = 6,
  52.     salary = 75,
  53.     admin = 0,
  54.     vote = false,
  55.     hasLicense = false,
  56.     candemote = false,
  57.     category = "Citizens",
  58. }
  59.  
  60. ------------
  61. -- RUBBLE --
  62. ------------
  63.  
  64. CITYWORKER.Config.Rubble = {}
  65.  
  66. -- Whether or not rubble is enabled or disabled.
  67. CITYWORKER.Config.Rubble.Enabled = true
  68.  
  69. -- Rubble models and the range of time (in seconds) it takes to clear them.
  70. CITYWORKER.Config.Rubble.Models = {
  71.     ["models/props_debris/concrete_debris128pile001a.mdl"] = { min = 20, max = 30 },
  72.     ["models/props_debris/concrete_debris128pile001b.mdl"] = { min = 10, max = 15 },
  73.     ["models/props_debris/concrete_floorpile01a.mdl"] = { min = 10, max = 20 },
  74.     ["models/props_debris/concrete_cornerpile01a.mdl"] = { min = 10, max = 20 },
  75.     ["models/props_debris/concrete_spawnplug001a.mdl"] = { min = 5, max = 10 },
  76.     ["models/props_debris/plaster_ceilingpile001a.mdl"] = { min = 10, max = 15 },
  77. }
  78.  
  79. -- Payout per second it takes to clear a given pile of rubble.
  80. -- (i.e. 10 seconds = 10 * 30 = 300)
  81. CITYWORKER.Config.Rubble.Payout = 30
  82.  
  83. -------------------
  84. -- FIRE HYDRANTS --
  85. -------------------
  86.  
  87. CITYWORKER.Config.FireHydrant = {}
  88.  
  89. -- Whether or not fire hydrants are enabled or disabled.
  90. CITYWORKER.Config.FireHydrant.Enabled = true
  91.  
  92. -- The range for how long it takes to fix a fire hydrant.
  93. -- Maximum value: 255 seconds.
  94. CITYWORKER.Config.FireHydrant.Time = { min = 20, max = 30 }
  95.  
  96. -- Payout per second it takes to fix a fire hydrant.
  97. CITYWORKER.Config.FireHydrant.Payout = 40
  98.  
  99. -----------
  100. -- LEAKS --
  101. -----------
  102.  
  103. CITYWORKER.Config.Leak = CITYWORKER.Config.Leak or {}
  104.  
  105. -- Whether or not leaks are enabled or disabled.
  106. CITYWORKER.Config.Leak.Enabled = true
  107.  
  108. -- The range for how long it takes to fix a leak.
  109. -- Maximum value: 255 seconds.
  110. CITYWORKER.Config.Leak.Time = { min = 10, max = 30 }
  111.  
  112. -- Payout per second it takes to fix a leak.
  113. CITYWORKER.Config.Leak.Payout = 20
  114.  
  115. --------------
  116. -- ELECTRIC --
  117. --------------
  118.  
  119. CITYWORKER.Config.Electric = CITYWORKER.Config.Electric or {}
  120.  
  121. -- Whether or not electrical problems are enabled or disabled.
  122. CITYWORKER.Config.Electric.Enabled = true
  123.  
  124. -- The range for how long it takes to fix an electrical problem.
  125. -- Maximum value: 255 seconds.
  126. CITYWORKER.Config.Electric.Time = { min = 20, max = 30 }
  127.  
  128. -- Payout per second it takes to fix an electrical problem.
  129. CITYWORKER.Config.Electric.Payout = 50
  130.  
  131. ----------------------------
  132. -- LANGUAGE CONFIGURATION --
  133. ----------------------------
  134.  
  135. CITYWORKER.Config.Language = {
  136.     ["FireHydrant"]         = "Fixing fire hydrant...",
  137.     ["Leak"]                = "Fixing leak..",
  138.     ["Electric"]            = "Fixing electrical problem...",
  139.     ["Rubble"]              = "Clearing rubble...",
  140.  
  141.     ["CANCEL"]              = "Press F2 to cancel the action.",
  142.     ["PAYOUT"]              = "You've earned %s from your work!",
  143.     ["CANCEL"]              = "You've cancelled your action!",
  144.     ["NEW_JOB"]             = "You have a new job to do!",
  145.     ["NOT_CITY_WORKER"]     = "You are not a city worker!",
  146.     ["JOB_WORKED"]          = "This job is already being worked!",
  147.     ["ASSIGNED_ELSE"]       = "This job has been assigned to someone else!",
  148. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement