Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.01 KB | None | 0 0
  1. -- IL FAUT FAIRE LES JOBS DE BASE, VRAIMENT DE BASE, IMAGINEZ BIEN QUE TAXIMAN ETC CA VA ETRE DES ENTREPRISES DONC PAS DE TAXIMAN NI RIEN !
  2. -- Intégrer des métiers d'entreprise du coup (patron, etc)
  3.  
  4. --[[---------------------------------------------------------------------------
  5. DarkRP custom jobs
  6. ---------------------------------------------------------------------------
  7. This file contains your custom jobs.
  8. This file should also contain jobs from DarkRP that you edited.
  9.  
  10. Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
  11. Once you've done that, copy and paste the job to this file and edit it.
  12.  
  13. The default jobs can be found here:
  14. https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
  15.  
  16. For examples and explanation please visit this wiki page:
  17. http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
  18.  
  19. Add your custom jobs under the following line:
  20. ---------------------------------------------------------------------------]]
  21.  
  22. TEAM_CHOMEUR = DarkRP.createJob("Chômeur", {
  23. color = Color(32, 136, 207, 255),
  24. model = {"models/player/Group01/male_09.mdl"},
  25. description = [[Le chômeur est à la recherche d'un emploi afin de gagner de l'argent.
  26. Il se débrouille pour l'instant avec le SMIC.]],
  27. weapons = {},
  28. command = "chomeur",
  29. max = 0,
  30. salary = 40,
  31. admin = 0,
  32. vote = false,
  33. hasLicense = false,
  34. candemote = false,
  35. category = "Métiers",
  36. PlayerSpawn = function(ply)
  37. ply:SetMaxHealth(100)
  38. ply:SetHealth(100)
  39. ply:SetArmor(0)
  40. end
  41. })
  42.  
  43. TEAM_VENDEURVOITURE = DarkRP.createJob("Vendeur de voiture", {
  44. color = Color(32, 92, 207, 255),
  45. model = {"models/player/leet.mdl"},
  46. description = [[Vous vendez des véhicules neuves]],
  47. weapons = {},
  48. command = "voiture",
  49. max = 4,
  50. salary = 1045,
  51. admin = 0,
  52. vote = false,
  53. hasLicense = false,
  54. candemote = false,
  55. category = "Métiers",
  56. PlayerSpawn = function(ply)
  57. ply:SetMaxHealth(100)
  58. ply:SetHealth(100)
  59. ply:SetArmor(0)
  60. end,
  61. PlayerDeath = function(ply, weapon, killer)
  62. ply:teamBan()
  63. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  64. DarkRP.notifyAll(0, 4, "")
  65. end
  66. })
  67.  
  68. TEAM_PATRON = DarkRP.createJob("Patron", {
  69. color = Color(32, 92, 207, 255),
  70. model = {"models/player/leet.mdl"},
  71. description = [[]],
  72. weapons = {},
  73. command = "patron",
  74. max = 4,
  75. salary = 2458,
  76. admin = 0,
  77. vote = false,
  78. hasLicense = false,
  79. candemote = false,
  80. category = "Métiers",
  81. PlayerSpawn = function(ply)
  82. ply:SetMaxHealth(100)
  83. ply:SetHealth(100)
  84. ply:SetArmor(0)
  85. end,
  86. PlayerDeath = function(ply, weapon, killer)
  87. ply:teamBan()
  88. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  89. DarkRP.notifyAll(0, 4, "")
  90. end
  91. })
  92.  
  93.  
  94.  
  95.  
  96. TEAM_EMPLOYE = DarkRP.createJob("Employé", {
  97. color = Color(32, 92, 207, 255),
  98. model = {"models/player/leet.mdl"},
  99. description = [[ Un employé est une personne qui occupe un emploi sous les ordres de quelqu'un, dans les sphères non productives de l'économie (commerce, administration, etc.) et dont le travail est d'ordre plutôt intellectuel que manuel. (S'oppose à patron, chef de service; à ouvrier).]],
  100. weapons = {},
  101. command = "dst",
  102. max = 12,
  103. salary = 2049,
  104. admin = 0,
  105. vote = false,
  106. hasLicense = false,
  107. candemote = false,
  108. category = "Métiers",
  109. PlayerSpawn = function(ply)
  110. ply:SetMaxHealth(100)
  111. ply:SetHealth(100)
  112. ply:SetArmor(0)
  113. end,
  114. PlayerDeath = function(ply, weapon, killer)
  115. ply:teamBan()
  116. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  117. DarkRP.notifyAll(0, 4, "")
  118. end
  119. })
  120.  
  121. TEAM_OUVRIER = DarkRP.createJob("Ouvrier", {
  122. color = Color(32, 92, 207, 255),
  123. model = {"models/player/leet.mdl"},
  124. description = [[Un ouvrier est une personne qui travaille dans le milieu manuel et qui exécute un travail manuel, exerce un métier manuel ou mécanique moyennant un salaire ; spécialement travailleur manuel de la grande industrie. )]],
  125. weapons = {},
  126. command = "ouvrier",
  127. max = 12,
  128. salary = 2250,
  129. admin = 0,
  130. vote = false,
  131. hasLicense = false,
  132. candemote = false,
  133. category = "Métiers",
  134. PlayerSpawn = function(ply)
  135. ply:SetMaxHealth(100)
  136. ply:SetHealth(100)
  137. ply:SetArmor(0)
  138. end,
  139. PlayerDeath = function(ply, weapon, killer)
  140. ply:teamBan()
  141. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  142. DarkRP.notifyAll(0, 4, "")
  143. end
  144. })
  145.  
  146. TEAM_DST = DarkRP.createJob("Directeur de la Surveillance du territoire", {
  147. color = Color(32, 92, 207, 255),
  148. model = {"models/player/leet.mdl"},
  149. description = [[Vous faite partis du service de renseignements du ministère de l'Intérieur, au sein de la direction générale de la Police nationale, chargé historiquement du contre-espionnage en France..
  150. Les missions que vous effectuez sont les suivants:
  151. division de la surveillance du monde musulman et contre-terrorisme ;
  152. division sécurité, protection du patrimoine et prolifération ;
  153. division contre-espionnage intérieur ;
  154. division des services techniques et de l'informatique.]],
  155. weapons = {},
  156. command = "dst",
  157. max = 4,
  158. salary = 2458,
  159. admin = 0,
  160. vote = false,
  161. hasLicense = false,
  162. candemote = false,
  163. category = "Métiers",
  164. PlayerSpawn = function(ply)
  165. ply:SetMaxHealth(100)
  166. ply:SetHealth(100)
  167. ply:SetArmor(0)
  168. end,
  169. PlayerDeath = function(ply, weapon, killer)
  170. ply:teamBan()
  171. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  172. DarkRP.notifyAll(0, 4, "")
  173. end
  174. })
  175.  
  176. TEAM_GARDIENDELAPAIX = DarkRP.createJob("Gardien de la paix", {
  177. color = Color(32, 92, 207, 255),
  178. model = {"models/player/leet.mdl"},
  179. description = [[Le Policier fait régner l'ordre dans la ville.]],
  180. weapons = {},
  181. command = "policier",
  182. max = 10,
  183. salary = 1339,
  184. admin = 0,
  185. vote = false,
  186. hasLicense = false,
  187. candemote = false,
  188. category = "Métiers",
  189. PlayerSpawn = function(ply)
  190. ply:SetMaxHealth(100)
  191. ply:SetHealth(100)
  192. ply:SetArmor(0)
  193. end,
  194. PlayerDeath = function(ply, weapon, killer)
  195. ply:teamBan()
  196. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  197. DarkRP.notifyAll(0, 4, "")
  198. end
  199. })
  200.  
  201. TEAM_BRIGADIERDEPOLICE = DarkRP.createJob("Brigadier de police", {
  202. color = Color(32, 92, 207, 255),
  203. model = {"models/player/leet.mdl"},
  204. description = [[Le Brigadier peut donner des ordre au gardiens de la paix. Il fait régner l'ordre dans la ville.]],
  205. weapons = {},
  206. command = "brigadier",
  207. max = 1,
  208. salary = 2288,
  209. admin = 0,
  210. vote = false,
  211. hasLicense = false,
  212. candemote = false,
  213. category = "Métiers",
  214. PlayerSpawn = function(ply)
  215. ply:SetMaxHealth(100)
  216. ply:SetHealth(100)
  217. ply:SetArmor(0)
  218. end,
  219. PlayerDeath = function(ply, weapon, killer)
  220. ply:teamBan()
  221. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  222. DarkRP.notifyAll(0, 4, "")
  223. end
  224. })
  225.  
  226. TEAM_BRIGADIERCHEF= DarkRP.createJob("Brigadier-chef de police", {
  227. color = Color(32, 92, 207, 255),
  228. model = {"models/player/leet.mdl"},
  229. description = [[Le Brigadier-chef organise ces bridagier et peux donner des ordres aux gardiens de la paix. Il fait régner l'ordre dans la ville.]],
  230. weapons = {},
  231. command = "brigadierchef",
  232. max = 1,
  233. salary = 2632,
  234. admin = 0,
  235. vote = false,
  236. hasLicense = false,
  237. candemote = false,
  238. category = "Métiers",
  239. PlayerSpawn = function(ply)
  240. ply:SetMaxHealth(100)
  241. ply:SetHealth(100)
  242. ply:SetArmor(0)
  243. end,
  244. PlayerDeath = function(ply, weapon, killer)
  245. ply:teamBan()
  246. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  247. DarkRP.notifyAll(0, 4, "")
  248. end
  249. })
  250.  
  251. TEAM_MAJOR = DarkRP.createJob("Major de police", {
  252. color = Color(32, 92, 207, 255),
  253. model = {"models/player/leet.mdl"},
  254. description = [[Le Policier fait régner l'ordre dans la ville.]],
  255. weapons = {},
  256. command = "major",
  257. max = 1,
  258. salary = 2814,
  259. admin = 0,
  260. vote = false,
  261. hasLicense = false,
  262. candemote = false,
  263. category = "Métiers",
  264. PlayerSpawn = function(ply)
  265. ply:SetMaxHealth(100)
  266. ply:SetHealth(100)
  267. ply:SetArmor(0)
  268. end,
  269. PlayerDeath = function(ply, weapon, killer)
  270. ply:teamBan()
  271. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  272. DarkRP.notifyAll(0, 4, "")
  273. end
  274. })
  275.  
  276. TEAM_CAPITAINE = DarkRP.createJob("Capitaine de police", {
  277. color = Color(32, 92, 207, 255),
  278. model = {"models/player/leet.mdl"},
  279. description = [[Vous faite partie des haut-gradès de police. Vous avez le droit de diriger vos unités en absence de la haute hierarchie (Commissaire,General...).]],
  280. weapons = {},
  281. command = "capitaine",
  282. max = 1,
  283. salary = 2384,
  284. admin = 0,
  285. vote = false,
  286. hasLicense = false,
  287. candemote = false,
  288. category = "Métiers",
  289. PlayerSpawn = function(ply)
  290. ply:SetMaxHealth(100)
  291. ply:SetHealth(100)
  292. ply:SetArmor(0)
  293. end,
  294. PlayerDeath = function(ply, weapon, killer)
  295. ply:teamBan()
  296. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  297. DarkRP.notifyAll(0, 4, "")
  298. end
  299. })
  300.  
  301.  
  302. TEAM_COMMANDANT = DarkRP.createJob("Commandant de Police", {
  303. color = Color(32, 92, 207, 255),
  304. model = {"models/player/leet.mdl"},
  305. description = [[Le commandant est sous les ordres du maire, de son commissaire et du général du RAID, Vous pouvez dirigez les unités de police en l'absence du commissaire.]],
  306. weapons = {},
  307. command = "commandant",
  308. max = 2,
  309. salary = 3289,
  310. admin = 0,
  311. vote = false,
  312. hasLicense = false,
  313. candemote = false,
  314. category = "Métiers",
  315. PlayerSpawn = function(ply)
  316. ply:SetMaxHealth(100)
  317. ply:SetHealth(100)
  318. ply:SetArmor(0)
  319. end,
  320. PlayerDeath = function(ply, weapon, killer)
  321. ply:teamBan()
  322. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  323. DarkRP.notifyAll(0, 4, "")
  324. end
  325. })
  326.  
  327. TEAM_COMMANDANTDIVISIONNAIRE= DarkRP.createJob("Commandant divisionnaire", {
  328. color = Color(32, 92, 207, 255),
  329. model = {"models/player/leet.mdl"},
  330. description = [[Le commandant est sous les ordres du maire, des différents commissaire de police et du général du RAID, Vous pouvez dirigez les unités de police en l'absence des commissaires.]],
  331. weapons = {},
  332. command = "commandantdivisionnaire",
  333. max = 2,
  334. salary = 3289,
  335. admin = 0,
  336. vote = false,
  337. hasLicense = false,
  338. candemote = false,
  339. category = "Métiers",
  340. PlayerSpawn = function(ply)
  341. ply:SetMaxHealth(100)
  342. ply:SetHealth(100)
  343. ply:SetArmor(0)
  344. end,
  345. PlayerDeath = function(ply, weapon, killer)
  346. ply:teamBan()
  347. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  348. DarkRP.notifyAll(0, 4, "")
  349. end
  350. })
  351.  
  352.  
  353. TEAM_COMMISSAIREDEPOLICE= DarkRP.createJob("Commissaire de police", {
  354. color = Color(32, 92, 207, 255),
  355. model = {"models/player/leet.mdl"},
  356. description = [[Vous dépendez du maire en therme de hierarchie mais le maire ne commande pas vos unité. Vous seul dirige toute les forces de police de la ville.]],
  357. weapons = {},
  358. command = "commissairedepolice",
  359. max = 1,
  360. salary = 3162,
  361. admin = 0,
  362. vote = false,
  363. hasLicense = false,
  364. candemote = false,
  365. category = "Métiers",
  366. PlayerSpawn = function(ply)
  367. ply:SetMaxHealth(100)
  368. ply:SetHealth(100)
  369. ply:SetArmor(0)
  370. end,
  371. PlayerDeath = function(ply, weapon, killer)
  372. ply:teamBan()
  373. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  374. DarkRP.notifyAll(0, 4, "")
  375. end
  376. })
  377.  
  378.  
  379. TEAM_COMMISSAIREDIVISIONNAIRE= DarkRP.createJob("Commissaire Divisionnaire", {
  380. color = Color(32, 92, 207, 255),
  381. model = {"models/player/leet.mdl"},
  382. description = [[Vous répartissez les taches avec les autres commissaires. Vous dépendez du maire en therme de hierarchie mais le maire ne commande pas vos unité. Vous seul dirige toute les forces de police de la ville.]],
  383. weapons = {},
  384. command = "commissairedivisionnaire",
  385. max = 1,
  386. salary = 3369,
  387. admin = 0,
  388. vote = false,
  389. hasLicense = false,
  390. candemote = false,
  391. category = "Métiers",
  392. PlayerSpawn = function(ply)
  393. ply:SetMaxHealth(100)
  394. ply:SetHealth(100)
  395. ply:SetArmor(0)
  396. end,
  397. PlayerDeath = function(ply, weapon, killer)
  398. ply:teamBan()
  399. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  400. DarkRP.notifyAll(0, 4, "")
  401. end
  402. })
  403.  
  404. TEAM_COMMISSAIREGENERALE = DarkRP.createJob("Commissaire Générale", {
  405. color = Color(32, 92, 207, 255),
  406. model = {"models/player/leet.mdl"},
  407. description = [[Vous dépendez du maire en therme de hierarchie mais le maire ne commande pas vos unité. Vous seul dirige toute les forces de police de la ville.]],
  408. weapons = {},
  409. command = "commissairegenerale",
  410. max = 1,
  411. salary = 5718,
  412. admin = 0,
  413. vote = false,
  414. hasLicense = false,
  415. candemote = false,
  416. category = "Métiers",
  417. PlayerSpawn = function(ply)
  418. ply:SetMaxHealth(100)
  419. ply:SetHealth(100)
  420. ply:SetArmor(0)
  421. end,
  422. PlayerDeath = function(ply, weapon, killer)
  423. ply:teamBan()
  424. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  425. DarkRP.notifyAll(0, 4, "")
  426. end
  427. })
  428.  
  429. TEAM_COLONELRAID = DarkRP.createJob("Colonel RAID", {
  430. color = Color(8, 127, 172, 255),
  431. model = {
  432. "models/dauge/bf3_gign.mdl",
  433. },
  434. description = [[Le RAID (Recherche, assistance, intervention, dissuasion) a comme but d'intervenir lors de braquages ou de prises d'otages si nécessaire et si le Commandant le demande.]],
  435. weapons = {},
  436. command = "colonelraid",
  437. max = 10,
  438. salary = 3900,
  439. admin = 0,
  440. vote = false,
  441. hasLicense = false,
  442. candemote = false,
  443. category = "Police",
  444. ammo = {},
  445. PlayerLoadout = function(ply)
  446. ply:SetMaxHealth(100)
  447. ply:SetHealth(100)
  448. ply:SetArmor(100)
  449. end,
  450. PlayerDeath = function(ply, weapon, killer)
  451. ply:teamBan()
  452. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  453. end
  454. })
  455.  
  456. TEAM_COMMANDANTRAID = DarkRP.createJob("Commandant RAID", {
  457. color = Color(8, 127, 172, 255),
  458. model = {
  459. "models/dauge/bf3_gign.mdl",
  460. },
  461. description = [[Le RAID (Recherche, assistance, intervention, dissuasion) a comme but d'intervenir lors de braquages ou de prises d'otages si nécessaire et si le Commandant le demande.]],
  462. weapons = {},
  463. command = "commandantraid",
  464. max = 10,
  465. salary = 3800,
  466. admin = 0,
  467. vote = false,
  468. hasLicense = false,
  469. candemote = false,
  470. category = "Métiers",
  471. ammo = {},
  472. PlayerLoadout = function(ply)
  473. ply:SetMaxHealth(100)
  474. ply:SetHealth(100)
  475. ply:SetArmor(100)
  476. end,
  477. PlayerDeath = function(ply, weapon, killer)
  478. ply:teamBan()
  479. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  480. end
  481. })
  482.  
  483.  
  484. TEAM_MAJORRAID = DarkRP.createJob("Major RAID", {
  485. color = Color(8, 127, 172, 255),
  486. model = {
  487. "models/dauge/bf3_gign.mdl",
  488. },
  489. description = [[Le RAID (Recherche, assistance, intervention, dissuasion) a comme but d'intervenir lors de braquages ou de prises d'otages si nécessaire et si le Commandant le demande.]],
  490. weapons = {},
  491. command = "majorraid",
  492. max = 10,
  493. salary = 3500,
  494. admin = 0,
  495. vote = false,
  496. hasLicense = false,
  497. candemote = false,
  498. category = "Métiers",
  499. ammo = {},
  500. PlayerLoadout = function(ply)
  501. ply:SetMaxHealth(100)
  502. ply:SetHealth(100)
  503. ply:SetArmor(100)
  504. end,
  505. PlayerDeath = function(ply, weapon, killer)
  506. ply:teamBan()
  507. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  508. end
  509. })
  510.  
  511.  
  512.  
  513. TEAM_1ERECLASSERAID = DarkRP.createJob("1ere Classe RAID", {
  514. color = Color(8, 127, 172, 255),
  515. model = {
  516. "models/dauge/bf3_gign.mdl",
  517. },
  518. description = [[Le RAID (Recherche, assistance, intervention, dissuasion) a comme but d'intervenir lors de braquages ou de prises d'otages si nécessaire et si le Commandant le demande.]],
  519. weapons = {},
  520. command = "1ereclasseraid",
  521. max = 10,
  522. salary = 3200,
  523. admin = 0,
  524. vote = false,
  525. hasLicense = false,
  526. candemote = false,
  527. category = "Métiers",
  528. ammo = {},
  529. PlayerLoadout = function(ply)
  530. ply:SetMaxHealth(100)
  531. ply:SetHealth(100)
  532. ply:SetArmor(100)
  533. end,
  534. PlayerDeath = function(ply, weapon, killer)
  535. ply:teamBan()
  536. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  537. end
  538. })
  539.  
  540. TEAM_RAID = DarkRP.createJob("RAID", {
  541. color = Color(8, 127, 172, 255),
  542. model = {
  543. "models/dauge/bf3_gign.mdl",
  544. },
  545. description = [[Le RAID (Recherche, assistance, intervention, dissuasion) a comme but d'intervenir lors de braquages ou de prises d'otages si nécessaire et si le Commandant le demande.]],
  546. weapons = {},
  547. command = "1ereclasseraid",
  548. max = 10,
  549. salary = 3200,
  550. admin = 0,
  551. vote = false,
  552. hasLicense = false,
  553. candemote = false,
  554. category = "Métiers",
  555. ammo = {},
  556. PlayerLoadout = function(ply)
  557. ply:SetMaxHealth(100)
  558. ply:SetHealth(100)
  559. ply:SetArmor(100)
  560. end,
  561. PlayerDeath = function(ply, weapon, killer)
  562. ply:teamBan()
  563. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  564. end
  565. })
  566.  
  567. --[[---------------------------------------------------------------------------
  568. Define which team joining players spawn into and what team you change to if demoted
  569. ---------------------------------------------------------------------------]]
  570. GAMEMODE.DefaultTeam = TEAM_CHOMEUR
  571. --[[---------------------------------------------------------------------------
  572. Define which teams belong to civil protection
  573. Civil protection can set warrants, make people wanted and do some other police related things
  574. ---------------------------------------------------------------------------]]
  575. GAMEMODE.CivilProtection = { -- Virgule à la fin
  576. [TEAM_GARDIENDELAPAIX] = true,
  577. [TEAM_BRIGADIERDEPOLICE] =true,
  578. [TEAM_BRIGADIERCHEF] = true,
  579. [TEAM_MAJOR] = true,
  580. [TEAM_CAPITAINE] = true,
  581. [TEAM_COMMANDANT] = true,
  582. [TEAM_COMMANDANTDIVISIONNAIRE] = true,
  583. [TEAM_COMMISSAIREDEPOLICE] = true,
  584. [TEAM_COMMISSAIREDIVISIONNAIRE] = true,
  585. [TEAM_COMMISSAIREGENERALE] = true,
  586. [TEAM_RAID] = true,
  587. [TEAM_1ERECLASSERAID] =true,
  588. [TEAM_MAJORGIGN] = true,
  589. [TEAM_COMMANDANTRAID] = true,
  590. [TEAM_COLONELRAID] = true,
  591.  
  592. }
  593. --[[---------------------------------------------------------------------------
  594. Jobs that are hitmen (enables the hitman menu)
  595. ---------------------------------------------------------------------------]]
  596. -- DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement