Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.63 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.  
  9. TEAM_CITIZEN = DarkRP.createJob("Citizen", {
  10. color = Color(20, 150, 20, 255),
  11. model = {
  12. "models/player/Group01/Female_01.mdl",
  13. "models/player/Group01/Female_02.mdl",
  14. "models/player/Group01/Female_03.mdl",
  15. "models/player/Group01/Female_04.mdl",
  16. "models/player/Group01/Female_06.mdl",
  17. "models/player/group01/male_01.mdl",
  18. "models/player/Group01/Male_02.mdl",
  19. "models/player/Group01/male_03.mdl",
  20. "models/player/Group01/Male_04.mdl",
  21. "models/player/Group01/Male_05.mdl",
  22. "models/player/Group01/Male_06.mdl",
  23. "models/player/Group01/Male_07.mdl",
  24. "models/player/Group01/Male_08.mdl",
  25. "models/player/Group01/Male_09.mdl"
  26. },
  27. description = [[Just your average aussie bloke or chick.
  28. You can use /job to define yourself a custom role or just hang out and chill.]],
  29. weapons = {},
  30. command = "Citizen",
  31. max = 0,
  32. salary = GAMEMODE.Config.normalsalary,
  33. admin = 0,
  34. vote = false,
  35. hasLicense = false,
  36. candemote = false
  37. })
  38.  
  39.  
  40. TEAM_MERCHANT = DarkRP.createJob("Merchant", {
  41. color = Color(255, 140, 0, 255),
  42. model = {"models/farnsworth/farnsworth.mdl"},
  43. description = [[As a merchant your job is to sell guns and melee weapons to the general public.
  44. Be sure to protect your shop from raids as certain unscrupulous individuals may be after your shipments.
  45. You cannot align yourself with any factions.]],
  46. weapons = {},
  47. command = "gunmerchant",
  48. max = 4,
  49. salary = GAMEMODE.Config.normalsalary,
  50. admin = 0,
  51. vote = false,
  52. hasLicense = false
  53. })
  54.  
  55. TEAM_HERO = DarkRP.createJob("Hero", {
  56. color = Color(60, 24, 111, 255),
  57. model = {
  58. "models/player/superheroes/superman.mdl",
  59. "models/player/superheroes/greenlantern.mdl",
  60. "models/player/superheroes/flash.mdl",
  61. "models/player/superheroes/batman.mdl",
  62. },
  63. description = [[As a hero it is your job to protect the Civilians!]],
  64. weapons = {climb_swep2},{weapon_752_dc15a},{arrest_baton},{unarrest_baton},
  65. command = "hero",
  66. max = 8,
  67. salary = GAMEMODE.Config.normalsalary,
  68. admin = 0,
  69. vote = false,
  70. hasLicense = false
  71. })
  72.  
  73. TEAM_CLONE = DarkRP.createJob("Clones", {
  74. color = Color(255, 0, 0, 255),
  75. model = {"models/player/sgg/starwars/clonetrooper.mdl",
  76. "models/player/sgg/starwars/clonetrooper_327th.mdl",
  77. "models/player/sgg/starwars/clonetrooper_cody.mdl",
  78. "models/sgg/starwars/clonetrooper.mdl",
  79. "models/sgg/starwars/clonetrooper_neyo.mdl",
  80. },
  81. description = [[As a Clone, You are constantly fighting over the Droids for power.]],
  82. weapons = {weapon_752_de10},
  83. command = "Clone",
  84. max = 8,
  85. salary = GAMEMODE.Config.normalsalary,
  86. admin = 0,
  87. vote = false,
  88. hasLicense = false
  89. })
  90.  
  91. TEAM_CLONELEADER = DarkRP.createJob("Clone Leader", {
  92. color = Color(0, 0, 255, 255),
  93. model = {"models/sgg/starwars/clonetrooper_marine.mdl"},
  94. description = [[As a Droid, You are constantly fighting over the Clones for power.]],
  95. weapons = {lockpick},{weapon_752_ee3},
  96. command = "CloneLeader",
  97. max = 1,
  98. salary = GAMEMODE.Config.normalsalary,
  99. admin = 0,
  100. NeedToChangeFrom = TEAM_CLONE,
  101. vote = false,
  102. hasLicense = false
  103. })
  104.  
  105. TEAM_DROID = DarkRP.createJob("Droids", {
  106. color = Color(0, 0, 255, 255),
  107. model = {"models/starwars/bdroid.mdl",
  108. "models/starwars/bdroidassassin.mdl",
  109. "models/starwars/bdroidfirefighter.mdl",
  110. "models/starwars/bdroidgunner.mdl",
  111. "models/starwars/bdroidmarine.mdl",
  112. },
  113. description = [[As a Droid, You are constantly fighting over the Clones for power.]],
  114. weapons = {weapon_752_elg3a},
  115. command = "Droid",
  116. max = 8,
  117. salary = GAMEMODE.Config.normalsalary,
  118. admin = 0,
  119. vote = false,
  120. hasLicense = false
  121. })
  122.  
  123. TEAM_DROIDLEADER = DarkRP.createJob("Droid Leader", {
  124. color = Color(0, 0, 255, 255),
  125. model = {"weapon_752_dc15s"},
  126. description = [[As the Droid Leader you get to command what all the Droids do.]],
  127. weapons = {lockpick},{models/weapons/v_WESTAR34.mdl},
  128. command = "DroidLeader",
  129. max = 1,
  130. salary = GAMEMODE.Config.normalsalary,
  131. admin = 0,
  132. NeedToChangeFrom = TEAM_DROID,
  133. vote = false,
  134. hasLicense = false
  135. })
  136.  
  137. TEAM_DOCTOR = DarkRP.createJob("Doctor", {
  138. color = Color(4, 119, 113, 255),
  139. model = {"models/zoidberg/zoidberg.mdl"},
  140. description = [[As a Doctor you have to heal everyone that comes to you for a small fee of course :)]],
  141. weapons = {"weapon_medkit"},
  142. command = "Doctor",
  143. max = 2,
  144. salary = GAMEMODE.Config.normalsalary,
  145. admin = 0,
  146. vote = false,
  147. hasLicense = false
  148. })
  149.  
  150. TEAM_FINN = DarkRP.createJob("Finn The Human", {
  151. color = Color(101, 101, 255, 255),
  152. model = {"models/zeldazelda117models/adventure time/finn/f_rd.mdl"},
  153. description = [[As a Droid, You are constantly fighting over the Clones for power.]],
  154. weapons = {"climb_swep2"},{lockpick}
  155. command = "Finn",
  156. max = 1,
  157. salary = GAMEMODE.Config.normalsalary,
  158. admin = 0,
  159. vote = false,
  160. hasLicense = false
  161. })
  162.  
  163. TEAM_BMO = DarkRP.createJob("BMO", {
  164. color = Color(0,255,255,255),
  165. model = {"models/freeman/bmo.mdl"},
  166. description = [[As BMO it is your job to aid Finn in whatever he needs.]],
  167. weapons = {lockpick},
  168. command = "BMO",
  169. max = 1,
  170. salary = GAMEMODE.Config.normalsalary,
  171. admin = 0,
  172. vote = false,
  173. hasLicense = false
  174. })
  175.  
  176. TEAM_THIEF = DarkRP.createJob("Thief", {
  177. color = Color(82,67,67,255),
  178. model = {"models/player/phoenix.mdl"},
  179. description = [[As a Thief, You get to break and enter everywhere and take what you want]],
  180. weapons = {"lockpick"},
  181. command = "Thief",
  182. max = 3,
  183. salary = GAMEMODE.Config.normalsalary,
  184. admin = 0,
  185. vote = false,
  186. hasLicense = false
  187. })
  188.  
  189. TEAM_POLICE = DarkRP.createJob("Police", {
  190. color = Color(63,45,255,255),
  191. model = {"models/player/police.mdl",
  192. "models/player/police.mdl",
  193. "models/player/police.mdl",
  194. "models/player/police.mdl",
  195. "models/player/police_fem.mdl",
  196. "models/player/police_fem.mdl",
  197. },
  198. description = [[As a Police Officer it is your duty to protect the citizens of Downtown]],
  199. weapons = {"x-8","arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker"},
  200. command = "Police",
  201. max = 5,
  202. salary = GAMEMODE.Config.normalsalary,
  203. admin = 0,
  204. vote = false,
  205. hasLicense = true
  206. })
  207.  
  208. TEAM_CHIEF = DarkRP.createJob("Police Chief", {
  209. color = Color(20, 11, 111, 255),
  210. model = {"models/player/combine_soldier_prisonguard.mdl"},
  211. description = [[As the Chief of Police you get to order around the police and take charge of the city when the mayor is away]],
  212. weapons = {"x-8","arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker"},
  213. command = "PoliceChief",
  214. max = 1,
  215. salary = GAMEMODE.Config.normalsalary,
  216. admin = 0,
  217. NeedToChangeFrom = TEAM_POLICE,
  218. vote = false,
  219. hasLicense = true
  220. })
  221.  
  222. TEAM_BUILDER = DarkRP.createJob("Builder", {
  223. color = Color(0, 127, 31, 255),
  224. model = {"models/player/blockdude.mdl"},
  225. description = [[As a Builder, you have to build the city and anything else that people pay you for.]],
  226. weapons = {},
  227. command = "Builder",
  228. max = 4,
  229. salary = GAMEMODE.Config.normalsalary,
  230. admin = 0,
  231. vote = false,
  232. hasLicense = false
  233. })
  234.  
  235. TEAM_PARKOUR = DarkRP.createJob("Parkourist", {
  236. color = Color(172, 74, 25, 255),
  237. model = {"models/player/arctic.mdl"},
  238. description = [[As a Parkourist, you are always on the run from the police due to parkour being illegal.]],
  239. weapons = {"climb_swep2"},
  240. command = "Parkourist",
  241. max = 2,
  242. salary = GAMEMODE.Config.normalsalary,
  243. admin = 0,
  244. vote = false,
  245. hasLicense = false
  246. })
  247.  
  248. TEAM_PET = DarkRP.createJob("Pet", {
  249. color = Color(127, 111, 63,255),
  250. model = {"models/player_eevee.mdl",
  251. "models/player_espeon.mdl",
  252. "models/player_flareon.mdl",
  253. "models/player_glaceon.mdl",
  254. "models/player_jolteon.mdl",
  255. "models/player_leafeon.mdl",
  256. "models/player_shinysylveon.mdl",
  257. },
  258. description = [[As a Pet, you must obay all of your masters orders.]],
  259. weapons = {},
  260. command = "Pet",
  261. max = 7,
  262. salary = GAMEMODE.Config.normalsalary,
  263. admin = 0,
  264. vote = false,
  265. hasLicense = false
  266. })
  267.  
  268. TEAM_SONIC = DarkRP.createJob("Sonic", {
  269. color = Color(0, 63, 255, 255),
  270. model = {"models/_tails_ models/characters/player/sonic/sonic.mdl"},
  271. description = [[As Sonic you get to run around and have fun :)]],
  272. weapons = {"climb_swep2"},
  273. command = "Sonic",
  274. max = 1,
  275. salary = GAMEMODE.Config.normalsalary,
  276. admin = 0,
  277. vote = false,
  278. hasLicense = false
  279. })
  280.  
  281. TEAM_PONY = DarkRP.createJob("Pony", {
  282. color = Color(255, 0, 191, 255),
  283. model = {"models/bonbon.mdl",
  284. "models/celestia.mdl",
  285. "models/derpyhooves.mdl",
  286. "models/luna.mdl",
  287. "models/lyra.mdl",
  288. "models/trixie.mdl"
  289. },
  290. description = [[As a Thief, You get to break and enter everywhere and take what you want]],
  291. weapons = {},
  292. command = "Pony",
  293. max = 8,
  294. salary = GAMEMODE.Config.normalsalary,
  295. admin = 0,
  296. vote = false,
  297. hasLicense = false
  298. })
  299.  
  300. TEAM_LAZER = DarkRP.createJob("Lazer Dealer", {
  301. color = Color(255, 135, 75, 255),
  302. model = {"models/player/gman_high.mdl"},
  303. description = [[As the Lazer Dealear. you have to sell Lazer guns to everyone and create a shop.]],
  304. weapons = {},
  305. command = "LAZER",
  306. max = 2,
  307. salary = GAMEMODE.Config.normalsalary,
  308. admin = 0,
  309. vote = false,
  310. hasLicense = false
  311. })
  312.  
  313. TEAM_JEDI = DarkRP.createJob("Jedi", {
  314. color = Color(255, 255, 255, 255),
  315. model = {"models/player/b4p/b4p_yoda.mdl"},
  316. description = [[As a Jedi. You have to fight off the evil sith!]],
  317. weapons = {"weapon_lightsaber"},
  318. command = "Jedi",
  319. max = 1,
  320. salary = GAMEMODE.Config.normalsalary,
  321. admin = 0,
  322. vote = false,
  323. hasLicense = false
  324. })
  325.  
  326. TEAM_SITH = DarkRP.createJob("Sith", {
  327. color = Color(0, 0, 0, 255),
  328. model = {"models/player/b4p/b4p_vader.mdl"},
  329. description = [[As a Sith. You have to fight off the Jedi and try to destroy the world!]],
  330. weapons = {"weapon_lightsaber"},
  331. command = "Sith",
  332. max = 1,
  333. salary = GAMEMODE.Config.normalsalary,
  334. admin = 0,
  335. vote = false,
  336. hasLicense = false
  337. })
  338.  
  339. TEAM_MAYOR = DarkRP.createJob("Mayor", {
  340. color = Color(100, 100, 100, 255),
  341. model = {"models/player/breen.mdl"},
  342. description = [[As the Mayor you have to run the city and command all the police. ]],
  343. weapons = {},
  344. command = "Mayor",
  345. max = 1,
  346. salary = GAMEMODE.Config.normalsalary,
  347. admin = 0,
  348. vote = false,
  349. hasLicense = false
  350. })
  351.  
  352. /*
  353.  
  354. --------------------------------------------------------
  355. HOW TO MAKE A DOOR GROUP
  356. --------------------------------------------------------
  357. AddDoorGroup("NAME OF THE GROUP HERE, you see this when looking at a door", Team1, Team2, team3, team4, etc.)
  358.  
  359.  
  360. The default door groups, can also be used as examples:
  361. */
  362. AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
  363. AddDoorGroup("Gundealer only", TEAM_GUN)
  364.  
  365.  
  366. /*
  367. --------------------------------------------------------
  368. HOW TO MAKE AN AGENDA
  369. --------------------------------------------------------
  370. AddAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda))
  371.  
  372. The default agenda's, can also be used as examples:
  373. */
  374. AddAgenda("Gangster's agenda", TEAM_DROIDLEADER, {TEAM_DROID})
  375. AddAgenda("Police agenda", TEAM_MAYOR, {TEAM_CHIEF, TEAM_POLICE})
  376.  
  377.  
  378. GAMEMODE:AddGroupChat(a function with ply as argument that returns whether a random pl/*
  379. ---------------------------------------------------------------------------
  380. HOW TO MAKE A GROUP CHAT
  381. ---------------------------------------------------------------------------
  382. Pick one!
  383. GAMEMODE:AddGroupChat(List of team variables separated by comma)
  384.  
  385. or
  386. ayer is in one chat group)
  387. This one is for people who know how to script Lua.
  388.  
  389. */
  390. GAMEMODE:AddGroupChat(function(ply) return ply:isCP() end)
  391. GAMEMODE:AddGroupChat(TEAM_MOB, TEAM_GANG)
  392.  
  393. /*---------------------------------------------------------------------------
  394. Define which team joining players spawn into and what team you change to if demoted
  395. ---------------------------------------------------------------------------*/
  396. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  397.  
  398. /*---------------------------------------------------------------------------
  399. Define which teams belong to civil protection
  400. Civil protection can set warrants, make people wanted and do some other police related things
  401. ---------------------------------------------------------------------------*/
  402. GAMEMODE.CivilProtection = {
  403. [TEAM_POLICE] = true,
  404. [TEAM_CHIEF] = true,
  405. [TEAM_MAYOR] = true,
  406. }
  407.  
  408. /*---------------------------------------------------------------------------
  409. Enable hitman goodies on this team
  410. ---------------------------------------------------------------------------*/
  411. DarkRP.addHitmanTeam(TEAM_MOB)
  412.  
  413. /*---------------------------------------------------------------------------
  414. Default demote groups
  415. ---------------------------------------------------------------------------*/
  416. DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
  417. DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement