Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local cfg = {}
- -- define each group with a set of permissions
- -- _config property:
- --- gtype (optional): used to have only one group with the same gtype per player (example: a job gtype to only have one job)
- --- onspawn (optional): function(player) (called when the player spawn with the group)
- --- onjoin (optional): function(player) (called when the player join the group)
- --- onleave (optional): function(player) (called when the player leave the group)
- --- (you have direct access to vRP and vRPclient, the tunnel to client, in the config callbacks)
- cfg.groups = {
- ["superadmin"] = {
- _config = {onspawn = function(player) vRPclient.notify(player,{"Sei un founder."}) end},
- "player.group.add",
- "player.group.add.superadmin",
- "player.group.add.admin", --- this is just a example which can be added to admin/mod group if being made
- "player.group.remove",
- "player.givemoney",
- "player.giveitem"
- },
- ["admin"] = {
- "admin.tickets",
- "admin.announce",
- "admin.menu",
- "admin.easy_unjail",
- "admin.spikes",
- "admin.godmode",
- "admin.spawnveh",
- "admin.deleteveh",
- "player.blips",
- "player.tptowaypoint",
- "player.list",
- "player.whitelist",
- "player.unwhitelist",
- "player.kick",
- "player.ban",
- "player.unban",
- "player.noclip",
- "player.custom_emote",
- "player.custom_sound",
- "player.display_custom",
- "player.coords",
- "player.tptome",
- "emergency.revive",
- "emergency.shop",
- "player.tpto"
- },
- -- ["god"] = {
- -- "admin.god" -- reset survivals/health periodically
- -- },
- ["mod"] = {
- "admin.tickets",
- "admin.announce",
- "player.list",
- "player.kick",
- "player.coords",
- "player.tptome",
- "emergency.revive",
- "emergency.shop",
- "player.tpto"
- },
- -- the group user is auto added to all logged players
- ["Disoccupato"] = {
- "player.phone",
- "player.calladmin",
- "player.fix_haircut",
- "player.check",
- --"mugger.mug",
- "police.askid",
- "police.store_weapons",
- "player.skip_coma",
- "player.store_money",
- "player.check",
- "player.loot",
- "player.player_menu",
- "player.userlist",
- "police.seizable", -- can be seized
- "user.paycheck"
- },
- ["Pescatore"] = {
- _config = { gtype = "job",
- onspawn = function(player) vRPclient.notify(player,{"You are a Fisherman."}) end
- },
- "mission.delivery.fish",
- "fisher.service",
- "fisher.vehicle"
- },
- ["Mafia"] = {
- _config = { gtype = "job",
- onspawn = function(player) vRPclient.notify(player,{"You are a member of the mafia."}) end
- },
- "police.menu", -- Acces to the police menu to use all of the things below.
- "police.easy_cuff", -- Acces to cuff someone
- "police.drag", -- Acces to drag a a cuffed person
- "police.putinveh", -- Acces to put a handcuff player in a vehicle.
- "police.getoutveh", -- Acces to take out a handcuff player from a vehicle
- "mafia.loadshop", -- Gunshop for the mafia.
- "police.store_weapons", -- Acces to store weapons
- "mafia.vehicle", -- Acces to the garage.
- "mafia.whitelisted", -- Whitelisted group
- "mafia.paycheck" -- Paycheck ( if you want)
- },
- ["EMS Direttore"] = {
- _config = { gtype = "job",
- onspawn = function(player) vRPclient.notify(player,{"You are a EMS Chief, salary : $5000."}) end
- },
- "emergency.revive",
- "police.pc",
- "police.wanted",
- "emergency.shop",
- "emergency.service",
- "emergency.cloakroom",
- "emscheck.revive",
- "emergency.vehicle",
- "emergency.market",
- "ems.whitelisted",
- "ems.loadshop",
- --"player.list",
- "police.menu_interaction",
- "emsChief.paycheck",
- "player.blips",
- "ems.mission"
- },
- ["EMS Paramedico"] = {
- _config = { gtype = "job",
- onspawn = function(player) vRPclient.notify(player,{"You are a EMS Paramedic, salary : $2000."}) end
- },
- "emergency.revive",
- "police.pc",
- --"police.wanted",
- "emergency.shop",
- "emergency.service",
- "emscheck.revive",
- "emergency.cloakroom",
- "emergency.vehicle",
- "emergency.market",
- "ems.whitelisted",
- "ems.loadshop",
- --"player.list",
- "police.menu_interaction",
- "emsMedic.paycheck",
- "player.blips",
- "ems.mission"
- },
- ["EMS Tirocinante"] = {
- _config = { gtype = "job",
- onspawn = function(player) vRPclient.notify(player,{"You are a EMS Lieutenant, salary : $3000."}) end
- },
- "emergency.revive",
- "police.pc",
- --"police.wanted",
- "emergency.shop",
- "emergency.service",
- "emergency.cloakroom",
- "emergency.vehicle",
- "emergency.market",
- "emscheck.revive",
- "ems.whitelisted",
- "ems.loadshop",
- --"player.list",
- "police.menu_interaction",
- "emsLieutenant.paycheck",
- "player.blips",
- "ems.mission"
- },
- ["EMS Medico"] = {
- _config = { gtype = "job",
- onspawn = function(player) vRPclient.notify(player,{"You are a EMS Search and Rescue, salary : $2500."}) end
- },
- "emergency.revive",
- "police.pc",
- --"police.wanted",
- "emergency.shop",
- "emergency.service",
- "emergency.cloakroom",
- "emscheck.revive",
- "emergency.vehicle",
- "emergency.market",
- "ems.whitelisted",
- "ems.loadshop",
- --"player.list",
- "police.menu_interaction",
- "emsSearchRescue.paycheck",
- "player.blips",
- "ems.mission"
- },
- ["Meccanico"] = {
- _config = { gtype = "job",
- onspawn = function(player) vRPclient.notify(player,{"You are Mechanic, salary : $2000."}) end
- },
- "vehicle.repair",
- "vehicle.replace",
- "repair.service",
- "mission.repair.satellite_dishes",
- "mission.repair.wind_turbines",
- "repair.vehicle",
- "repair.market",
- "repair.paycheck"
- },
- ["Concessionario Dipendente"] = {
- _config = { gtype = "job",
- onspawn = function(player) vRPclient.notify(player,{"Sei Un Concessionario, salary : $3000."}) end
- },
- "motorsport.whitelisted"
- },
- ["UBER"] = {
- _config = { gtype = "job",
- onspawn = function(player) vRPclient.notify(player,{"You are UBER, PRESS DEL TO START MISSIONS. Salary : $2000."}) end
- },
- "uber.service",
- "uber.vehicle",
- "uber.mission",
- "uber.paycheck"
- },
- ["UPS"] = {
- _config = { gtype = "job",
- onspawn = function(player) vRPclient.notify(player,{"You are a Courier, Salary : $2000."}) end
- },
- "ups.cloakroom",
- "harvest.parcels",
- "ups.vehicle",
- "mission.delivery.parcels",
- "ups.paycheck"
- },
- ["Fattorino"] = {
- _config = { gtype = "job",
- onspawn = function(player) vRPclient.notify(player,{"You are Delivery Driver, Salary : $2000."}) end
- },
- "mission.delivery.food",
- "delivery.vehicle",
- "delivery.paycheck"
- },
- ["Drug Dealer"] = {
- _config = { gtype = "job",
- onspawn = function(player) vRPclient.notify(player,{"You are a Drug Dealer."}) end
- },
- "mission.drugseller.weed",
- "drugseller.market",
- "harvest.weed"
- },
- ["Bankdriver"] = {
- _config = { gtype = "job",
- onspawn = function(player) vRPclient.notify(player,{"You are a Bank Driver. Salary: $2000."}) end
- },
- "mission.bankdriver.moneybank",
- "mission.bankdriver.moneybank2",
- "bankdriver.vehicle",
- "bankdriver.paycheck",
- "bankdriver.money"
- },
- ["LSPD Recluta"] = {
- _config = { gtype = "job",
- onjoin = function(player) vRPclient.setCop(player,{true}) end,
- onspawn = function(player) vRPclient.setCop(player,{true}) end,
- onleave = function(player) vRPclient.setCop(player,{false}) end
- },
- "police.vehicle"
- "police.cloakroom",
- "police.putinveh",
- "police.getoutveh",
- "police.service",
- "police.seize.weapons",
- "police.drag",
- "police.easy_cuff",
- "police.easy_fine",
- "police.easy_jail",
- "police.easy_unjail",
- "police.spikes",
- "police.menu",
- "police.check",
- "toggle.service",
- "police.freeze",
- "police.announce",
- "-police.store_weapons",
- "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
- "police.loadshop",
- "cop.whitelisted",
- "Cadet.paycheck",
- "police.menu_interaction",
- "police.mission"
- },
- ["LSPD Capitano"] = {
- _config = { gtype = "job",
- onjoin = function(player) vRPclient.setCop(player,{true}) end,
- onspawn = function(player) vRPclient.setCop(player,{true}) end,
- onleave = function(player) vRPclient.setCop(player,{false}) end
- },
- "Chief.cloakroom",
- "police.pc",
- "police.handcuff",
- "police.putinveh",
- "police.getoutveh",
- "police.service",
- "police.drag",
- "police.easy_cuff",
- "police.easy_fine",
- "police.easy_jail",
- "police.easy_unjail",
- "police.spikes",
- "police.menu",
- "police.check",
- "toggle.service",
- "police.freeze",
- "police.wanted",
- "police.seize.weapons",
- "police.seize.items",
- "police.jail",
- "police.fine",
- "police.announce",
- "-police.store_weapons",
- "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
- "police.vehicle",
- "police.loadshop",
- "emergency.market",
- "emergency.revive",
- "emergency.shop",
- "cop.whitelisted",
- "Chief.paycheck",
- "police.menu_interaction",
- "police.mission"
- },
- ["LSPD ViceCapitano"] = {
- _config = { gtype = "job",
- onjoin = function(player) vRPclient.setCop(player,{true}) end,
- onspawn = function(player) vRPclient.setCop(player,{true}) end,
- onleave = function(player) vRPclient.setCop(player,{false}) end
- },
- "Captain.cloakroom",
- "police.pc",
- "police.handcuff",
- "police.putinveh",
- "police.getoutveh",
- "police.service",
- "police.drag",
- "police.easy_cuff",
- "police.easy_fine",
- "police.easy_jail",
- "police.easy_unjail",
- "police.spikes",
- "police.menu",
- "police.check",
- "toggle.service",
- "police.freeze",
- "police.wanted",
- "police.seize.weapons",
- "police.seize.items",
- "police.jail",
- "police.fine",
- "police.announce",
- "-police.store_weapons",
- "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
- "police.vehicle",
- "police.loadshop",
- "emergency.market",
- "emergency.revive",
- "emergency.shop",
- "cop.whitelisted",
- "Captain.paycheck",
- "police.menu_interaction",
- "police.mission"
- },
- ["LSPD Tenente"] = {
- _config = { gtype = "job",
- onjoin = function(player) vRPclient.setCop(player,{true}) end,
- onspawn = function(player) vRPclient.setCop(player,{true}) end,
- onleave = function(player) vRPclient.setCop(player,{false}) end
- },
- "Lieutenant.cloakroom",
- "police.pc",
- "police.handcuff",
- "police.putinveh",
- "police.getoutveh",
- "police.service",
- "police.drag",
- "police.easy_cuff",
- "police.easy_fine",
- "police.easy_jail",
- "police.easy_unjail",
- "police.spikes",
- "police.menu",
- "police.check",
- "toggle.service",
- "police.freeze",
- "police.wanted",
- "police.seize.weapons",
- "police.seize.items",
- "police.jail",
- "police.fine",
- "police.announce",
- "-police.store_weapons",
- "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
- "police.vehicle",
- "police.loadshop",
- "emergency.market",
- "emergency.revive",
- "emergency.shop",
- "cop.whitelisted",
- "Lieutenant.paycheck",
- "police.menu_interaction",
- "police.mission"
- },
- ["LSPD Sergente"] = {
- _config = { gtype = "job",
- onjoin = function(player) vRPclient.setCop(player,{true}) end,
- onspawn = function(player) vRPclient.setCop(player,{true}) end,
- onleave = function(player) vRPclient.setCop(player,{false}) end
- },
- "Sergeant.cloakroom",
- "police.pc",
- "police.handcuff",
- "police.putinveh",
- "police.getoutveh",
- "police.service",
- "police.wanted",
- "police.drag",
- "police.easy_cuff",
- "police.easy_fine",
- "police.easy_jail",
- "police.easy_unjail",
- "police.spikes",
- "police.menu",
- "police.check",
- "toggle.service",
- "police.freeze",
- "police.seize.weapons",
- "police.seize.items",
- "police.jail",
- "police.fine",
- "police.announce",
- "-police.store_weapons",
- "-police.seizable", -- negative permission, police can't seize itself, even if another group add the permission
- "police.vehicle",
- "police.loadshop",
- "emergency.market",
- "emergency.revive",
- "emergency.shop",
- "cop.whitelisted",
- "Sergeant.paycheck",
- "police.menu_interaction",
- "police.mission"
- }
- }
- -- whitelist group for police, emergency and president jobs / add player to this group and user can view the job selection / search in the map
- -- moderator=president / president is guy from the server give a player group cop ems moderator when admin is offline / sallary : $10.000
- ["cop"] = {
- "cop.whitelisted"
- },
- ["motorsport"] = {
- "motorsport.whitelisted"
- },
- ["mafia"] = {
- "mafia.whitelisted"
- },
- ["ems"] = {
- "ems.whitelisted"
- },
- ["moderator"] = {
- "president.whitelisted"
- }
- }
- -- groups are added dynamically using the API or the menu, but you can add group when an user join here
- cfg.users = {
- [1] = { -- give superadmin and admin group to the first created user on the database
- "superadmin",
- "admin",
- "recruiter"
- }
- }
- -- group selectors
- -- _config
- --- x,y,z, blipid, blipcolor, permissions (optional)
- cfg.selectors = {
- ["Job Selector"] = {
- _config = {x = -268.363739013672, y = -957.255126953125, z = 31.22313880920410, blipid = 351, blipcolor = 47},
- "Meccanico",
- "Fattorino",
- "Pescatore",
- }
- }
- return cfg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement