Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Proxy = module("vrp", "lib/Proxy")
- RegisterServerEvent('paycheck:salary')
- AddEventHandler('paycheck:salary', function()
- local user_id = vRP.getUserId(source)
- --POLIZIA
- if vRP.hasPermission(user_id,"capitano.paycheck") then
- vRP.giveMoney(user_id,3000)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Police Department",false,"Payday: ~g~$3000"})
- end
- if vRP.hasPermission(user_id,"vicecapitano.paycheck") then
- vRP.giveMoney(user_id,2500)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Police Department",false,"Payday: ~g~$2500"})
- end
- if vRP.hasPermission(user_id,"cadetto.paycheck") then
- vRP.giveMoney(user_id,2000)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Police Department",false,"Payday: ~g~$2000"})
- end
- --FINE POLIZIA
- --SCERIFFI
- if vRP.hasPermission(user_id,"capodeglisceriffi.paycheck") then
- vRP.giveMoney(user_id,3000)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Police Department",false,"Payday: ~g~$3000"})
- end
- if vRP.hasPermission(user_id,"vicesceriffo.paycheck") then
- vRP.giveMoney(user_id,2500)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Police Department",false,"Payday: ~g~$2500"})
- end
- if vRP.hasPermission(user_id,"sceriffo.paycheck") then
- vRP.giveMoney(user_id,2000)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Police Department",false,"Payday: ~g~$2000"})
- end
- --FINE SCERIFFI
- --MEDICI
- if vRP.hasPermission(user_id,"dottore-capo.paycheck") then
- vRP.giveMoney(user_id,3000)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"EMS Department",false,"Payday: ~g~$3000"})
- end
- if vRP.hasPermission(user_id,"medico.paycheck") then
- vRP.giveMoney(user_id,2500)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"EMS Department",false,"Payday: ~g~$2500"})
- end
- if vRP.hasPermission(user_id,"paramedico.paycheck") then
- vRP.giveMoney(user_id,2000)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"EMS Department",false,"Payday: ~g~$2000"})
- end
- --FINE MEDICI
- --MECCANICO
- if vRP.hasPermission(user_id,"proprietariowrapskin.paycheck") then
- vRP.giveMoney(user_id,3000)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Meccanico Company",false,"Payday: ~g~$3000"})
- end
- if vRP.hasPermission(user_id,"meccanicowrapskin.paycheck") then
- vRP.giveMoney(user_id,2500)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Meccanico Company",false,"Payday: ~g~$2500"})
- end
- if vRP.hasPermission(user_id,"Carrozziere.paycheck") then
- vRP.giveMoney(user_id,2000)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Meccanico Company",false,"Payday: ~g~$2000"})
- end
- --FINE MECCANICO
- --TAXI
- if vRP.hasPermission(user_id,"proprietario.paycheck") then
- vRP.giveMoney(user_id,3000)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Taxista Company",false,"Payday: ~g~$3000"})
- end
- if vRP.hasPermission(user_id,"amministratore.paycheck") then
- vRP.giveMoney(user_id,2500)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Taxista Company",false,"Payday: ~g~$2500"})
- end
- if vRP.hasPermission(user_id,"taxista.paycheck") then
- vRP.giveMoney(user_id,2000)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Taxista Company",false,"Payday: ~g~$2000"})
- end
- --FINE TAXI
- --PILOTA
- if vRP.hasPermission(user_id,"comandante.paycheck") then
- vRP.giveMoney(user_id,3000)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"San Andreas Company",false,"Payday: ~g~$3000"})
- end
- if vRP.hasPermission(user_id,"primoufficiale.paycheck") then
- vRP.giveMoney(user_id,2500)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"San Andreas Company",false,"Payday: ~g~$2500"})
- end
- if vRP.hasPermission(user_id,"apprendistapilota.paycheck") then
- vRP.giveMoney(user_id,2000)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"San Andreas Company",false,"Payday: ~g~$2000"})
- end
- --FINE PILOTA
- --BAHAMA
- if vRP.hasPermission(user_id,"proprietariobahama.paycheck") then
- vRP.giveMoney(user_id,3000)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Bahama Company",false,"Payday: ~g~$3000"})
- end
- if vRP.hasPermission(user_id,"amministratorebahama.paycheck") then
- vRP.giveMoney(user_id,2500)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Bahama Company",false,"Payday: ~g~$2500"})
- end
- if vRP.hasPermission(user_id,"dipendentebahama.paycheck") then
- vRP.giveMoney(user_id,2000)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Bahama Company",false,"Payday: ~g~$2000"})
- end
- --FINE BAHAMA
- --BIKER
- if vRP.hasPermission(user_id,"capobiker.paycheck") then
- vRP.giveMoney(user_id,3000)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Biker Company",false,"Payday: ~g~$3000"})
- end
- if vRP.hasPermission(user_id,"bracciodestrobiker.paycheck") then
- vRP.giveMoney(user_id,2500)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Biker Company",false,"Payday: ~g~$2500"})
- end
- if vRP.hasPermission(user_id,"biker.paycheck") then
- vRP.giveMoney(user_id,2000)
- vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Biker Company",false,"Payday: ~g~$2000"})
- end
- --FINE BIKER
- end)
- RegisterServerEvent('paycheck:bonus')
- AddEventHandler('paycheck:bonus', function()
- local user_id = vRP.getUserId(source)
- if vRP.hasPermission(user_id,"user.paycheck") then
- vRP.giveMoney(user_id,150)
- vRPclient.notify(source,{"Regalo per aver giocato: $150"})
- end
- if vRP.hasPermission(user_id,"user.paycheck") then
- vRP.getMoney(user_id,50)
- vRPclient.notify(source,{"Tasse: R$-50"})
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement