Advertisement
eddyz27

1w1w1w1

Aug 22nd, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.08 KB | None | 0 0
  1.  
  2. local cfg = {}
  3.  
  4. -- define each group with a set of permissions
  5. -- _config property:
  6. --- gtype (optional): used to have only one group with the same gtype per player (example: a job gtype to only have one job)
  7. --- onspawn (optional): function(player) (called when the player spawn with the group)
  8. --- onjoin (optional): function(player) (called when the player join the group)
  9. --- onleave (optional): function(player) (called when the player leave the group)
  10. --- (you have direct access to vRP and vRPclient, the tunnel to client, in the config callbacks)
  11.  
  12. cfg.groups = {
  13. ["superadmin"] = {
  14. _config = {onspawn = function(player) vRPclient.notify(player,{"You are superadmin."}) end},
  15. "player.group.add",
  16. "player.group.add.superadmin",
  17. "player.group.add.admin", --- this is just a example which can be added to admin/mod group if being made
  18. "player.group.remove",
  19. "player.givemoney",
  20. "player.giveitem"
  21. },
  22. ["admin"] = {
  23. "admin.tickets",
  24. "admin.announce",
  25. "admin.menu",
  26. "admin.easy_unjail",
  27. "admin.spikes",
  28. -- "admin.godmode",
  29. "admin.spawnveh",
  30. "admin.deleteveh",
  31. "player.blips",
  32. "player.tptowaypoint",
  33. "player.list",
  34. "player.whitelist",
  35. "player.unwhitelist",
  36. "player.kick",
  37. "player.ban",
  38. "player.unban",
  39. "player.noclip",
  40. "player.custom_emote",
  41. "player.custom_sound",
  42. "player.display_custom",
  43. "player.coords",
  44. "player.tptome",
  45. "emergency.revive",
  46. "emergency.shop",
  47. "player.tpto"
  48. "player.giveitem"
  49. "player.givemoney",
  50. "player.group.add.admin",
  51. "player.group.remove",
  52. },
  53. -- ["god"] = {
  54. -- "admin.god" -- reset survivals/health periodically
  55. -- },
  56. ["recruiter"] = {
  57. "player.list",
  58. "player.group.add",
  59. "player.group.remove"
  60. },
  61. ["mod"] = {
  62. "admin.tickets",
  63. "admin.announce",
  64. "player.list",
  65. "player.kick",
  66. "player.coords",
  67. "player.tptome",
  68. "emergency.revive",
  69. "emergency.shop",
  70. "player.tpto"
  71. },
  72. -- the group user is auto added to all logged players
  73. ["user"] = {
  74. "player.phone",
  75. "player.calladmin",
  76. "player.fix_haircut",
  77. "player.check",
  78. --"mugger.mug",
  79. "police.askid",
  80. "police.store_weapons",
  81. "player.skip_coma",
  82. "player.store_money",
  83. "player.check",
  84. "player.loot",
  85. "player.player_menu",
  86. "player.userlist",
  87. "police.seizable", -- can be seized
  88. "user.paycheck"
  89. },
  90. ["Fisher"] = {
  91. _config = { gtype = "job",
  92. onspawn = function(player) vRPclient.notify(player,{"You are a Fisherman."}) end
  93. },
  94. "mission.delivery.fish",
  95. "fisher.service",
  96. "fisher.vehicle"
  97. },
  98. ["Cargo Pilot"] = {
  99. _config = { gtype = "job",
  100. onspawn = function(player) vRPclient.notify(player,{"You are a Cargo Pilot. Salary: $2000."}) end
  101. },
  102. "mission.pilot.cargo",
  103. "pilot.vehicle",
  104. "pilot.paycheck"
  105. },
  106. ["Airline Pilot"] = {
  107. _config = { gtype = "job",
  108. onspawn = function(player) vRPclient.notify(player,{"You are Pilot, salary : $2000."}) end
  109. },
  110. "airlines.service",
  111. "air.vehicle",
  112. "air.paycheck"
  113. },
  114. ["Mafia"] = {
  115. _config = { gtype = "job",
  116. onspawn = function(player) vRPclient.notify(player,{"You are a member of the mafia."}) end
  117. },
  118. "police.menu", -- Acces to the police menu to use all of the things below.
  119. "police.easy_cuff", -- Acces to cuff someone
  120. "police.drag", -- Acces to drag a a cuffed person
  121. "police.putinveh", -- Acces to put a handcuff player in a vehicle.
  122. "police.getoutveh", -- Acces to take out a handcuff player from a vehicle
  123. "mafia.loadshop", -- Gunshop for the mafia.
  124. "police.store_weapons", -- Acces to store weapons
  125. "mafia.vehicle", -- Acces to the garage.
  126. "mafia.whitelisted", -- Whitelisted group
  127. "mafia.paycheck" -- Paycheck ( if you want)
  128. },
  129. ["Medical Transport"] = {
  130. _config = { gtype = "job",
  131. onspawn = function(player) vRPclient.notify(player,{"You now transport Medical weed."}) end
  132. },
  133. "mission.delivery.medical",
  134. "medical.service",
  135. "medical.vehicle"
  136. },
  137. ["Weapons Smuggler"] = {
  138. _config = { gtype = "job",
  139. onspawn = function(player) vRPclient.notify(player,{"You are a Weapons Smuggler."}) end
  140. },
  141. "mission.weapons.smuggler",
  142. "smuggler.service"
  143. },
  144. ["Police Officer"] = {
  145. _config = {
  146. gtype = "job",
  147. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  148. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  149. onleave = function(player) vRPclient.setCop(player,{true}) end
  150. },
  151. "Officer.cloakroom",
  152. "highway.cloakroom",
  153. "police.pc",
  154. --"police.handcuff",
  155. "police.putinveh",
  156. "police.getoutveh",
  157. "police.drag",
  158. "police.easy_cuff",
  159. "police.easy_fine",
  160. "police.easy_jail",
  161. "police.easy_unjail",
  162. "police.spikes",
  163. "police.menu",
  164. "police.check",
  165. "toggle.service",
  166. "police.freeze",
  167. "police.service",
  168. "police.wanted",
  169. "police.seize.weapons",
  170. "police.seize.items",
  171. --"police.jail",
  172. --"police.fine",
  173. "police.announce",
  174. -- "-police.store_weapons",
  175. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  176. "police.vehicle",
  177. "police.loadshop",
  178. "cop.whitelisted",
  179. "emergency.market",
  180. "emergency.revive",
  181. "emergency.shop",
  182. --"player.list",
  183. "police.paycheck",
  184. "police.mission",
  185. "player.blips",
  186. "police.menu_interaction"
  187. },
  188. ["Police Detective"] = {
  189. _config = {
  190. gtype = "job",
  191. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  192. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  193. onleave = function(player) vRPclient.setCop(player,{true}) end
  194. },
  195. "Detective.cloakroom",
  196. "highway.cloakroom",
  197. "police.pc",
  198. --"police.handcuff",
  199. "police.putinveh",
  200. "police.getoutveh",
  201. "police.service",
  202. "police.wanted",
  203. "police.seize.weapons",
  204. "police.seize.items",
  205. --"police.jail",
  206. --"police.fine",
  207. "police.drag",
  208. "police.easy_cuff",
  209. "police.easy_fine",
  210. "police.easy_jail",
  211. "police.easy_unjail",
  212. "police.spikes",
  213. "police.menu",
  214. "police.check",
  215. "toggle.service",
  216. "police.freeze",
  217. "police.announce",
  218. -- "-police.store_weapons",
  219. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  220. "police.vehicle",
  221. "police.loadshop",
  222. "cop.whitelisted",
  223. "emergency.market",
  224. "emergency.revive",
  225. "emergency.shop",
  226. --"player.list",
  227. "Detective.paycheck",
  228. "police.menu_interaction",
  229. "player.blips",
  230. "police.mission"
  231. },
  232. ["EMS Chief"] = {
  233. _config = { gtype = "job",
  234. onspawn = function(player) vRPclient.notify(player,{"You are a EMS Chief, salary : $5000."}) end
  235. },
  236. "emergency.revive",
  237. "police.pc",
  238. --"police.wanted",
  239. "emergency.shop",
  240. "emergency.service",
  241. "emergency.cloakroom",
  242. "emscheck.revive",
  243. "emergency.vehicle",
  244. "emergency.market",
  245. "ems.whitelisted",
  246. "ems.loadshop",
  247. --"player.list",
  248. "police.menu_interaction",
  249. "emsChief.paycheck",
  250. "player.blips",
  251. "ems.mission"
  252. },
  253. ["EMS Paramedic"] = {
  254. _config = { gtype = "job",
  255. onspawn = function(player) vRPclient.notify(player,{"You are a EMS Paramedic, salary : $2000."}) end
  256. },
  257. "emergency.revive",
  258. "police.pc",
  259. --"police.wanted",
  260. "emergency.shop",
  261. "emergency.service",
  262. "emscheck.revive",
  263. "emergency.cloakroom",
  264. "emergency.vehicle",
  265. "emergency.market",
  266. "ems.whitelisted",
  267. "ems.loadshop",
  268. --"player.list",
  269. "police.menu_interaction",
  270. "emsMedic.paycheck",
  271. "player.blips",
  272. "ems.mission"
  273. },
  274. ["EMS Lieutenant"] = {
  275. _config = { gtype = "job",
  276. onspawn = function(player) vRPclient.notify(player,{"You are a EMS Lieutenant, salary : $3000."}) end
  277. },
  278. "emergency.revive",
  279. "police.pc",
  280. --"police.wanted",
  281. "emergency.shop",
  282. "emergency.service",
  283. "emergency.cloakroom",
  284. "emergency.vehicle",
  285. "emergency.market",
  286. "emscheck.revive",
  287. "ems.whitelisted",
  288. "ems.loadshop",
  289. --"player.list",
  290. "police.menu_interaction",
  291. "emsLieutenant.paycheck",
  292. "player.blips",
  293. "ems.mission"
  294. },
  295. ["EMS Search and Rescue"] = {
  296. _config = { gtype = "job",
  297. onspawn = function(player) vRPclient.notify(player,{"You are a EMS Search and Rescue, salary : $2500."}) end
  298. },
  299. "emergency.revive",
  300. "police.pc",
  301. --"police.wanted",
  302. "emergency.shop",
  303. "emergency.service",
  304. "emergency.cloakroom",
  305. "emscheck.revive",
  306. "emergency.vehicle",
  307. "emergency.market",
  308. "ems.whitelisted",
  309. "ems.loadshop",
  310. --"player.list",
  311. "police.menu_interaction",
  312. "emsSearchRescue.paycheck",
  313. "player.blips",
  314. "ems.mission"
  315. },
  316. ["Mechanic"] = {
  317. _config = { gtype = "job",
  318. onspawn = function(player) vRPclient.notify(player,{"You are Mechanic, salary : $2000."}) end
  319. },
  320. "vehicle.repair",
  321. "vehicle.replace",
  322. "repair.service",
  323. "mission.repair.satellite_dishes",
  324. "mission.repair.wind_turbines",
  325. "repair.vehicle",
  326. "repair.market",
  327. "repair.paycheck"
  328. },
  329. ["Forger"] = {
  330. _config = { gtype = "job",
  331. onspawn = function(player) vRPclient.notify(player,{"You are Forger, go get some credit cards from hackers."}) end
  332. },
  333. "fraud.credit_cards",
  334. "forger.mission"
  335. },
  336. ["UBER"] = {
  337. _config = { gtype = "job",
  338. onspawn = function(player) vRPclient.notify(player,{"You are UBER, PRESS DEL TO START MISSIONS. Salary : $2000."}) end
  339. },
  340. "uber.service",
  341. "uber.vehicle",
  342. "uber.mission",
  343. "uber.paycheck"
  344. },
  345. ["UPS"] = {
  346. _config = { gtype = "job",
  347. onspawn = function(player) vRPclient.notify(player,{"You are a Courier, Salary : $2000."}) end
  348. },
  349. "ups.cloakroom",
  350. "harvest.parcels",
  351. "ups.vehicle",
  352. "mission.delivery.parcels",
  353. "ups.paycheck"
  354. },
  355. -- ["Gunrunning"] = {
  356. -- _config = { gtype = "job",
  357. --onspawn = function(player) vRPclient.notify(player,{"Coming soon, Please wait!"}) end
  358. --}
  359. --},
  360. ["Unemployed"] = {
  361. _config = { gtype = "job",
  362. onspawn = function(player) vRPclient.notify(player,{"You are Unemployed, go to Department of Jobs."}) end
  363. },
  364. "citizen.paycheck"
  365. },
  366. ["Delivery"] = {
  367. _config = { gtype = "job",
  368. onspawn = function(player) vRPclient.notify(player,{"You are Delivery Driver, Salary : $2000."}) end
  369. },
  370. "mission.delivery.food",
  371. "delivery.vehicle",
  372. "delivery.paycheck"
  373. },
  374. ["Trash Collector"] = {
  375. _config = { gtype = "job",
  376. onspawn = function(player) vRPclient.notify(player,{"You are Trash Collector, Salary : $2000."}) end
  377. },
  378. "mission.collect.trash", -- mission permission
  379. "trash.vehicle", -- garage permission
  380. "trash.paycheck" -- paycheck permission
  381. },
  382. ["Lawyer"] = {
  383. _config = { gtype = "job",
  384. onspawn = function(player) vRPclient.notify(player,{"You are a Lawyer, Salary : $2000."}) end
  385. },
  386. "Lawyer.vehicle",
  387. "Lawyer.whitelisted",
  388. "Lawyer.cloakroom",
  389. "Lawyer.paycheck"
  390. },
  391. ["Drug Dealer"] = {
  392. _config = { gtype = "job",
  393. onspawn = function(player) vRPclient.notify(player,{"You are a Drug Dealer."}) end
  394. },
  395. "mission.drugseller.weed",
  396. "drugseller.market",
  397. "harvest.weed"
  398. },
  399. -- ["Santa"] = {
  400. -- _config = { gtype = "job",
  401. -- onspawn = function(player) vRPclient.notify(player,{"You are Santa, ho ho ho."}) end
  402. -- },
  403. -- "mission.santa", -- What mission Santa has
  404. -- "santa.vehicle", -- Access to his garage
  405. -- "santa.paycheck", -- How much santa gets paid per 15 mins
  406. -- "santa.cloakroom", -- Santa's cloakroom
  407. -- "harvest.presents" -- What he gathers (item transformers.lua)
  408. -- },
  409. ["Hacker"] = {
  410. _config = { gtype = "job",
  411. onspawn = function(player) vRPclient.notify(player,{"You are a Hacker."}) end
  412. },
  413. "mission.hacker.information",
  414. "hacker.hack",
  415. "hacker.credit_cards"
  416. },
  417. ["Bankdriver"] = {
  418. _config = { gtype = "job",
  419. onspawn = function(player) vRPclient.notify(player,{"You are a Bank Driver. Salary: $2000."}) end
  420. },
  421. "mission.bankdriver.moneybank",
  422. "mission.bankdriver.moneybank2",
  423. "bankdriver.vehicle",
  424. "bankdriver.paycheck",
  425. "bankdriver.money"
  426. },
  427. ["Judge"] = {
  428. _config = { gtype = "job",
  429. onspawn = function(player) vRPclient.notify(player,{"You are a Judge. Salary : $5000"}) end
  430. },
  431. "judge.paycheck",
  432. "Judge.whitelisted"
  433. },
  434. ["Cadet"] = {
  435. _config = { gtype = "job",
  436. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  437. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  438. onleave = function(player) vRPclient.setCop(player,{false}) end
  439. },
  440. "police.cloakroom",
  441. "police.putinveh",
  442. "police.getoutveh",
  443. "police.service",
  444. "police.seize.weapons",
  445. "police.drag",
  446. "police.easy_cuff",
  447. "police.easy_fine",
  448. "police.easy_jail",
  449. "police.easy_unjail",
  450. "police.spikes",
  451. "police.menu",
  452. "police.check",
  453. "toggle.service",
  454. "police.freeze",
  455. "police.announce",
  456. -- "-police.store_weapons",
  457. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  458. "Cadet.vehicle",
  459. "police.loadshop",
  460. "cop.whitelisted",
  461. "Cadet.paycheck",
  462. "police.menu_interaction",
  463. "police.mission"
  464. },
  465. ["SWAT"] = {
  466. _config = { gtype = "job",
  467. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  468. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  469. onleave = function(player) vRPclient.setCop(player,{false}) end
  470. },
  471. "SWAT.cloakroom",
  472. "police.pc",
  473. --"police.handcuff",
  474. "police.putinveh",
  475. "police.getoutveh",
  476. "police.service",
  477. "police.wanted",
  478. "police.seize.weapons",
  479. "police.seize.items",
  480. --"police.jail",
  481. "police.drag",
  482. "police.easy_cuff",
  483. "police.easy_fine",
  484. "police.easy_jail",
  485. "police.easy_unjail",
  486. "police.spikes",
  487. "police.menu",
  488. "police.check",
  489. "toggle.service",
  490. "police.freeze",
  491. "police.announce",
  492. -- "-police.store_weapons",
  493. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  494. "police.vehicle",
  495. "police.loadshop",
  496. "emergency.market",
  497. "emergency.revive",
  498. "emergency.shop",
  499. "cop.whitelisted",
  500. "SWAT.paycheck",
  501. "police.menu_interaction",
  502. "police.mission"
  503. },
  504. ["Chief of Police"] = {
  505. _config = { gtype = "job",
  506. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  507. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  508. onleave = function(player) vRPclient.setCop(player,{false}) end
  509. },
  510. "Chief.cloakroom",
  511. "police.pc",
  512. --"police.handcuff",
  513. "police.putinveh",
  514. "police.getoutveh",
  515. "police.service",
  516. "police.drag",
  517. "police.easy_cuff",
  518. "police.easy_fine",
  519. "police.easy_jail",
  520. "police.easy_unjail",
  521. "police.spikes",
  522. "police.menu",
  523. "police.check",
  524. "toggle.service",
  525. "police.freeze",
  526. "police.wanted",
  527. "police.seize.weapons",
  528. "police.seize.items",
  529. --"police.jail",
  530. --"police.fine",
  531. "police.announce",
  532. --"-police.store_weapons",
  533. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  534. "police.vehicle",
  535. "police.loadshop",
  536. "emergency.market",
  537. "emergency.revive",
  538. "emergency.shop",
  539. "cop.whitelisted",
  540. "Chief.paycheck",
  541. "police.menu_interaction",
  542. "police.mission"
  543. },
  544. ["Bounty Hunter"] = {
  545. _config = { gtype = "job",
  546. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  547. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  548. onleave = function(player) vRPclient.setCop(player,{false}) end
  549. },
  550. "Bounty.cloakroom",
  551. --"police.handcuff",
  552. "police.putinveh",
  553. "police.getoutveh",
  554. "police.drag",
  555. "police.easy_cuff",
  556. "police.easy_fine",
  557. "police.easy_jail",
  558. "police.easy_unjail",
  559. "police.spikes",
  560. "police.menu",
  561. "police.check",
  562. "toggle.service",
  563. "police.freeze",
  564. "police.service",
  565. "police.wanted",
  566. "Bounty.vehicle",
  567. -- "-police.store_weapons",
  568. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  569. "Bounty.vehicle",
  570. "Bounty.loadshop",
  571. "police.menu_interaction",
  572. "cop.whitelisted"
  573. },
  574. ["Sheriff"] = {
  575. _config = { gtype = "job",
  576. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  577. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  578. onleave = function(player) vRPclient.setCop(player,{false}) end
  579. },
  580. "sheriff.cloakroom",
  581. "police.pc",
  582. --"police.handcuff",
  583. "police.putinveh",
  584. "police.getoutveh",
  585. "police.service",
  586. "police.drag",
  587. "police.easy_cuff",
  588. "police.easy_fine",
  589. "police.easy_jail",
  590. "police.easy_unjail",
  591. "police.spikes",
  592. "police.menu",
  593. "police.check",
  594. "toggle.service",
  595. "police.freeze",
  596. "police.wanted",
  597. "police.seize.weapons",
  598. "police.seize.items",
  599. --"police.jail",
  600. --"police.fine",
  601. "police.announce",
  602. -- "-police.store_weapons",
  603. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  604. "police.vehicle",
  605. "police.loadshop",
  606. "emergency.market",
  607. "emergency.revive",
  608. "emergency.shop",
  609. "cop.whitelisted",
  610. "sheriff.paycheck",
  611. "police.menu_interaction",
  612. "police.mission"
  613. },
  614. ["State Trooper"] = {
  615. _config = { gtype = "job",
  616. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  617. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  618. onleave = function(player) vRPclient.setCop(player,{false}) end
  619. },
  620. "Commander.cloakroom",
  621. "police.pc",
  622. --"police.handcuff",
  623. "police.putinveh",
  624. "police.getoutveh",
  625. "police.service",
  626. "police.wanted",
  627. "police.seize.weapons",
  628. "police.drag",
  629. "police.easy_cuff",
  630. "police.easy_fine",
  631. "police.easy_jail",
  632. "police.easy_unjail",
  633. "police.spikes",
  634. "police.menu",
  635. "police.check",
  636. "toggle.service",
  637. "police.freeze",
  638. "police.seize.items",
  639. --"police.jail",
  640. --"police.fine",
  641. "police.announce",
  642. --"-police.store_weapons",
  643. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  644. "police.vehicle",
  645. "police.loadshop",
  646. "emergency.market",
  647. "emergency.revive",
  648. "emergency.shop",
  649. "cop.whitelisted",
  650. "Commander.paycheck",
  651. "police.menu_interaction",
  652. "police.mission"
  653. },
  654. ["Deputy Sheriff"] = {
  655. _config = { gtype = "job",
  656. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  657. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  658. onleave = function(player) vRPclient.setCop(player,{false}) end
  659. },
  660. "Deputy.cloakroom",
  661. "police.pc",
  662. --"police.handcuff",
  663. "police.putinveh",
  664. "police.getoutveh",
  665. "police.service",
  666. "police.wanted",
  667. "police.drag",
  668. "police.easy_cuff",
  669. "police.easy_fine",
  670. "police.easy_jail",
  671. "police.easy_unjail",
  672. "police.spikes",
  673. "police.menu",
  674. "police.check",
  675. "toggle.service",
  676. "police.freeze",
  677. "police.seize.weapons",
  678. "police.seize.items",
  679. --"police.jail",
  680. --"police.fine",
  681. "police.announce",
  682. -- "-police.store_weapons",
  683. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  684. "police.vehicle",
  685. "police.loadshop",
  686. "emergency.market",
  687. "emergency.revive",
  688. "emergency.shop",
  689. "cop.whitelisted",
  690. "Deputy.paycheck",
  691. "police.menu_interaction",
  692. "police.mission"
  693. },
  694. ["Police Captain"] = {
  695. _config = { gtype = "job",
  696. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  697. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  698. onleave = function(player) vRPclient.setCop(player,{false}) end
  699. },
  700. "Captain.cloakroom",
  701. "police.pc",
  702. --"police.handcuff",
  703. "police.putinveh",
  704. "police.getoutveh",
  705. "police.service",
  706. "police.drag",
  707. "police.easy_cuff",
  708. "police.easy_fine",
  709. "police.easy_jail",
  710. "police.easy_unjail",
  711. "police.spikes",
  712. "police.menu",
  713. "police.check",
  714. "toggle.service",
  715. "police.freeze",
  716. "police.wanted",
  717. "police.seize.weapons",
  718. "police.seize.items",
  719. --"police.jail",
  720. --"police.fine",
  721. "police.announce",
  722. -- "-police.store_weapons",
  723. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  724. "police.vehicle",
  725. "police.loadshop",
  726. "emergency.market",
  727. "emergency.revive",
  728. "emergency.shop",
  729. "cop.whitelisted",
  730. "Captain.paycheck",
  731. "police.menu_interaction",
  732. "police.mission"
  733. },
  734. ["Police Lieutenant"] = {
  735. _config = { gtype = "job",
  736. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  737. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  738. onleave = function(player) vRPclient.setCop(player,{false}) end
  739. },
  740. "Lieutenant.cloakroom",
  741. "police.pc",
  742. --"police.handcuff",
  743. "police.putinveh",
  744. "police.getoutveh",
  745. "police.service",
  746. "police.drag",
  747. "police.easy_cuff",
  748. "police.easy_fine",
  749. "police.easy_jail",
  750. "police.easy_unjail",
  751. "police.spikes",
  752. "police.menu",
  753. "police.check",
  754. "toggle.service",
  755. "police.freeze",
  756. "police.wanted",
  757. "police.seize.weapons",
  758. "police.seize.items",
  759. --"police.jail",
  760. --"police.fine",
  761. "police.announce",
  762. -- "-police.store_weapons",
  763. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  764. "police.vehicle",
  765. "police.loadshop",
  766. "emergency.market",
  767. "emergency.revive",
  768. "emergency.shop",
  769. "cop.whitelisted",
  770. "Lieutenant.paycheck",
  771. "police.menu_interaction",
  772. "police.mission"
  773. },
  774. ["Police Detective"] = {
  775. _config = { gtype = "job",
  776. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  777. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  778. onleave = function(player) vRPclient.setCop(player,{false}) end
  779. },
  780. "Detective.cloakroom",
  781. "police.pc",
  782. --"police.handcuff",
  783. "police.putinveh",
  784. "police.getoutveh",
  785. "police.service",
  786. "police.drag",
  787. "police.easy_cuff",
  788. "police.easy_fine",
  789. "police.easy_jail",
  790. "police.easy_unjail",
  791. "police.spikes",
  792. "police.menu",
  793. "police.check",
  794. "toggle.service",
  795. "police.freeze",
  796. "police.wanted",
  797. "police.seize.weapons",
  798. "police.seize.items",
  799. --"police.jail",
  800. --"police.fine",
  801. "police.announce",
  802. -- "-police.store_weapons",
  803. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  804. "police.vehicle",
  805. "police.loadshop",
  806. "emergency.market",
  807. "emergency.revive",
  808. "emergency.shop",
  809. "cop.whitelisted",
  810. "Detective.paycheck",
  811. "police.menu_interaction",
  812. "police.mission"
  813. },
  814. ["Police Sergeant"] = {
  815. _config = { gtype = "job",
  816. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  817. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  818. onleave = function(player) vRPclient.setCop(player,{false}) end
  819. },
  820. "Sergeant.cloakroom",
  821. "police.pc",
  822. --"police.handcuff",
  823. "police.putinveh",
  824. "police.getoutveh",
  825. "police.service",
  826. "police.wanted",
  827. "police.drag",
  828. "police.easy_cuff",
  829. "police.easy_fine",
  830. "police.easy_jail",
  831. "police.easy_unjail",
  832. "police.spikes",
  833. "police.menu",
  834. "police.check",
  835. "toggle.service",
  836. "police.freeze",
  837. "police.seize.weapons",
  838. "police.seize.items",
  839. --"police.jail",
  840. --"police.fine",
  841. "police.announce",
  842. -- "-police.store_weapons",
  843. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  844. "police.vehicle",
  845. "police.loadshop",
  846. "emergency.market",
  847. "emergency.revive",
  848. "emergency.shop",
  849. "cop.whitelisted",
  850. "Sergeant.paycheck",
  851. "police.menu_interaction",
  852. "police.mission"
  853. },
  854. ["Dispatcher"] = {
  855. _config = { gtype = "job",
  856. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  857. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  858. onleave = function(player) vRPclient.setCop(player,{false}) end
  859. },
  860. "police.pc",
  861. "police.check",
  862. "police.service",
  863. "police.drag",
  864. "police.easy_cuff",
  865. "police.easy_fine",
  866. "police.easy_jail",
  867. "police.easy_unjail",
  868. "police.spikes",
  869. "police.menu",
  870. "police.check",
  871. "toggle.service",
  872. "police.freeze",
  873. "police.wanted",
  874. "police.announce",
  875. -- "-police.store_weapons",
  876. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  877. "emergency.market",
  878. "emergency.revive",
  879. "emergency.shop",
  880. "cop.whitelisted",
  881. "Dispatch.paycheck",
  882. "police.menu_interaction",
  883. "police.mission"
  884. },
  885.  
  886.  
  887. -- ["trafficguard"] = {
  888. -- _config = { gtype = "job",
  889. -- onjoin = function(player) vRPclient.setCop(player,{true}) end,
  890. -- onspawn = function(player) vRPclient.setCop(player,{true}) end,
  891. -- onleave = function(player) vRPclient.setCop(player,{false}) end
  892. -- },
  893. -- "police.cloakroom",
  894. -- "police.pc",
  895. -- "police.handcuff",
  896. -- "police.putinveh",
  897. -- "police.getoutveh",
  898. -- "police.check",
  899. -- "police.service",
  900. -- "police.wanted",
  901. -- "police.seize.weapons",
  902. -- "police.seize.items",
  903. -- "police.jail",
  904. -- "police.fine",
  905. -- "police.announce",
  906. -- "-police.store_weapons",
  907. -- "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  908. -- "police.vehicle",
  909. -- "police.loadshop",
  910. -- "cop.whitelisted",
  911. -- "trafficguard.paycheck"
  912. -- },
  913.  
  914.  
  915. -- whitelist group for police, emergency and president jobs / add player to this group and user can view the job selection / search in the map
  916. -- moderator=president / president is guy from the server give a player group cop ems moderator when admin is offline / sallary : $10.000
  917. ["cop"] = {
  918. "cop.whitelisted"
  919. },
  920. ["Exotic Car Dealer"] = {
  921. _config = { gtype = "job",
  922. onspawn = function(player) vRPclient.notify(player,{"You are an Exotic Car Dealer"}) end
  923. },
  924. "exotic.whitelisted",
  925. "exotic.vehicle",
  926. "player.group.add",
  927. "player.group.remove"
  928. --"player.list"
  929. },
  930. ["buyer"] = {
  931. "exotic.vehicle"
  932. },
  933. ["mafia"] = {
  934. "mafia.whitelisted"
  935. },
  936. ["ems"] = {
  937. "ems.whitelisted"
  938. },
  939. ["moderator"] = {
  940. "president.whitelisted"
  941. }
  942. }
  943.  
  944. -- groups are added dynamically using the API or the menu, but you can add group when an user join here
  945. cfg.users = {
  946. [1] = { -- give superadmin and admin group to the first created user on the database
  947. "superadmin",
  948. "admin",
  949. "recruiter"
  950. }
  951. }
  952.  
  953. -- group selectors
  954. -- _config
  955. --- x,y,z, blipid, blipcolor, permissions (optional)
  956.  
  957. cfg.selectors = {
  958. ["Job Selector"] = {
  959. _config = {x = -268.363739013672, y = -957.255126953125, z = 31.22313880920410, blipid = 351, blipcolor = 47},
  960. "UBER",
  961. "Mechanic",
  962. "Delivery",
  963. "Bankdriver",
  964. "UPS",
  965. "Fisher",
  966. "Medical Transport",
  967. "Unemployed"
  968. },
  969. ["Police job"] = { -- Alta Street
  970. _config = {x = 447.35137939453, y = -975.57592773438, z = 30.689584732056, blipid = 351, blipcolor = 38, permissions = {"cop.whitelisted"} },
  971. "State Trooper",
  972. "Police Captain",
  973. "Police Lieutenant",
  974. "Police Detective",
  975. "Police Sergeant",
  976. "Sheriff",
  977. "Deputy Sheriff",
  978. "Police Officer",
  979. "Dispatcher",
  980. "Cadet",
  981. "SWAT",
  982. "Unemployed"
  983. },
  984. ["Police job 2"] = { -- Sandy Shores
  985. _config = {x = 1857.5961914063, y = 3688.8952636719, z = 34.267040252686, blipid = 351, blipcolor = 38, permissions = {"cop.whitelisted"} },
  986. "State Trooper",
  987. "Police Captain",
  988. "Police Lieutenant",
  989. "Police Detective",
  990. "Police Sergeant",
  991. "Sheriff",
  992. "Deputy Sheriff",
  993. "Police Officer",
  994. "Dispatcher",
  995. "Cadet",
  996. "SWAT",
  997. "Unemployed"
  998. },
  999. ["Police job 3"] = { -- Paleto Bay
  1000. _config = {x = -449.00927734375, y = 6017.1953125, z = 31.716377258301, blipid = 351, blipcolor = 38, permissions = {"cop.whitelisted"} },
  1001. "State Trooper",
  1002. "Police Captain",
  1003. "Police Lieutenant",
  1004. "Police Detective",
  1005. "Police Sergeant",
  1006. "Sheriff",
  1007. "Deputy Sheriff",
  1008. "Police Officer",
  1009. "Dispatcher",
  1010. "Cadet",
  1011. "SWAT",
  1012. "Unemployed"
  1013. },
  1014. ["Emergency job"] = { -- Spawn Hospital
  1015. _config = {x = 249.50639343262, y = -1375.0694580078, z = 39.534378051758, blipid = 351, blipcolor = 3, permissions = {"ems.whitelisted"} },
  1016. "EMS Chief",
  1017. "EMS Lieutenant",
  1018. "EMS Search and Rescue",
  1019. "EMS Paramedic",
  1020. "Unemployed"
  1021. },
  1022. ["Mafia"] = {
  1023. _config = {x = 1391.9857177734, y = 3603.3562011719, z = 38.94193649292, blipid = 351, blipcolor = 3, permissions = {"mafia.whitelisted"} }, -- UPDATE THE COORDINATES
  1024. "Mafia",
  1025. "Unemployed"
  1026. },
  1027. ["Lawyer"] = {
  1028. _config = {x = -1911.9273681641, y = -569.71649169922, z = 19.097215652466, blipid = 351, blipcolor = 7, permissions = {"Lawyer.whitelisted"} },
  1029. "Lawyer",
  1030. "Unemployed"
  1031. },
  1032. ["drugseller job"] = {
  1033. _config = {x = 1865.1586914063, y = 3749.4343261719, z = 33.046268463135, blipid = 277, blipcolor = 4},
  1034. "Drug Dealer",
  1035. "Unemployed"
  1036. },
  1037. ["Smuggler job"] = {
  1038. _config = {x = 283.10546875, y = 6788.7104492188, z = 15.695198059082, blipid = 150, blipcolor = 4},
  1039. "Weapons Smuggler",
  1040. "Unemployed"
  1041. },
  1042. ["Airline Pilot"] = {
  1043. _config = {x = -759.6591796875, y = -1515.3978271484, z = 4.9768991470337, blipid = 307, blipcolor = 4},
  1044. "Airline Pilot",
  1045. "Unemployed"
  1046. },
  1047. ["Cargo Pilot"] = {
  1048. _config = {x = -928.89624023438, y = -2937.396484375, z = 13.945074081421,blipid = 472, blipcolor = 4},
  1049. "Cargo Pilot",
  1050. "Unemployed"
  1051. },
  1052. ["Trash Collector"] = {
  1053. _config = {x = 750.05029296875, y = -1402.9224853516, z = 26.549806594849,blipid = 318, blipcolor = 2}, -- Job starts here
  1054. "Trash Collector",
  1055. "Unemployed"
  1056. },
  1057. ["Judge"] = {
  1058. _config = {x = -59.127178192139, y = 359.25082397461, z = 113.05643463135, blipid = 351, blipcolor = 7, permissions = {"Judge.whitelisted"} },
  1059. "Judge",
  1060. "Unemployed"
  1061. },
  1062. ["Forger"] = {
  1063. _config = {x = 388.61703491211, y = 3587.1179199219, z = 33.292263031006, blipid = 472, blipcolor = 4},
  1064. "Forger",
  1065. "Unemployed"
  1066. },
  1067. ["Hacker job"] = {
  1068. _config = {x = 705.682189941406, y = -966.919067382813, z = 30.3953418731689, blipid = 472, blipcolor = 4},
  1069. "Hacker",
  1070. "Unemployed"
  1071. }
  1072.  
  1073. }
  1074.  
  1075. return cfg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement