Advertisement
arkanium

Untitled

Dec 18th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.70 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("Citoyen", {
  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. category = "Citizens",
  36. })
  37.  
  38. TEAM_Banquier = DarkRP.createJob("Banquier", {
  39. color = Color(143, 163, 157, 255),
  40. model = {"models/player/Group01/Male_09.mdl"},
  41. description = [[Votre but est de proteger la banque des attaques des criminels et mafieux ! Protegez la ville et vous aurez peut être une paye du Maire.]],
  42. weapons = {},
  43. command = "banque",
  44. max = 1,
  45. salary = GAMEMODE.Config.normalsalary * 1.45,
  46. admin = 0,
  47. vote = false,
  48. hasLicense = false,
  49. category = "Citizens",
  50. })
  51.  
  52. TEAM_POLICE = DarkRP.createJob("SWAT", {
  53. color = Color(25, 25, 170, 255),
  54. model = {"models/Dauge/BF3_GIGN.mdl"},
  55. description = [[Votre but est de proteger la banque des attaques des criminels et mafieux ! Protegez la ville et vous aurez peut être une paye du Maire.]],
  56. weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "m9k_ak47"},
  57. command = "cp",
  58. max = 10,
  59. salary = GAMEMODE.Config.normalsalary * 1.45,
  60. admin = 0,
  61. vote = true,
  62. hasLicense = false,
  63. category = "Citizens",
  64. })
  65.  
  66.  
  67. TEAM_GANG = DarkRP.createJob("Criminel", {
  68. color = Color(75, 75, 75, 255),
  69. model = {
  70. "models/player/Group03/Female_01.mdl",
  71. "models/player/Group03/Female_02.mdl",
  72. "models/player/Group03/Female_03.mdl",
  73. "models/player/Group03/Female_04.mdl",
  74. "models/player/Group03/Female_06.mdl",
  75. "models/player/group03/male_01.mdl",
  76. "models/player/Group03/Male_02.mdl",
  77. "models/player/Group03/male_03.mdl",
  78. "models/player/Group03/Male_04.mdl",
  79. "models/player/Group03/Male_05.mdl",
  80. "models/player/Group03/Male_06.mdl",
  81. "models/player/Group03/Male_07.mdl",
  82. "models/player/Group03/Male_08.mdl",
  83. "models/player/Group03/Male_09.mdl"},
  84. description = [[The lowest person of crime.
  85. A gangster generally works for the Mobboss who runs the crime family.
  86. The Mob boss sets your agenda and you follow it or you might be punished.]],
  87. weapons = {},
  88. command = "gangster",
  89. max = 3,
  90. salary = GAMEMODE.Config.normalsalary,
  91. admin = 0,
  92. vote = false,
  93. hasLicense = false,
  94. category = "Gangsters",
  95. })
  96.  
  97. TEAM_GANG = DarkRP.createJob("Mafieux", {
  98. color = Color(255, 0, 0, 255),
  99. model = {
  100. "models/fearless/bsuit01.mdl",
  101. "models/fearless/mafia02.mdl",
  102. "models/fearless/mafia07.mdl",
  103. "models/fearless/mafia09.mdl"},
  104. description = [[The lowest person of crime.
  105. A gangster generally works for the Mobboss who runs the crime family.
  106. The Mob boss sets your agenda and you follow it or you might be punished.]],
  107. weapons = {},
  108. command = "mafieux",
  109. max = 10,
  110. salary = GAMEMODE.Config.normalsalary,
  111. admin = 0,
  112. vote = false,
  113. hasLicense = false,
  114. category = "Gangsters",
  115. })
  116.  
  117. TEAM_MOB = DarkRP.createJob("Tueur a gage", {
  118. color = Color(25, 25, 25, 255),
  119. model = "models/player/gman_high.mdl",
  120. description = [[The Mob boss is the boss of the criminals in the city.
  121. With his power he coordinates the gangsters and forms an efficient crime organization.
  122. He has the ability to break into houses by using a lockpick.
  123. The Mob boss posesses the ability to unarrest you.]],
  124. weapons = {"lockpick", "unarrest_stick", "m9k_knife"},
  125. command = "mobboss",
  126. max = 1,
  127. salary = GAMEMODE.Config.normalsalary * 1.34,
  128. admin = 0,
  129. vote = false,
  130. hasLicense = false,
  131. category = "Gangsters",
  132. })
  133.  
  134. TEAM_GUN = DarkRP.createJob("Vendeur d'arme", {
  135. color = Color(255, 140, 0, 255),
  136. model = "models/player/monk.mdl",
  137. description = [[A Gun Dealer is the only person who can sell guns to other people.
  138. Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
  139. weapons = {},
  140. command = "gundealer",
  141. max = 2,
  142. salary = GAMEMODE.Config.normalsalary,
  143. admin = 0,
  144. vote = false,
  145. hasLicense = false,
  146. category = "Citizens",
  147. })
  148.  
  149. TEAM_MEDIC = DarkRP.createJob("Médecin", {
  150. color = Color(47, 79, 79, 255),
  151. model = "models/player/kleiner.mdl",
  152. description = [[With your medical knowledge you work to restore players to full health.
  153. Without a medic, people cannot be healed.
  154. Left click with the Medical Kit to heal other players.
  155. Right click with the Medical Kit to heal yourself.]],
  156. weapons = {"med_kit"},
  157. command = "medic",
  158. max = 3,
  159. salary = GAMEMODE.Config.normalsalary,
  160. admin = 0,
  161. vote = false,
  162. hasLicense = false,
  163. medic = true,
  164. category = "Citizens",
  165. })
  166.  
  167. TEAM_BRAQUEUR = DarkRP.createJob("Braqueur *VIP*", {
  168. color = Color(255, 0, 0, 255),
  169. model = "models/player/pd2_dallas_p.mdl",
  170. description = [[With your medical knowledge you work to restore players to full health.
  171. Without a medic, people cannot be healed.
  172. Left click with the Medical Kit to heal other players.
  173. Right click with the Medical Kit to heal yourself.]],
  174. weapons = {"m9k_colt1911"},
  175. command = "braqueur",
  176. max = 3,
  177. salary = GAMEMODE.Config.normalsalary,
  178. admin = 0,
  179. vote = false,
  180. hasLicense = false,
  181. medic = true,
  182. category = "Citizens",
  183. customCheck = function(ply) return ply:GetNWString("usergroup") == "VIP" or ply:GetNWString("usergroup") == "superadmin" or ply:GetNWString("usergroup") == "Fondateur" end,
  184. CustomCheckFailMsg = "Vous devez avoir le vip pour utiliser ce job"
  185. })
  186.  
  187. TEAM_BRAQUEUR = DarkRP.createJob("Hacker *VIP*", {
  188. color = Color(168, 16, 107, 255),
  189. model = "models/player/spike/Michael.mdl",
  190. description = [[With your medical knowledge you work to restore players to full health.
  191. Without a medic, people cannot be healed.
  192. Left click with the Medical Kit to heal other players.
  193. Right click with the Medical Kit to heal yourself.]],
  194. weapons = {"weapon_arc_atmhack"},
  195. command = "hacker",
  196. max = 3,
  197. salary = GAMEMODE.Config.normalsalary,
  198. admin = 0,
  199. vote = false,
  200. hasLicense = false,
  201. medic = true,
  202. category = "Citizens",
  203. customCheck = function(ply) return ply:GetNWString("usergroup") == "VIP" or ply:GetNWString("usergroup") == "superadmin" or ply:GetNWString("usergroup") == "Fondateur" end,
  204. CustomCheckFailMsg = "Vous devez avoir le vip pour utiliser ce job"
  205. })
  206.  
  207.  
  208. TEAM_MAYOR = DarkRP.createJob("Maire", {
  209. color = Color(150, 20, 20, 255),
  210. model = "models/player/breen.mdl",
  211. description = [[The Mayor of the city creates laws to govern the city.
  212. If you are the mayor you may create and accept warrants.
  213. Type /wanted <name> to warrant a player.
  214. Type /jailpos to set the Jail Position.
  215. Type /lockdown initiate a lockdown of the city.
  216. Everyone must be inside during a lockdown.
  217. The cops patrol the area.
  218. /unlockdown to end a lockdown]],
  219. weapons = {},
  220. command = "mayor",
  221. max = 1,
  222. salary = GAMEMODE.Config.normalsalary * 1.89,
  223. admin = 0,
  224. vote = true,
  225. hasLicense = false,
  226. mayor = true,
  227. category = "Civil Protection",
  228. })
  229.  
  230. TEAM_HOBO = DarkRP.createJob("Clochard", {
  231. color = Color(80, 45, 0, 255),
  232. model = "models/player/corpse1.mdl",
  233. description = [[The lowest member of society. Everybody laughs at you.
  234. You have no home.
  235. Beg for your food and money
  236. Sing for everyone who passes to get money
  237. Make your own wooden home somewhere in a corner or outside someone else's door]],
  238. weapons = {"weapon_bugbait"},
  239. command = "hobo",
  240. max = 5,
  241. salary = 0,
  242. admin = 0,
  243. vote = false,
  244. hasLicense = false,
  245. candemote = false,
  246. hobo = true,
  247. category = "Citizens",
  248. })
  249.  
  250. TEAM_VOLEUR = DarkRP.createJob("Voleur", {
  251. color = Color(159, 159, 159, 255),
  252. model = {"models/player/phoenix.mdl"},
  253. description = [[Votre boulot est simple, cambrioler !]],
  254. weapons = {"lockpick"},
  255. command = "v",
  256. max = 2,
  257. salary = 89,
  258. admin = 0,
  259. vote = false,
  260. hasLicense = false,
  261. candemote = true,
  262. -- CustomCheck
  263. medic = false,
  264. chief = false,
  265. mayor = false,
  266. hobo = false,
  267. cook = false,
  268. category = "Citizens",
  269. })
  270.  
  271.  
  272. if not DarkRP.disabledDefaults["modules"]["hungermod"] then
  273. TEAM_COOK = DarkRP.createJob("Epiciere", {
  274. color = Color(238, 99, 99, 255),
  275. model = "models/player/mossman.mdl",
  276. description = [[Vous devez nourrire toutes la populations, vous pouvez acheter un micro-onde avec
  277. /buymicrowave]],
  278. weapons = {},
  279. command = "epiciere",
  280. max = 2,
  281. salary = 45,
  282. admin = 0,
  283. vote = false,
  284. hasLicense = false,
  285. cook = true
  286. })
  287.  
  288.  
  289. end
  290.  
  291. -- Compatibility for when default teams are disabled
  292. TEAM_CITIZEN = TEAM_CITIZEN or -1
  293. TEAM_POLICE = TEAM_POLICE or -1
  294. TEAM_GANG = TEAM_GANG or -1
  295. TEAM_MOB = TEAM_MOB or -1
  296. TEAM_GUN = TEAM_GUN or -1
  297. TEAM_MEDIC = TEAM_MEDIC or -1
  298. TEAM_CHIEF = TEAM_CHIEF or -1
  299. TEAM_MAYOR = TEAM_MAYOR or -1
  300. TEAM_HOBO = TEAM_HOBO or -1
  301. TEAM_COOK = TEAM_COOK or -1
  302.  
  303. /*
  304. --------------------------------------------------------
  305. HOW TO MAKE A DOOR GROUP
  306. --------------------------------------------------------
  307. AddDoorGroup("NAME OF THE GROUP HERE, you see this when looking at a door", Team1, Team2, team3, team4, etc.)
  308.  
  309.  
  310. The default door groups, can also be used as examples:
  311. */
  312. AddDoorGroup("Force de l'ordre & Maire", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
  313. AddDoorGroup("Gundealer only", TEAM_GUN)
  314. AddDoorGroup("TheWalkingRP City")
  315. AddDoorGroup("Banque", TEAM_BANQUIER)
  316.  
  317.  
  318. /*
  319. --------------------------------------------------------
  320. HOW TO MAKE AN AGENDA
  321. --------------------------------------------------------
  322. DarkRP.createAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda))
  323. It's possible to have multiple managers. In that case you have to put all the managers in '{}' (see Police agenda)
  324.  
  325. The default agendas, can also be used as examples:
  326. */
  327. DarkRP.createAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
  328. DarkRP.createAgenda("Police agenda", {TEAM_MAYOR, TEAM_CHIEF}, {TEAM_POLICE})
  329.  
  330.  
  331. /*
  332. ---------------------------------------------------------------------------
  333. HOW TO MAKE A GROUP CHAT
  334. ---------------------------------------------------------------------------
  335. Pick one!
  336. DarkRP.createGroupChat(List of team variables separated by comma)
  337.  
  338. or
  339.  
  340. DarkRP.createGroupChat(a function with ply as argument that returns whether a random player is in one chat group)
  341. This one is for people who know how to script Lua.
  342.  
  343. */
  344. DarkRP.createGroupChat(function(ply) return ply:isCP() end)
  345. DarkRP.createGroupChat(TEAM_MOB, TEAM_GANG)
  346. DarkRP.createGroupChat(function(listener, ply) return not ply or ply:Team() == listener:Team() end)
  347.  
  348. /*---------------------------------------------------------------------------
  349. Define which team joining players spawn into and what team you change to if demoted
  350. ---------------------------------------------------------------------------*/
  351. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  352.  
  353. /*---------------------------------------------------------------------------
  354. Define which teams belong to civil protection
  355. Civil protection can set warrants, make people wanted and do some other police related things
  356. ---------------------------------------------------------------------------*/
  357. GAMEMODE.CivilProtection = {
  358. [TEAM_POLICE] = true,
  359. [TEAM_CHIEF] = true,
  360. [TEAM_MAYOR] = true,
  361. }
  362.  
  363. /*---------------------------------------------------------------------------
  364. Enable hitman goodies on this team
  365. ---------------------------------------------------------------------------*/
  366. DarkRP.addHitmanTeam(TEAM_MOB)
  367.  
  368. /*---------------------------------------------------------------------------
  369. Default demote groups
  370. ---------------------------------------------------------------------------*/
  371. DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
  372. DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
  373.  
  374. /*---------------------------------------------------------------------------
  375. Default categories
  376. ---------------------------------------------------------------------------*/
  377. DarkRP.createCategory{
  378. name = "Citizens",
  379. categorises = "jobs",
  380. startExpanded = true,
  381. color = Color(0, 107, 0, 255),
  382. canSee = fp{fn.Id, true},
  383. sortOrder = 100,
  384. }
  385.  
  386. DarkRP.createCategory{
  387. name = "Civil Protection",
  388. categorises = "jobs",
  389. startExpanded = true,
  390. color = Color(25, 25, 170, 255),
  391. canSee = fp{fn.Id, true},
  392. sortOrder = 101,
  393. }
  394.  
  395. DarkRP.createCategory{
  396. name = "Gangsters",
  397. categorises = "jobs",
  398. startExpanded = true,
  399. color = Color(75, 75, 75, 255),
  400. canSee = fp{fn.Id, true},
  401. sortOrder = 101,
  402. }
  403.  
  404. DarkRP.createCategory{
  405. name = "Other",
  406. categorises = "jobs",
  407. startExpanded = true,
  408. color = Color(0, 107, 0, 255),
  409. canSee = fp{fn.Id, true},
  410. sortOrder = 255,
  411. }
  412.  
  413. DarkRP.createCategory{
  414. name = "Admin",
  415. categorises = "jobs",
  416. startExpanded = true,
  417. color = Color(0, 107, 0, 255),
  418. canSee = fp{fn.Id, true},
  419. sortOrder = 255,
  420. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement