Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.81 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. })
  36.  
  37. TEAM_POLICE = DarkRP.createJob("Civil Protection", {
  38. color = Color(25, 25, 170, 255),
  39. model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
  40. description = [[The protector of every citizen that lives in the city.
  41. You have the power to arrest criminals and protect innocents.
  42. Hit a player with your arrest baton to put them in jail.
  43. Bash a player with a stunstick and they may learn to obey the law.
  44. The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  45. The Battering Ram can also unfreeze frozen props (if enabled).
  46. Type /wanted <name> to alert the public to the presence of a criminal.]],
  47. weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
  48. command = "cp",
  49. max = 4,
  50. salary = GAMEMODE.Config.normalsalary * 1.45,
  51. admin = 0,
  52. vote = true,
  53. hasLicense = true,
  54. ammo = {
  55. ["pistol"] = 60,
  56. }
  57. })
  58.  
  59. TEAM_GANG = DarkRP.createJob("Gangster", {
  60. color = Color(75, 75, 75, 255),
  61. model = {
  62. "models/player/Group03/Female_01.mdl",
  63. "models/player/Group03/Female_02.mdl",
  64. "models/player/Group03/Female_03.mdl",
  65. "models/player/Group03/Female_04.mdl",
  66. "models/player/Group03/Female_06.mdl",
  67. "models/player/group03/male_01.mdl",
  68. "models/player/Group03/Male_02.mdl",
  69. "models/player/Group03/male_03.mdl",
  70. "models/player/Group03/Male_04.mdl",
  71. "models/player/Group03/Male_05.mdl",
  72. "models/player/Group03/Male_06.mdl",
  73. "models/player/Group03/Male_07.mdl",
  74. "models/player/Group03/Male_08.mdl",
  75. "models/player/Group03/Male_09.mdl"},
  76. description = [[The lowest person of crime.
  77. A gangster generally works for the Mobboss who runs the crime family.
  78. The Mob boss sets your agenda and you follow it or you might be punished.]],
  79. weapons = {},
  80. command = "gangster",
  81. max = 3,
  82. salary = GAMEMODE.Config.normalsalary,
  83. admin = 0,
  84. vote = false,
  85. hasLicense = false
  86. })
  87.  
  88. TEAM_MOB = DarkRP.createJob("Mob boss", {
  89. color = Color(25, 25, 25, 255),
  90. model = "models/player/gman_high.mdl",
  91. description = [[The Mob boss is the boss of the criminals in the city.
  92. With his power he coordinates the gangsters and forms an efficient crime organization.
  93. He has the ability to break into houses by using a lockpick.
  94. The Mob boss posesses the ability to unarrest you.]],
  95. weapons = {"lockpick", "unarrest_stick"},
  96. command = "mobboss",
  97. max = 1,
  98. salary = GAMEMODE.Config.normalsalary * 1.34,
  99. admin = 0,
  100. vote = false,
  101. hasLicense = false
  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. })
  117.  
  118. TEAM_MEDIC = DarkRP.createJob("Medic", {
  119. color = Color(47, 79, 79, 255),
  120. model = "models/player/kleiner.mdl",
  121. description = [[With your medical knowledge you work to restore players to full health.
  122. Without a medic, people cannot be healed.
  123. Left click with the Medical Kit to heal other players.
  124. Right click with the Medical Kit to heal yourself.]],
  125. weapons = {"med_kit"},
  126. command = "medic",
  127. max = 3,
  128. salary = GAMEMODE.Config.normalsalary,
  129. admin = 0,
  130. vote = false,
  131. hasLicense = false,
  132. medic = true
  133. })
  134.  
  135. TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
  136. color = Color(20, 20, 255, 255),
  137. model = "models/player/combine_soldier_prisonguard.mdl",
  138. description = [[The Chief is the leader of the Civil Protection unit.
  139. Coordinate the police force to enforce law in the city.
  140. Hit a player with arrest baton to put them in jail.
  141. Bash a player with a stunstick and they may learn to obey the law.
  142. The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
  143. Type /wanted <name> to alert the public to the presence of a criminal.
  144. Type /jailpos to set the Jail Position]],
  145. weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"},
  146. command = "chief",
  147. max = 1,
  148. salary = GAMEMODE.Config.normalsalary * 1.67,
  149. admin = 0,
  150. vote = false,
  151. hasLicense = true,
  152. chief = true,
  153. NeedToChangeFrom = TEAM_POLICE,
  154. ammo = {
  155. ["pistol"] = 60,
  156. }
  157. })
  158.  
  159. TEAM_MAYOR = DarkRP.createJob("Mayor", {
  160. color = Color(150, 20, 20, 255),
  161. model = "models/player/breen.mdl",
  162. description = [[The Mayor of the city creates laws to govern the city.
  163. If you are the mayor you may create and accept warrants.
  164. Type /wanted <name> to warrant a player.
  165. Type /jailpos to set the Jail Position.
  166. Type /lockdown initiate a lockdown of the city.
  167. Everyone must be inside during a lockdown.
  168. The cops patrol the area.
  169. /unlockdown to end a lockdown]],
  170. weapons = {},
  171. command = "mayor",
  172. max = 1,
  173. salary = GAMEMODE.Config.normalsalary * 1.89,
  174. admin = 0,
  175. vote = true,
  176. hasLicense = false,
  177. mayor = true
  178. })
  179.  
  180. TEAM_HOBO = DarkRP.createJob("Hobo", {
  181. color = Color(80, 45, 0, 255),
  182. model = "models/player/corpse1.mdl",
  183. description = [[The lowest member of society. Everybody laughs at you.
  184. You have no home.
  185. Beg for your food and money
  186. Sing for everyone who passes to get money
  187. Make your own wooden home somewhere in a corner or outside someone else's door]],
  188. weapons = {"weapon_bugbait"},
  189. command = "hobo",
  190. max = 5,
  191. salary = 0,
  192. admin = 0,
  193. vote = false,
  194. hasLicense = false,
  195. candemote = false,
  196. hobo = true
  197. })
  198.  
  199. if not DarkRP.disabledDefaults["modules"]["hungermod"] then
  200. TEAM_COOK = DarkRP.createJob("Cook", {
  201. color = Color(238, 99, 99, 255),
  202. model = "models/player/mossman.mdl",
  203. description = [[As a cook, it is your responsibility to feed the other members of your city.
  204. You can spawn a microwave and sell the food you make:
  205. /buymicrowave]],
  206. weapons = {},
  207. command = "cook",
  208. max = 2,
  209. salary = 45,
  210. admin = 0,
  211. vote = false,
  212. hasLicense = false,
  213. cook = true
  214. })
  215. end
  216.  
  217. -- Compatibility for when default teams are disabled
  218. TEAM_CITIZEN = TEAM_CITIZEN or -1
  219. TEAM_POLICE = TEAM_POLICE or -1
  220. TEAM_GANG = TEAM_GANG or -1
  221. TEAM_MOB = TEAM_MOB or -1
  222. TEAM_GUN = TEAM_GUN or -1
  223. TEAM_MEDIC = TEAM_MEDIC or -1
  224. TEAM_CHIEF = TEAM_CHIEF or -1
  225. TEAM_MAYOR = TEAM_MAYOR or -1
  226. TEAM_HOBO = TEAM_HOBO or -1
  227.  
  228.  
  229. /*
  230. --------------------------------------------------------
  231. HOW TO MAKE A DOOR GROUP
  232. --------------------------------------------------------
  233. AddDoorGroup("NAME OF THE GROUP HERE, you see this when looking at a door", Team1, Team2, team3, team4, etc.)
  234.  
  235.  
  236. The default door groups, can also be used as examples:
  237. */
  238. AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
  239. AddDoorGroup("Gundealer only", TEAM_GUN)
  240. AddDoorGroup("Government", TEAM_CHIEF, TEAM_POLICE, TEAM_POLICE, TEAM_MAYOR, TEAM_SWAT, TEAM_SWATC, TEAM_SS)
  241.  
  242.  
  243. /*
  244. --------------------------------------------------------
  245. HOW TO MAKE AN AGENDA
  246. --------------------------------------------------------
  247. DarkRP.createAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda))
  248. It's possible to have multiple managers. In that case you have to put all the managers in '{}' (see Police agenda)
  249.  
  250. The default agendas, can also be used as examples:
  251. */
  252. DarkRP.createAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
  253. DarkRP.createAgenda("Police agenda", {TEAM_MAYOR, TEAM_CHIEF}, {TEAM_POLICE})
  254.  
  255.  
  256. /*
  257. ---------------------------------------------------------------------------
  258. HOW TO MAKE A GROUP CHAT
  259. ---------------------------------------------------------------------------
  260. Pick one!
  261. GAMEMODE:AddGroupChat(List of team variables separated by comma)
  262.  
  263. or
  264.  
  265. GAMEMODE:AddGroupChat(a function with ply as argument that returns whether a random player is in one chat group)
  266. This one is for people who know how to script Lua.
  267.  
  268. */
  269. GAMEMODE:AddGroupChat(function(ply) return ply:isCP() end)
  270. GAMEMODE:AddGroupChat(TEAM_MOB, TEAM_GANG)
  271. GAMEMODE:AddGroupChat(TEAM_CHIEF, TEAM_POLICE, TEAM_POLICEV, TEAM_SWATC, TEAM_MAYOR, TEAM_SWAT, TEAM_SS)
  272.  
  273. /*---------------------------------------------------------------------------
  274. Define which team joining players spawn into and what team you change to if demoted
  275. ---------------------------------------------------------------------------*/
  276. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  277.  
  278. /*---------------------------------------------------------------------------
  279. Define which teams belong to civil protection
  280. Civil protection can set warrants, make people wanted and do some other police related things
  281. ---------------------------------------------------------------------------*/
  282. GAMEMODE.CivilProtection = {
  283. [TEAM_POLICE] = true,
  284. [TEAM_CHIEF] = true,
  285. [TEAM_MAYOR] = true,
  286. [TEAM_SWATC] = true,
  287. [TEAM_SWAT] = true,
  288. [TEAM_POLICEV] = true,
  289. }
  290.  
  291. /*---------------------------------------------------------------------------
  292. Enable hitman goodies on this team
  293. ---------------------------------------------------------------------------*/
  294. DarkRP.addHitmanTeam(TEAM_MOB)
  295.  
  296. /*---------------------------------------------------------------------------
  297. Default demote groups
  298. ---------------------------------------------------------------------------*/
  299. DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
  300. DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement