Advertisement
eddyz27

fff3fwef

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