eddyz27

prova questo

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