Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.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. })
  36.  
  37. TEAM_HITMAN = DarkRP.createJob("Hitman", {
  38. color = Color(20, 20, 20, 255),
  39. model = {"models/player/agent_47.mdl"},
  40. description = [[People give you a target, you kill the target without letting the police notice you.]],
  41. weapons = {"m9k_coltpython"},
  42. command = "hitman",
  43. max = 4,
  44. salary = 100,
  45. admin = 0,
  46. vote = false,
  47. hasLicense = false,
  48. candemote = false
  49. })
  50.  
  51. TEAM_POLICE = DarkRP.createJob("Civil Protection", {
  52. color = Color(25, 25, 170, 255),
  53. model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
  54. description = [[The protector of every citizen that lives in the city.
  55. You have the power to arrest criminals and protect innocents.
  56. Hit a player with your arrest baton to put them in jail.
  57. Bash a player with a stunstick and they may learn to obey the law.
  58. The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  59. The Battering Ram can also unfreeze frozen props (if enabled).
  60. Type /wanted <name> to alert the public to the presence of a criminal.]],
  61. weapons = {"arrest_stick", "unarrest_stick", "m9k_coltpython", "stunstick", "door_ram", "weaponchecker"},
  62. command = "cp",
  63. max = 4,
  64. salary = GAMEMODE.Config.normalsalary * 1.45,
  65. admin = 0,
  66. vote = true,
  67. hasLicense = true,
  68. ammo = {
  69. ["pistol"] = 60,
  70. }
  71. })
  72.  
  73. TEAM_GANG = DarkRP.createJob("Gangster", {
  74. color = Color(75, 75, 75, 255),
  75. model = {
  76. "models/player/Group03/Female_01.mdl",
  77. "models/player/Group03/Female_02.mdl",
  78. "models/player/Group03/Female_03.mdl",
  79. "models/player/Group03/Female_04.mdl",
  80. "models/player/Group03/Female_06.mdl",
  81. "models/player/group03/male_01.mdl",
  82. "models/player/Group03/Male_02.mdl",
  83. "models/player/Group03/male_03.mdl",
  84. "models/player/Group03/Male_04.mdl",
  85. "models/player/Group03/Male_05.mdl",
  86. "models/player/Group03/Male_06.mdl",
  87. "models/player/Group03/Male_07.mdl",
  88. "models/player/Group03/Male_08.mdl",
  89. "models/player/Group03/Male_09.mdl"},
  90. description = [[The lowest person of crime.
  91. A gangster generally works for the Mobboss who runs the crime family.
  92. The Mob boss sets your agenda and you follow it or you might be punished.]],
  93. weapons = {},
  94. command = "gangster",
  95. max = 3,
  96. salary = GAMEMODE.Config.normalsalary,
  97. admin = 0,
  98. vote = false,
  99. hasLicense = false
  100. })
  101.  
  102. TEAM_THIEF = DarkRP.createJob("Thief", {
  103. color = Color(0, 0, 0, 255),
  104. model = "models/code_gs/robber/robberplayer.mdl",
  105. description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
  106. weapons = {"lockpick","keypad_cracker","brax_crowbar",}, -- You may wanna find a pickpocket swep and add it here.
  107. command = "thief",
  108. max = 2,
  109. salary = 65,
  110. admin = 0,
  111. vote = false,
  112. hasLicense = false
  113. })
  114.  
  115. TEAM_SPIDERMAN = DarkRP.createJob("Spider Man", {
  116. color = Color(0, 0, 0, 255),
  117. model = "models\player\slow\jamis\spiderman\slow.mdl",
  118. description = [[This is a donator special job. You are Spider Man, protect the city from crime and chaos!]],
  119. weapons = {"lockpick","keypad_cracker","spider_gun","weapon_fists",}, -- You may wanna find a pickpocket swep and add it here.
  120. command = "spiderman",
  121. max = 1,
  122. salary = 250,
  123. admin = 0,
  124. vote = true,
  125. hasLicense = false,
  126. customCheck = function(ply) return ply:GetNWString("usergroup") == "donator" or ply:GetNWString("usergroup") == "admin" or ply:GetNWString("usergroup") == "superadmin" or ply:GetNWString("usergroup") == "owner" end
  127. })
  128.  
  129. TEAM_MD = DarkRP.createJob("President's Daughter", {
  130. color = Color(255,100,100,255),
  131. model = "models/player/alyx.mdl",
  132. description = [[You are the president's daughter, walk around with your dad,
  133. just chill around. But be careful, you never know when somebody
  134. is waiting to kidnap you!]],
  135. weapons = {},
  136. command = "presidentsdaughter",
  137. max = 1,
  138. salary = 80,
  139. admin = 0,
  140. vote = false,
  141. hasLicense = false
  142. })
  143.  
  144. TEAM_SWAT = DarkRP.createJob("S.W.A.T", {
  145. color = Color(80, 45, 0, 255),
  146. model = {"models/player/swat.mdl"},
  147. description = [[This is a donator special job. Your task is to work with your other operatives and keep the city safe. You should just try to camp out at PD until backup is needed.]],
  148. weapons = {"arrest_stick", "unarrest_stick", "m9k_glock", "m9k_ak47", "m9k_intervention", "m9k_m4a1", "m9k_mp5", "stunstick", "door_ram", "weaponchecker"},
  149. command = "swat",
  150. max = 4,
  151. salary = GAMEMODE.Config.normalsalary * 1.45,
  152. admin = 0,
  153. vote = true,
  154. customCheck = function(ply) return ply:GetNWString("usergroup") == "donator" or ply:GetNWString("usergroup") == "admin" or ply:GetNWString("usergroup") == "superadmin" or ply:GetNWString("usergroup") == "owner" end
  155. hasLicense = true,
  156. ammo = {
  157. ["pistol"] = 60,
  158. }
  159. })
  160.  
  161. TEAM_SS = DarkRP.createJob("Secret Service", {
  162. color = Color(100, 20, 20, 255),
  163. model = "models/player/bond.mdl",
  164. description = [[You are responsible for protecting the mayor.
  165. Take care of the old fellow, he is vanuarable to terrorists all the time! Before he enters a room, you need to make sure its secure.]],
  166. weapons = {"m9k_colt1911", "stunstick", "weaponchecker"},
  167. command = "secretservice",
  168. max = 2,
  169. salary = 65,
  170. admin = 0,
  171. vote = true,
  172. hasLicense = false,
  173. ammo = {
  174. ["pistol"] = 60,
  175. }
  176. })
  177.  
  178. TEAM_MOB = DarkRP.createJob("Mob Boss", {
  179. color = Color(25, 25, 25, 255),
  180. model = "models/player/gman_high.mdl",
  181. description = [[The Mob boss is the boss of the criminals in the city.
  182. With his power he coordinates the gangsters and forms an efficient crime organization.
  183. He has the ability to break into houses by using a lockpick.
  184. The Mob boss posesses the ability to unarrest you.]],
  185. weapons = {"lockpick", "unarrest_stick"},
  186. command = "mobboss",
  187. max = 1,
  188. salary = GAMEMODE.Config.normalsalary * 1.34,
  189. admin = 0,
  190. vote = false,
  191. hasLicense = false
  192. })
  193.  
  194. TEAM_GUN = DarkRP.createJob("Gun Dealer", {
  195. color = Color(255, 140, 0, 255),
  196. model = "models/player/monk.mdl",
  197. description = [[A Gun Dealer is the only person who can guns to other people.
  198. Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
  199. weapons = {},
  200. command = "gundealer",
  201. max = 2,
  202. salary = GAMEMODE.Config.normalsalary,
  203. admin = 0,
  204. vote = false,
  205. hasLicense = false
  206. })
  207.  
  208. TEAM_MEDIC = DarkRP.createJob("Doctor", {
  209. color = Color(47, 79, 79, 255),
  210. model = "models/player/kleiner.mdl",
  211. description = [[With your medical knowledge you work to restore players to full health.
  212. Without a medic, people cannot be healed.
  213. Left click with the Medical Kit to heal other players.
  214. Right click with the Medical Kit to heal yourself.]],
  215. weapons = {"med_kit"},
  216. command = "doctor",
  217. max = 3,
  218. salary = GAMEMODE.Config.normalsalary,
  219. admin = 0,
  220. vote = false,
  221. hasLicense = false,
  222. medic = true
  223. })
  224.  
  225. TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
  226. color = Color(20, 20, 255, 255),
  227. model = "models/player/combine_soldier_prisonguard.mdl",
  228. description = [[The Chief is the leader of the Civil Protection unit.
  229. Coordinate the police force to enforce law in the city.
  230. Hit a player with arrest baton to put them in jail.
  231. Bash a player with a stunstick and they may learn to obey the law.
  232. The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
  233. Type /wanted <name> to alert the public to the presence of a criminal.
  234. Type /jailpos to set the Jail Position]],
  235. weapons = {"arrest_stick", "unarrest_stick", "m9k_deagle", "stunstick", "door_ram", "weaponchecker"},
  236. command = "chief",
  237. max = 1,
  238. salary = GAMEMODE.Config.normalsalary * 1.67,
  239. admin = 0,
  240. vote = false,
  241. hasLicense = true,
  242. chief = true,
  243. NeedToChangeFrom = TEAM_POLICE,
  244. ammo = {
  245. ["pistol"] = 60,
  246. }
  247. })
  248.  
  249. TEAM_MAYOR = DarkRP.createJob("President", {
  250. color = Color(150, 20, 20, 255),
  251. model = "models/obama/obama.mdl",
  252. description = [[You are the president of the country.
  253. Type /wanted <name> to warrant a player.
  254. Type /jailpos to set the Jail Position.
  255. Type /lockdown initiate a lockdown of the city.
  256. Everyone must be inside during a lockdown.
  257. The cops patrol the area.
  258. /unlockdown to end a lockdown]],
  259. weapons = {},
  260. command = "president",
  261. max = 1,
  262. salary = GAMEMODE.Config.normalsalary * 1.89,
  263. admin = 0,
  264. vote = true,
  265. hasLicense = false,
  266. mayor = true
  267. })
  268.  
  269. TEAM_CARDEALER = DarkRP.createJob("Car Dealer", {
  270. color = Color(70, 70, 70, 255),
  271. model = "models/player/barney.mdl",
  272. description = [[You sell cars to the public.]],
  273. weapons = {""},
  274. command = "cardealer",
  275. max = 2,
  276. salary = 175,
  277. admin = 0,
  278. vote = false,
  279. hasLicense = false,
  280. candemote = false,
  281. hobo = false
  282. })
  283.  
  284. TEAM_TAXI = DarkRP.createJob("Taxi Driver", {
  285. color = Color(47, 79, 79, 255),
  286. model = "models/player/odessa.mdl",
  287. description = [[This is a donator special job. You drive the public to their requested location.]],
  288. weapons = {""},
  289. command = "taxidriver",
  290. max = 3,
  291. salary = 200,
  292. admin = 0,
  293. vote = false,
  294. hasLicense = false,
  295. candemote = false,
  296. customCheck = function(ply) return ply:GetNWString("usergroup") == "donator" or ply:GetNWString("usergroup") == "admin" or ply:GetNWString("usergroup") == "superadmin" or ply:GetNWString("usergroup") == "owner" end
  297. })
  298.  
  299. TEAM_DRUGDEALER = DarkRP.createJob("Drug Dealer", {
  300. color = Color(255, 140, 0, 255),
  301. model = "models/player/group02/male_08.mdl",
  302. description = [[You sell drugs to the public, but watch out for the cops.]],
  303. weapons = {""},
  304. command = "drugdealer",
  305. max = 5,
  306. salary = 75,
  307. admin = 0,
  308. vote = false,
  309. hasLicense = false,
  310. candemote = false,
  311. hobo = false
  312. })
  313.  
  314. if not DarkRP.disabledDefaults["modules"]["hungermod"] then
  315. TEAM_COOK = DarkRP.createJob("Cook", {
  316. color = Color(238, 99, 99, 255),
  317. model = "models/player/mossman.mdl",
  318. description = [[As a cook, it is your responsibility to feed the other members of your city.
  319. You can spawn a microwave and sell the food you make:
  320. /buymicrowave]],
  321. weapons = {},
  322. command = "cook",
  323. max = 2,
  324. salary = 45,
  325. admin = 0,
  326. vote = false,
  327. hasLicense = false,
  328. cook = true
  329. })
  330. end
  331.  
  332. -- Compatibility for when default teams are disabled
  333. TEAM_CITIZEN = TEAM_CITIZEN or -1
  334. TEAM_POLICE = TEAM_POLICE or -1
  335. TEAM_GANG = TEAM_GANG or -1
  336. TEAM_MOB = TEAM_MOB or -1
  337. TEAM_GUN = TEAM_GUN or -1
  338. TEAM_MEDIC = TEAM_MEDIC or -1
  339. TEAM_CHIEF = TEAM_CHIEF or -1
  340. TEAM_MAYOR = TEAM_MAYOR or -1
  341. TEAM_HOBO = TEAM_HOBO or -1
  342.  
  343.  
  344. /*
  345. --------------------------------------------------------
  346. HOW TO MAKE A DOOR GROUP
  347. --------------------------------------------------------
  348. AddDoorGroup("NAME OF THE GROUP HERE, you see this when looking at a door", Team1, Team2, team3, team4, etc.)
  349.  
  350.  
  351. The default door groups, can also be used as examples:
  352. */
  353. AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
  354. AddDoorGroup("Gundealer only", TEAM_GUN)
  355.  
  356.  
  357. /*
  358. --------------------------------------------------------
  359. HOW TO MAKE AN AGENDA
  360. --------------------------------------------------------
  361. AddAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda))
  362.  
  363. The default agenda's, can also be used as examples:
  364. */
  365. AddAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
  366. AddAgenda("Police agenda", TEAM_MAYOR, {TEAM_CHIEF, TEAM_POLICE})
  367.  
  368.  
  369. /*
  370. ---------------------------------------------------------------------------
  371. HOW TO MAKE A GROUP CHAT
  372. ---------------------------------------------------------------------------
  373. Pick one!
  374. GAMEMODE:AddGroupChat(List of team variables separated by comma)
  375.  
  376. or
  377.  
  378. GAMEMODE:AddGroupChat(a function with ply as argument that returns whether a random player is in one chat group)
  379. This one is for people who know how to script Lua.
  380.  
  381. */
  382. GAMEMODE:AddGroupChat(function(ply) return ply:isCP() end)
  383. GAMEMODE:AddGroupChat(TEAM_MOB, TEAM_GANG)
  384.  
  385. /*---------------------------------------------------------------------------
  386. Define which team joining players spawn into and what team you change to if demoted
  387. ---------------------------------------------------------------------------*/
  388. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  389.  
  390. /*---------------------------------------------------------------------------
  391. Define which teams belong to civil protection
  392. Civil protection can set warrants, make people wanted and do some other police related things
  393. ---------------------------------------------------------------------------*/
  394. GAMEMODE.CivilProtection = {
  395. [TEAM_POLICE] = true,
  396. [TEAM_CHIEF] = true,
  397. [TEAM_MAYOR] = true,
  398. }
  399.  
  400. /*---------------------------------------------------------------------------
  401. Enable hitman goodies on this team
  402. ---------------------------------------------------------------------------*/
  403. DarkRP.addHitmanTeam(TEAM_HITMAN)
  404.  
  405. /*---------------------------------------------------------------------------
  406. Default demote groups
  407. ---------------------------------------------------------------------------*/
  408. DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
  409. DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement