Advertisement
Guest User

Untitled

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