Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2014
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.07 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", "m9k_colt1911", "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. })
  55.  
  56. TEAM_GANG = DarkRP.createJob("Gangster", {
  57. color = Color(75, 75, 75, 255),
  58. model = {
  59. "models/player/Group03/Female_01.mdl",
  60. "models/player/Group03/Female_02.mdl",
  61. "models/player/Group03/Female_03.mdl",
  62. "models/player/Group03/Female_04.mdl",
  63. "models/player/Group03/Female_06.mdl",
  64. "models/player/group03/male_01.mdl",
  65. "models/player/Group03/Male_02.mdl",
  66. "models/player/Group03/male_03.mdl",
  67. "models/player/Group03/Male_04.mdl",
  68. "models/player/Group03/Male_05.mdl",
  69. "models/player/Group03/Male_06.mdl",
  70. "models/player/Group03/Male_07.mdl",
  71. "models/player/Group03/Male_08.mdl",
  72. "models/player/Group03/Male_09.mdl"},
  73. description = [[The lowest person of crime.
  74. A gangster generally works for the Mobboss who runs the crime family.
  75. The Mob boss sets your agenda and you follow it or you might be punished.]],
  76. weapons = {},
  77. command = "gangster",
  78. max = 3,
  79. salary = GAMEMODE.Config.normalsalary,
  80. admin = 0,
  81. vote = false,
  82. hasLicense = false
  83. })
  84.  
  85. TEAM_MOB = DarkRP.createJob("Mob boss", {
  86. color = Color(25, 25, 25, 255),
  87. model = "models/player/gman_high.mdl",
  88. description = [[The Mob boss is the boss of the criminals in the city.
  89. With his power he coordinates the gangsters and forms an efficient crime organization.
  90. He has the ability to break into houses by using a lockpick.
  91. The Mob boss posesses the ability to unarrest you.]],
  92. weapons = {"lockpick", "unarrest_stick"},
  93. command = "mobboss",
  94. max = 1,
  95. salary = GAMEMODE.Config.normalsalary * 1.34,
  96. admin = 0,
  97. vote = false,
  98. hasLicense = false
  99. })
  100.  
  101. TEAM_GUN = DarkRP.createJob("Gun Dealer", {
  102. color = Color(255, 140, 0, 255),
  103. model = "models/player/monk.mdl",
  104. description = [[A Gun Dealer is the only person who can sell guns to other people.
  105. Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
  106. weapons = {},
  107. command = "gundealer",
  108. max = 2,
  109. salary = GAMEMODE.Config.normalsalary,
  110. admin = 0,
  111. vote = false,
  112. hasLicense = false
  113. })
  114.  
  115. TEAM_MEDIC = DarkRP.createJob("Medic", {
  116. color = Color(47, 79, 79, 255),
  117. model = "models/player/kleiner.mdl",
  118. description = [[With your medical knowledge you work to restore players to full health.
  119. Without a medic, people cannot be healed.
  120. Left click with the Medical Kit to heal other players.
  121. Right click with the Medical Kit to heal yourself.]],
  122. weapons = {"med_kit"},
  123. command = "medic",
  124. max = 3,
  125. salary = GAMEMODE.Config.normalsalary,
  126. admin = 0,
  127. vote = false,
  128. hasLicense = false,
  129. medic = true
  130. })
  131.  
  132. TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
  133. color = Color(20, 20, 255, 255),
  134. model = "models/player/combine_soldier_prisonguard.mdl",
  135. description = [[The Chief is the leader of the Civil Protection unit.
  136. Coordinate the police force to enforce law in the city.
  137. Hit a player with arrest baton to put them in jail.
  138. Bash a player with a stunstick and they may learn to obey the law.
  139. The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
  140. Type /wanted <name> to alert the public to the presence of a criminal.
  141. Type /jailpos to set the Jail Position]],
  142. weapons = {"arrest_stick", "unarrest_stick", "m9k_usp", "stunstick", "door_ram", "weaponchecker"},
  143. command = "chief",
  144. max = 1,
  145. salary = GAMEMODE.Config.normalsalary * 1.67,
  146. admin = 0,
  147. vote = false,
  148. hasLicense = true,
  149. chief = true,
  150. NeedToChangeFrom = TEAM_POLICE
  151. })
  152.  
  153. TEAM_MAYOR = DarkRP.createJob("Mayor", {
  154. color = Color(150, 20, 20, 255),
  155. model = "models/player/breen.mdl",
  156. description = [[The Mayor of the city creates laws to govern the city.
  157. If you are the mayor you may create and accept warrants.
  158. Type /wanted <name> to warrant a player.
  159. Type /jailpos to set the Jail Position.
  160. Type /lockdown initiate a lockdown of the city.
  161. Everyone must be inside during a lockdown.
  162. The cops patrol the area.
  163. /unlockdown to end a lockdown]],
  164. weapons = {},
  165. command = "mayor",
  166. max = 1,
  167. salary = GAMEMODE.Config.normalsalary * 1.89,
  168. admin = 0,
  169. vote = true,
  170. hasLicense = false,
  171. mayor = true
  172. })
  173.  
  174. TEAM_HOBO = DarkRP.createJob("Hobo", {
  175. color = Color(80, 45, 0, 255),
  176. model = "models/player/corpse1.mdl",
  177. description = [[The lowest member of society. Everybody laughs at you.
  178. You have no home.
  179. Beg for your food and money
  180. Sing for everyone who passes to get money
  181. Make your own wooden home somewhere in a corner or outside someone else's door]],
  182. weapons = {"weapon_bugbait"},
  183. command = "hobo",
  184. max = 5,
  185. salary = 0,
  186. admin = 0,
  187. vote = false,
  188. hasLicense = false,
  189. candemote = false,
  190. hobo = true
  191. })
  192.  
  193. TEAM_SWAT = AddExtraTeam("S.W.A.T |DONATOR|", {
  194. color = Color(0, 45, 255, 255),
  195. model = "models/player/swat.mdl",
  196. description = [[A SWAT (special weapons and tactics)team is an elite paramilitary tactical unit in American law enforcement departments as well as some foreign police departments. They are trained to perform high-risk operations that fall outside of the abilities of regular officers. Their duties include performing hostage rescues and counter-terrorism operations, serving high risk arrest and search warrants, subduing barricaded suspects, and engaging heavily-armed criminals. A SWAT team is often equipped with specialized firearms including submachine guns, assault rifles, breaching shotguns, riot control agents, stun grenades and sniper rifles. They have specialized equipment including heavy body armor, ballistic shields, entry tools, armored vehicles, advanced night vision optics, and motion detectors for covertly determining the positions of hostages or hostage takers inside of an enclosed structure. ]],
  197. weapons = {"arrest_stick", "unarrest_stick", "m9k_usp", "m9k_m4a1", "stunstick", "door_ram", "weaponchecker"},
  198. command = "swat",
  199. max = 3,
  200. salary = 80,
  201. admin = 0,
  202. vote = false,
  203. hasLicense = true, nil,
  204. playerSpawn = function(ply) ply:SetArmor(100) end,
  205. customCheck = function(ply) return CLIENT or ply:CheckGroup("Donator") or ply:IsAdmin() end,
  206. CustomCheckFailMsg = "This job is donator only!"
  207. })
  208.  
  209. TEAM_SECURITY = AddExtraTeam("Security Guard", {
  210. color = Color(0, 200, 255, 100),
  211. model = {
  212. "models/player/guard_pack/guard_01.mdl",
  213. "models/player/guard_pack/guard_02.mdl",
  214. "models/player/guard_pack/guard_03.mdl",
  215. "models/player/guard_pack/guard_04.mdl",
  216. "models/player/guard_pack/guard_05.mdl",
  217. "models/player/guard_pack/guard_06.mdl",
  218. "models/player/guard_pack/guard_07.mdl",
  219. "models/player/guard_pack/guard_08.mdl",
  220. "models/player/guard_pack/guard_09.mdl",
  221. },
  222. description = [[Security officers protect people and property, and maintain crowd control.
  223. Security officers may perform the following tasks:
  224.  
  225. 1. Patrol areas and check doors, gates and windows for signs of unauthorised entry
  226. 2. Watch for irregularities (such as unlocked security doors) and report incidents or problems to the appropriate authority
  227. 3. record times of inspections and presence of authorised persons
  228. 4. Observe and report suspects to police, or apprehend offenders when appropriate and detain them until police arrive
  229. 5. Issue security passes, give directions and make security arrangements for authorised visitors
  230. 6. Check travellers and their hand luggage to detect concealed weapons and explosives
  231. 6. Detect and report fraud, shoplifting and other unlawful acts by employees or patrons of business establishments
  232. 7. Provide armed protection for specific organisations (banks, for example)
  233. 8. Provide assistance to the public and clients.]],
  234. weapons = {"m9k_sig_p229r", "stunstick", "weaponchecker"},
  235. command = "security",
  236. max = 3,
  237. salary = 70,
  238. admin = 0,
  239. vote = false,
  240. hasLicense = true, nil,
  241. playerSpawn = function(ply) ply:SetArmor(100) end,
  242. })
  243.  
  244. -- Compatibility for when default teams are disabled
  245. TEAM_CITIZEN = TEAM_CITIZEN or -1
  246. TEAM_POLICE = TEAM_POLICE or -1
  247. TEAM_GANG = TEAM_GANG or -1
  248. TEAM_MOB = TEAM_MOB or -1
  249. TEAM_GUN = TEAM_GUN or -1
  250. TEAM_MEDIC = TEAM_MEDIC or -1
  251. TEAM_CHIEF = TEAM_CHIEF or -1
  252. TEAM_MAYOR = TEAM_MAYOR or -1
  253. TEAM_HOBO = TEAM_HOBO or -1
  254.  
  255.  
  256. /*
  257. --------------------------------------------------------
  258. HOW TO MAKE A DOOR GROUP
  259. --------------------------------------------------------
  260. AddDoorGroup("NAME OF THE GROUP HERE, you see this when looking at a door", Team1, Team2, team3, team4, etc.)
  261.  
  262.  
  263. The default door groups, can also be used as examples:
  264. */
  265. AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
  266. AddDoorGroup("Gundealer only", TEAM_GUN)
  267.  
  268.  
  269. /*
  270. --------------------------------------------------------
  271. HOW TO MAKE AN AGENDA
  272. --------------------------------------------------------
  273. AddAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda))
  274.  
  275. The default agenda's, can also be used as examples:
  276. */
  277. AddAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
  278. AddAgenda("Police agenda", TEAM_MAYOR, {TEAM_CHIEF, TEAM_POLICE})
  279.  
  280.  
  281. /*
  282. ---------------------------------------------------------------------------
  283. HOW TO MAKE A GROUP CHAT
  284. ---------------------------------------------------------------------------
  285. Pick one!
  286. GAMEMODE:AddGroupChat(List of team variables separated by comma)
  287.  
  288. or
  289.  
  290. GAMEMODE:AddGroupChat(a function with ply as argument that returns whether a random player is in one chat group)
  291. This one is for people who know how to script Lua.
  292.  
  293. */
  294. GAMEMODE:AddGroupChat(function(ply) return ply:isCP() end)
  295. GAMEMODE:AddGroupChat(TEAM_MOB, TEAM_GANG)
  296.  
  297. /*---------------------------------------------------------------------------
  298. Define which team joining players spawn into and what team you change to if demoted
  299. ---------------------------------------------------------------------------*/
  300. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  301.  
  302. /*---------------------------------------------------------------------------
  303. Define which teams belong to civil protection
  304. Civil protection can set warrants, make people wanted and do some other police related things
  305. ---------------------------------------------------------------------------*/
  306. GAMEMODE.CivilProtection = {
  307. [TEAM_POLICE] = true,
  308. [TEAM_CHIEF] = true,
  309. [TEAM_MAYOR] = true,
  310. [TEAM_SWAT] = true,
  311. }
  312.  
  313. /*---------------------------------------------------------------------------
  314. Enable hitman goodies on this team
  315. ---------------------------------------------------------------------------*/
  316. DarkRP.addHitmanTeam(TEAM_MOB)
  317.  
  318. /*---------------------------------------------------------------------------
  319. Default demote groups
  320. ---------------------------------------------------------------------------*/
  321. DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF, TEAM_SWAT})
  322. DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement