eddyz27

groups.lua

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