Advertisement
eddyz27

cosi funziona te lo dico io

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