Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.45 KB | None | 0 0
  1. local Proxy = module("vrp", "lib/Proxy")
  2.  
  3. RegisterServerEvent('paycheck:salary')
  4. AddEventHandler('paycheck:salary', function()
  5. local user_id = vRP.getUserId(source)
  6. --POLIZIA
  7. if vRP.hasPermission(user_id,"capitano.paycheck") then
  8. vRP.giveMoney(user_id,3000)
  9. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Police Department",false,"Payday: ~g~$3000"})
  10. end
  11. if vRP.hasPermission(user_id,"vicecapitano.paycheck") then
  12. vRP.giveMoney(user_id,2500)
  13. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Police Department",false,"Payday: ~g~$2500"})
  14. end
  15. if vRP.hasPermission(user_id,"cadetto.paycheck") then
  16. vRP.giveMoney(user_id,2000)
  17. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Police Department",false,"Payday: ~g~$2000"})
  18. end
  19. --FINE POLIZIA
  20. --SCERIFFI
  21. if vRP.hasPermission(user_id,"capodeglisceriffi.paycheck") then
  22. vRP.giveMoney(user_id,3000)
  23. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Police Department",false,"Payday: ~g~$3000"})
  24. end
  25. if vRP.hasPermission(user_id,"vicesceriffo.paycheck") then
  26. vRP.giveMoney(user_id,2500)
  27. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Police Department",false,"Payday: ~g~$2500"})
  28. end
  29. if vRP.hasPermission(user_id,"sceriffo.paycheck") then
  30. vRP.giveMoney(user_id,2000)
  31. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Police Department",false,"Payday: ~g~$2000"})
  32. end
  33. --FINE SCERIFFI
  34. --MEDICI
  35. if vRP.hasPermission(user_id,"dottore-capo.paycheck") then
  36. vRP.giveMoney(user_id,3000)
  37. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"EMS Department",false,"Payday: ~g~$3000"})
  38. end
  39. if vRP.hasPermission(user_id,"medico.paycheck") then
  40. vRP.giveMoney(user_id,2500)
  41. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"EMS Department",false,"Payday: ~g~$2500"})
  42. end
  43. if vRP.hasPermission(user_id,"paramedico.paycheck") then
  44. vRP.giveMoney(user_id,2000)
  45. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"EMS Department",false,"Payday: ~g~$2000"})
  46. end
  47. --FINE MEDICI
  48. --MECCANICO
  49. if vRP.hasPermission(user_id,"proprietariowrapskin.paycheck") then
  50. vRP.giveMoney(user_id,3000)
  51. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Meccanico Company",false,"Payday: ~g~$3000"})
  52. end
  53. if vRP.hasPermission(user_id,"meccanicowrapskin.paycheck") then
  54. vRP.giveMoney(user_id,2500)
  55. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Meccanico Company",false,"Payday: ~g~$2500"})
  56. end
  57. if vRP.hasPermission(user_id,"Carrozziere.paycheck") then
  58. vRP.giveMoney(user_id,2000)
  59. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Meccanico Company",false,"Payday: ~g~$2000"})
  60. end
  61. --FINE MECCANICO
  62. --TAXI
  63. if vRP.hasPermission(user_id,"proprietario.paycheck") then
  64. vRP.giveMoney(user_id,3000)
  65. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Taxista Company",false,"Payday: ~g~$3000"})
  66. end
  67. if vRP.hasPermission(user_id,"amministratore.paycheck") then
  68. vRP.giveMoney(user_id,2500)
  69. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Taxista Company",false,"Payday: ~g~$2500"})
  70. end
  71. if vRP.hasPermission(user_id,"taxista.paycheck") then
  72. vRP.giveMoney(user_id,2000)
  73. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Taxista Company",false,"Payday: ~g~$2000"})
  74. end
  75. --FINE TAXI
  76. --PILOTA
  77. if vRP.hasPermission(user_id,"comandante.paycheck") then
  78. vRP.giveMoney(user_id,3000)
  79. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"San Andreas Company",false,"Payday: ~g~$3000"})
  80. end
  81. if vRP.hasPermission(user_id,"primoufficiale.paycheck") then
  82. vRP.giveMoney(user_id,2500)
  83. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"San Andreas Company",false,"Payday: ~g~$2500"})
  84. end
  85. if vRP.hasPermission(user_id,"apprendistapilota.paycheck") then
  86. vRP.giveMoney(user_id,2000)
  87. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"San Andreas Company",false,"Payday: ~g~$2000"})
  88. end
  89. --FINE PILOTA
  90. --BAHAMA
  91. if vRP.hasPermission(user_id,"proprietariobahama.paycheck") then
  92. vRP.giveMoney(user_id,3000)
  93. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Bahama Company",false,"Payday: ~g~$3000"})
  94. end
  95. if vRP.hasPermission(user_id,"amministratorebahama.paycheck") then
  96. vRP.giveMoney(user_id,2500)
  97. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Bahama Company",false,"Payday: ~g~$2500"})
  98. end
  99. if vRP.hasPermission(user_id,"dipendentebahama.paycheck") then
  100. vRP.giveMoney(user_id,2000)
  101. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Bahama Company",false,"Payday: ~g~$2000"})
  102. end
  103. --FINE BAHAMA
  104. --BIKER
  105. if vRP.hasPermission(user_id,"capobiker.paycheck") then
  106. vRP.giveMoney(user_id,3000)
  107. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Biker Company",false,"Payday: ~g~$3000"})
  108. end
  109. if vRP.hasPermission(user_id,"bracciodestrobiker.paycheck") then
  110. vRP.giveMoney(user_id,2500)
  111. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Biker Company",false,"Payday: ~g~$2500"})
  112. end
  113. if vRP.hasPermission(user_id,"biker.paycheck") then
  114. vRP.giveMoney(user_id,2000)
  115. vRPclient.notifyPicture(source,{"CHAR_BANK_MAZE",1,"Biker Company",false,"Payday: ~g~$2000"})
  116. end
  117. --FINE BIKER
  118. end)
  119.  
  120. RegisterServerEvent('paycheck:bonus')
  121. AddEventHandler('paycheck:bonus', function()
  122. local user_id = vRP.getUserId(source)
  123. if vRP.hasPermission(user_id,"user.paycheck") then
  124. vRP.giveMoney(user_id,150)
  125. vRPclient.notify(source,{"Regalo per aver giocato: $150"})
  126. end
  127. if vRP.hasPermission(user_id,"user.paycheck") then
  128. vRP.getMoney(user_id,50)
  129. vRPclient.notify(source,{"Tasse: R$-50"})
  130. end
  131. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement