AoD_Talons

cfg/groups

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