Advertisement
Buffet_Time

Untitled

May 20th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.34 KB | None | 0 0
  1. -- People often copy jobs. When they do, the GM table does not exist anymore.
  2. -- This line makes the job code work both inside and outside of gamemode files.
  3. -- You should not copy this line into your code.
  4. local GAMEMODE = GAMEMODE or GM
  5. --[[--------------------------------------------------------
  6. Default teams. Please do not edit this file. Please use the darkrpmod addon instead.
  7. --------------------------------------------------------]]
  8. TEAM_CITIZEN = DarkRP.createJob("Citizen", {
  9. color = Color(20, 150, 20, 255),
  10. model = {
  11. "models/player/Group01/Female_01.mdl",
  12. "models/player/Group01/Female_02.mdl",
  13. "models/player/Group01/Female_03.mdl",
  14. "models/player/Group01/Female_04.mdl",
  15. "models/player/Group01/Female_06.mdl",
  16. "models/player/group01/male_01.mdl",
  17. "models/player/Group01/Male_02.mdl",
  18. "models/player/Group01/male_03.mdl",
  19. "models/player/Group01/Male_04.mdl",
  20. "models/player/Group01/Male_05.mdl",
  21. "models/player/Group01/Male_06.mdl",
  22. "models/player/Group01/Male_07.mdl",
  23. "models/player/Group01/Male_08.mdl",
  24. "models/player/Group01/Male_09.mdl"
  25. },
  26. description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
  27. weapons = {},
  28. command = "citizen",
  29. max = 0,
  30. salary = GAMEMODE.Config.normalsalary,
  31. admin = 0,
  32. vote = false,
  33. hasLicense = false,
  34. candemote = false,
  35. category = "Citizens",
  36. })
  37.  
  38. TEAM_POLICE = DarkRP.createJob("Civil Protection", {
  39. color = Color(25, 25, 170, 255),
  40. model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
  41. description = [[The protector of every citizen that lives in the city.
  42. You have the power to arrest criminals and protect innocents.
  43. Hit a player with your arrest baton to put them in jail.
  44. Bash a player with a stunstick and they may learn to obey the law.
  45. The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  46. The Battering Ram can also unfreeze frozen props (if enabled).
  47. Type /wanted <name> to alert the public to the presence of a criminal.]],
  48. weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
  49. command = "cp",
  50. max = 4,
  51. salary = GAMEMODE.Config.normalsalary * 1.45,
  52. admin = 0,
  53. vote = true,
  54. hasLicense = true,
  55. ammo = {
  56. ["pistol"] = 60,
  57. },
  58. category = "Civil Protection",
  59. })
  60.  
  61. TEAM_GUN = DarkRP.createJob("Gun Dealer", {
  62. color = Color(255, 140, 0, 255),
  63. model = "models/player/monk.mdl",
  64. description = [[A Gun Dealer is the only person who can sell guns to other people.
  65. Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
  66. weapons = {},
  67. command = "gundealer",
  68. max = 2,
  69. salary = GAMEMODE.Config.normalsalary,
  70. admin = 0,
  71. vote = false,
  72. hasLicense = false,
  73. category = "Citizens",
  74. })
  75.  
  76. TEAM_MEDIC = DarkRP.createJob("Medic", {
  77. color = Color(47, 79, 79, 255),
  78. model = "models/player/kleiner.mdl",
  79. description = [[With your medical knowledge you work to restore players to full health.
  80. Without a medic, people cannot be healed.
  81. Left click with the Medical Kit to heal other players.
  82. Right click with the Medical Kit to heal yourself.]],
  83. weapons = {"med_kit"},
  84. command = "medic",
  85. max = 3,
  86. salary = GAMEMODE.Config.normalsalary,
  87. admin = 0,
  88. vote = false,
  89. hasLicense = false,
  90. medic = true,
  91. category = "Citizens",
  92. })
  93.  
  94. TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
  95. color = Color(20, 20, 255, 255),
  96. model = "models/player/combine_soldier_prisonguard.mdl",
  97. description = [[The Chief is the leader of the Civil Protection unit.
  98. Coordinate the police force to enforce law in the city.
  99. Hit a player with arrest baton to put them in jail.
  100. Bash a player with a stunstick and they may learn to obey the law.
  101. The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
  102. Type /wanted <name> to alert the public to the presence of a criminal.
  103. Type /jailpos to set the Jail Position]],
  104. weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"},
  105. command = "chief",
  106. max = 1,
  107. salary = GAMEMODE.Config.normalsalary * 1.67,
  108. admin = 0,
  109. vote = false,
  110. hasLicense = true,
  111. chief = true,
  112. NeedToChangeFrom = TEAM_POLICE,
  113. ammo = {
  114. ["pistol"] = 60,
  115. },
  116. category = "Civil Protection",
  117. })
  118.  
  119. TEAM_MAYOR = DarkRP.createJob("Mayor", {
  120. color = Color(150, 20, 20, 255),
  121. model = "models/player/breen.mdl",
  122. description = [[The Mayor of the city creates laws to govern the city.
  123. If you are the mayor you may create and accept warrants.
  124. Type /wanted <name> to warrant a player.
  125. Type /jailpos to set the Jail Position.
  126. Type /lockdown initiate a lockdown of the city.
  127. Everyone must be inside during a lockdown.
  128. The cops patrol the area.
  129. /unlockdown to end a lockdown]],
  130. weapons = {},
  131. command = "mayor",
  132. max = 1,
  133. salary = GAMEMODE.Config.normalsalary * 1.89,
  134. admin = 0,
  135. vote = true,
  136. hasLicense = false,
  137. mayor = true,
  138. category = "Civil Protection",
  139. })
  140.  
  141. TEAM_HOBO = DarkRP.createJob("Hobo", {
  142. color = Color(80, 45, 0, 255),
  143. model = "models/player/corpse1.mdl",
  144. description = [[The lowest member of society. Everybody laughs at you.
  145. You have no home.
  146. Beg for your food and money
  147. Sing for everyone who passes to get money
  148. Make your own wooden home somewhere in a corner or outside someone else's door]],
  149. weapons = {"weapon_bugbait"},
  150. command = "hobo",
  151. max = 5,
  152. salary = 0,
  153. admin = 0,
  154. vote = false,
  155. hasLicense = false,
  156. candemote = false,
  157. hobo = true,
  158. category = "Citizens",
  159. })
  160.  
  161. if not DarkRP.disabledDefaults["modules"]["hungermod"] then
  162. TEAM_COOK = DarkRP.createJob("Cook", {
  163. color = Color(238, 99, 99, 255),
  164. model = "models/player/mossman.mdl",
  165. description = [[As a cook, it is your responsibility to feed the other members of your city.
  166. You can spawn a microwave and sell the food you make:
  167. /buymicrowave]],
  168. weapons = {},
  169. command = "cook",
  170. max = 2,
  171. salary = 45,
  172. admin = 0,
  173. vote = false,
  174. hasLicense = false,
  175. cook = true
  176. })
  177. end
  178.  
  179. -- Compatibility for when default teams are disabled
  180. TEAM_CITIZEN = TEAM_CITIZEN or -1
  181. TEAM_POLICE = TEAM_POLICE or -1
  182. TEAM_GUN = TEAM_GUN or -1
  183. TEAM_MEDIC = TEAM_MEDIC or -1
  184. TEAM_CHIEF = TEAM_CHIEF or -1
  185. TEAM_MAYOR = TEAM_MAYOR or -1
  186. TEAM_HOBO = TEAM_HOBO or -1
  187. TEAM_COOK = TEAM_COOK or -1
  188.  
  189. -- Door groups
  190. AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
  191. AddDoorGroup("Gundealer only", TEAM_GUN)
  192.  
  193. -- Group chats
  194. DarkRP.createGroupChat(function(ply) return ply:isCP() end)
  195. DarkRP.createGroupChat(TEAM_MOB, TEAM_GANG)
  196. DarkRP.createGroupChat(function(listener, ply) return not ply or ply:Team() == listener:Team() end)
  197.  
  198. -- Initial team when first spawning
  199. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  200.  
  201. -- Teams that belong to Civil Protection
  202. GAMEMODE.CivilProtection = {
  203. [TEAM_POLICE] = true,
  204. [TEAM_CHIEF] = true,
  205. [TEAM_MAYOR] = true,
  206. }
  207.  
  208. -- Hitman team
  209. DarkRP.addHitmanTeam(TEAM_MOB)
  210.  
  211. -- Demote groups
  212. DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
  213. DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
  214.  
  215. -- Default categories
  216. DarkRP.createCategory{
  217. name = "Citizens",
  218. categorises = "jobs",
  219. startExpanded = true,
  220. color = Color(0, 107, 0, 255),
  221. canSee = fp{fn.Id, true},
  222. sortOrder = 100,
  223. }
  224.  
  225. DarkRP.createCategory{
  226. name = "Civil Protection",
  227. categorises = "jobs",
  228. startExpanded = true,
  229. color = Color(25, 25, 170, 255),
  230. canSee = fp{fn.Id, true},
  231. sortOrder = 101,
  232. }
  233.  
  234. DarkRP.createCategory{
  235. name = "Other",
  236. categorises = "jobs",
  237. startExpanded = true,
  238. color = Color(0, 107, 0, 255),
  239. canSee = fp{fn.Id, true},
  240. sortOrder = 255,
  241. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement