Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.25 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,{"Sei un founder."}) 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. ["mod"] = {
  52. "admin.tickets",
  53. "admin.announce",
  54. "player.list",
  55. "player.kick",
  56. "player.coords",
  57. "player.tptome",
  58. "emergency.revive",
  59. "emergency.shop",
  60. "player.tpto"
  61. },
  62. -- the group user is auto added to all logged players
  63. ["Disoccupato"] = {
  64. "player.phone",
  65. "player.calladmin",
  66. "player.fix_haircut",
  67. "player.check",
  68. --"mugger.mug",
  69. "police.askid",
  70. "police.store_weapons",
  71. "player.skip_coma",
  72. "player.store_money",
  73. "player.check",
  74. "player.loot",
  75. "player.player_menu",
  76. "player.userlist",
  77. "police.seizable", -- can be seized
  78. "user.paycheck"
  79. },
  80. ["Pescatore"] = {
  81. _config = { gtype = "job",
  82. onspawn = function(player) vRPclient.notify(player,{"You are a Fisherman."}) end
  83. },
  84. "mission.delivery.fish",
  85. "fisher.service",
  86. "fisher.vehicle"
  87. },
  88. ["Mafia"] = {
  89. _config = { gtype = "job",
  90. onspawn = function(player) vRPclient.notify(player,{"You are a member of the mafia."}) end
  91. },
  92. "police.menu", -- Acces to the police menu to use all of the things below.
  93. "police.easy_cuff", -- Acces to cuff someone
  94. "police.drag", -- Acces to drag a a cuffed person
  95. "police.putinveh", -- Acces to put a handcuff player in a vehicle.
  96. "police.getoutveh", -- Acces to take out a handcuff player from a vehicle
  97. "mafia.loadshop", -- Gunshop for the mafia.
  98. "police.store_weapons", -- Acces to store weapons
  99. "mafia.vehicle", -- Acces to the garage.
  100. "mafia.whitelisted", -- Whitelisted group
  101. "mafia.paycheck" -- Paycheck ( if you want)
  102. },
  103. ["EMS Direttore"] = {
  104. _config = { gtype = "job",
  105. onspawn = function(player) vRPclient.notify(player,{"You are a EMS Chief, salary : $5000."}) end
  106. },
  107. "emergency.revive",
  108. "police.pc",
  109. "police.wanted",
  110. "emergency.shop",
  111. "emergency.service",
  112. "emergency.cloakroom",
  113. "emscheck.revive",
  114. "emergency.vehicle",
  115. "emergency.market",
  116. "ems.whitelisted",
  117. "ems.loadshop",
  118. --"player.list",
  119. "police.menu_interaction",
  120. "emsChief.paycheck",
  121. "player.blips",
  122. "ems.mission"
  123. },
  124. ["EMS Paramedico"] = {
  125. _config = { gtype = "job",
  126. onspawn = function(player) vRPclient.notify(player,{"You are a EMS Paramedic, salary : $2000."}) end
  127. },
  128. "emergency.revive",
  129. "police.pc",
  130. --"police.wanted",
  131. "emergency.shop",
  132. "emergency.service",
  133. "emscheck.revive",
  134. "emergency.cloakroom",
  135. "emergency.vehicle",
  136. "emergency.market",
  137. "ems.whitelisted",
  138. "ems.loadshop",
  139. --"player.list",
  140. "police.menu_interaction",
  141. "emsMedic.paycheck",
  142. "player.blips",
  143. "ems.mission"
  144. },
  145. ["EMS Tirocinante"] = {
  146. _config = { gtype = "job",
  147. onspawn = function(player) vRPclient.notify(player,{"You are a EMS Lieutenant, salary : $3000."}) end
  148. },
  149. "emergency.revive",
  150. "police.pc",
  151. --"police.wanted",
  152. "emergency.shop",
  153. "emergency.service",
  154. "emergency.cloakroom",
  155. "emergency.vehicle",
  156. "emergency.market",
  157. "emscheck.revive",
  158. "ems.whitelisted",
  159. "ems.loadshop",
  160. --"player.list",
  161. "police.menu_interaction",
  162. "emsLieutenant.paycheck",
  163. "player.blips",
  164. "ems.mission"
  165. },
  166. ["EMS Medico"] = {
  167. _config = { gtype = "job",
  168. onspawn = function(player) vRPclient.notify(player,{"You are a EMS Search and Rescue, salary : $2500."}) end
  169. },
  170. "emergency.revive",
  171. "police.pc",
  172. --"police.wanted",
  173. "emergency.shop",
  174. "emergency.service",
  175. "emergency.cloakroom",
  176. "emscheck.revive",
  177. "emergency.vehicle",
  178. "emergency.market",
  179. "ems.whitelisted",
  180. "ems.loadshop",
  181. --"player.list",
  182. "police.menu_interaction",
  183. "emsSearchRescue.paycheck",
  184. "player.blips",
  185. "ems.mission"
  186. },
  187. ["Meccanico"] = {
  188. _config = { gtype = "job",
  189. onspawn = function(player) vRPclient.notify(player,{"You are Mechanic, salary : $2000."}) end
  190. },
  191. "vehicle.repair",
  192. "vehicle.replace",
  193. "repair.service",
  194. "mission.repair.satellite_dishes",
  195. "mission.repair.wind_turbines",
  196. "repair.vehicle",
  197. "repair.market",
  198. "repair.paycheck"
  199. },
  200. ["Concessionario Dipendente"] = {
  201. _config = { gtype = "job",
  202. onspawn = function(player) vRPclient.notify(player,{"Sei Un Concessionario, salary : $3000."}) end
  203. },
  204. "motorsport.whitelisted"
  205. },
  206. ["UBER"] = {
  207. _config = { gtype = "job",
  208. onspawn = function(player) vRPclient.notify(player,{"You are UBER, PRESS DEL TO START MISSIONS. Salary : $2000."}) end
  209. },
  210. "uber.service",
  211. "uber.vehicle",
  212. "uber.mission",
  213. "uber.paycheck"
  214. },
  215. ["UPS"] = {
  216. _config = { gtype = "job",
  217. onspawn = function(player) vRPclient.notify(player,{"You are a Courier, Salary : $2000."}) end
  218. },
  219. "ups.cloakroom",
  220. "harvest.parcels",
  221. "ups.vehicle",
  222. "mission.delivery.parcels",
  223. "ups.paycheck"
  224. },
  225. ["Fattorino"] = {
  226. _config = { gtype = "job",
  227. onspawn = function(player) vRPclient.notify(player,{"You are Delivery Driver, Salary : $2000."}) end
  228. },
  229. "mission.delivery.food",
  230. "delivery.vehicle",
  231. "delivery.paycheck"
  232. },
  233. ["Drug Dealer"] = {
  234. _config = { gtype = "job",
  235. onspawn = function(player) vRPclient.notify(player,{"You are a Drug Dealer."}) end
  236. },
  237. "mission.drugseller.weed",
  238. "drugseller.market",
  239. "harvest.weed"
  240. },
  241. ["Bankdriver"] = {
  242. _config = { gtype = "job",
  243. onspawn = function(player) vRPclient.notify(player,{"You are a Bank Driver. Salary: $2000."}) end
  244. },
  245. "mission.bankdriver.moneybank",
  246. "mission.bankdriver.moneybank2",
  247. "bankdriver.vehicle",
  248. "bankdriver.paycheck",
  249. "bankdriver.money"
  250. },
  251. ["LSPD Recluta"] = {
  252. _config = { gtype = "job",
  253. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  254. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  255. onleave = function(player) vRPclient.setCop(player,{false}) end
  256. },
  257. "police.vehicle"
  258. "police.cloakroom",
  259. "police.putinveh",
  260. "police.getoutveh",
  261. "police.service",
  262. "police.seize.weapons",
  263. "police.drag",
  264. "police.easy_cuff",
  265. "police.easy_fine",
  266. "police.easy_jail",
  267. "police.easy_unjail",
  268. "police.spikes",
  269. "police.menu",
  270. "police.check",
  271. "toggle.service",
  272. "police.freeze",
  273. "police.announce",
  274. "-police.store_weapons",
  275. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  276. "police.loadshop",
  277. "cop.whitelisted",
  278. "Cadet.paycheck",
  279. "police.menu_interaction",
  280. "police.mission"
  281. },
  282. ["LSPD Capitano"] = {
  283. _config = { gtype = "job",
  284. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  285. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  286. onleave = function(player) vRPclient.setCop(player,{false}) end
  287. },
  288. "Chief.cloakroom",
  289. "police.pc",
  290. "police.handcuff",
  291. "police.putinveh",
  292. "police.getoutveh",
  293. "police.service",
  294. "police.drag",
  295. "police.easy_cuff",
  296. "police.easy_fine",
  297. "police.easy_jail",
  298. "police.easy_unjail",
  299. "police.spikes",
  300. "police.menu",
  301. "police.check",
  302. "toggle.service",
  303. "police.freeze",
  304. "police.wanted",
  305. "police.seize.weapons",
  306. "police.seize.items",
  307. "police.jail",
  308. "police.fine",
  309. "police.announce",
  310. "-police.store_weapons",
  311. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  312. "police.vehicle",
  313. "police.loadshop",
  314. "emergency.market",
  315. "emergency.revive",
  316. "emergency.shop",
  317. "cop.whitelisted",
  318. "Chief.paycheck",
  319. "police.menu_interaction",
  320. "police.mission"
  321. },
  322. ["LSPD ViceCapitano"] = {
  323. _config = { gtype = "job",
  324. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  325. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  326. onleave = function(player) vRPclient.setCop(player,{false}) end
  327. },
  328. "Captain.cloakroom",
  329. "police.pc",
  330. "police.handcuff",
  331. "police.putinveh",
  332. "police.getoutveh",
  333. "police.service",
  334. "police.drag",
  335. "police.easy_cuff",
  336. "police.easy_fine",
  337. "police.easy_jail",
  338. "police.easy_unjail",
  339. "police.spikes",
  340. "police.menu",
  341. "police.check",
  342. "toggle.service",
  343. "police.freeze",
  344. "police.wanted",
  345. "police.seize.weapons",
  346. "police.seize.items",
  347. "police.jail",
  348. "police.fine",
  349. "police.announce",
  350. "-police.store_weapons",
  351. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  352. "police.vehicle",
  353. "police.loadshop",
  354. "emergency.market",
  355. "emergency.revive",
  356. "emergency.shop",
  357. "cop.whitelisted",
  358. "Captain.paycheck",
  359. "police.menu_interaction",
  360. "police.mission"
  361. },
  362. ["LSPD Tenente"] = {
  363. _config = { gtype = "job",
  364. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  365. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  366. onleave = function(player) vRPclient.setCop(player,{false}) end
  367. },
  368. "Lieutenant.cloakroom",
  369. "police.pc",
  370. "police.handcuff",
  371. "police.putinveh",
  372. "police.getoutveh",
  373. "police.service",
  374. "police.drag",
  375. "police.easy_cuff",
  376. "police.easy_fine",
  377. "police.easy_jail",
  378. "police.easy_unjail",
  379. "police.spikes",
  380. "police.menu",
  381. "police.check",
  382. "toggle.service",
  383. "police.freeze",
  384. "police.wanted",
  385. "police.seize.weapons",
  386. "police.seize.items",
  387. "police.jail",
  388. "police.fine",
  389. "police.announce",
  390. "-police.store_weapons",
  391. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  392. "police.vehicle",
  393. "police.loadshop",
  394. "emergency.market",
  395. "emergency.revive",
  396. "emergency.shop",
  397. "cop.whitelisted",
  398. "Lieutenant.paycheck",
  399. "police.menu_interaction",
  400. "police.mission"
  401. },
  402. ["LSPD Sergente"] = {
  403. _config = { gtype = "job",
  404. onjoin = function(player) vRPclient.setCop(player,{true}) end,
  405. onspawn = function(player) vRPclient.setCop(player,{true}) end,
  406. onleave = function(player) vRPclient.setCop(player,{false}) end
  407. },
  408. "Sergeant.cloakroom",
  409. "police.pc",
  410. "police.handcuff",
  411. "police.putinveh",
  412. "police.getoutveh",
  413. "police.service",
  414. "police.wanted",
  415. "police.drag",
  416. "police.easy_cuff",
  417. "police.easy_fine",
  418. "police.easy_jail",
  419. "police.easy_unjail",
  420. "police.spikes",
  421. "police.menu",
  422. "police.check",
  423. "toggle.service",
  424. "police.freeze",
  425. "police.seize.weapons",
  426. "police.seize.items",
  427. "police.jail",
  428. "police.fine",
  429. "police.announce",
  430. "-police.store_weapons",
  431. "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
  432. "police.vehicle",
  433. "police.loadshop",
  434. "emergency.market",
  435. "emergency.revive",
  436. "emergency.shop",
  437. "cop.whitelisted",
  438. "Sergeant.paycheck",
  439. "police.menu_interaction",
  440. "police.mission"
  441. }
  442. }
  443. -- whitelist group for police, emergency and president jobs / add player to this group and user can view the job selection / search in the map
  444. -- moderator=president / president is guy from the server give a player group cop ems moderator when admin is offline / sallary : $10.000
  445. ["cop"] = {
  446. "cop.whitelisted"
  447. },
  448. ["motorsport"] = {
  449. "motorsport.whitelisted"
  450. },
  451. ["mafia"] = {
  452. "mafia.whitelisted"
  453. },
  454. ["ems"] = {
  455. "ems.whitelisted"
  456. },
  457. ["moderator"] = {
  458. "president.whitelisted"
  459. }
  460. }
  461.  
  462. -- groups are added dynamically using the API or the menu, but you can add group when an user join here
  463. cfg.users = {
  464. [1] = { -- give superadmin and admin group to the first created user on the database
  465. "superadmin",
  466. "admin",
  467. "recruiter"
  468. }
  469. }
  470.  
  471. -- group selectors
  472. -- _config
  473. --- x,y,z, blipid, blipcolor, permissions (optional)
  474.  
  475. cfg.selectors = {
  476. ["Job Selector"] = {
  477. _config = {x = -268.363739013672, y = -957.255126953125, z = 31.22313880920410, blipid = 351, blipcolor = 47},
  478. "Meccanico",
  479. "Fattorino",
  480. "Pescatore",
  481. }
  482.  
  483. }
  484.  
  485. return cfg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement