wadsonlucas

Untitled

Jun 5th, 2018
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.20 KB | None | 0 0
  1. -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  2. -- ATIVAR/DESATIVAR MISSÕES DO VRP_BASIC_MISSION
  3. -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  4. local revive_seq = {
  5. {"amb@medic@standing@kneel@enter","enter",1},
  6. {"amb@medic@standing@kneel@idle_a","idle_a",1},
  7. {"amb@medic@standing@kneel@exit","exit",1}
  8. }
  9.  
  10. choice_loot = {function(player,choice)
  11. local user_id = vRP.getUserId(player)
  12. if user_id ~= nil then
  13. local nplayer = vRPclient.getNearestPlayer(player,10)
  14. local nuser_id = vRP.getUserId(nplayer)
  15. if nuser_id ~= nil then
  16. local in_coma = vRPclient.isInComa(nplayer)
  17. if in_coma then
  18. vRPclient._playAnim(player,false,revive_seq,false) -- anim
  19. Citizen.Wait(15000)
  20. vRPclient._stopAnim(player,true)
  21. vRPclient._stopAnim(player,false)
  22. local ndata = vRP.getUserDataTable(nuser_id)
  23. if ndata ~= nil then
  24. if ndata.inventory ~= nil then
  25. vRP.clearInventory(nuser_id)
  26. for k,v in pairs(ndata.inventory) do
  27. vRP.giveInventoryItem(user_id,k,v.amount,true)
  28. end
  29. end
  30. end
  31. local nmoney = vRP.getMoney(nuser_id)
  32. if vRP.tryPayment(nuser_id,nmoney) then
  33. vRP.giveMoney(user_id,nmoney)
  34. end
  35. vRPclient.stopAnim(player,false)
  36. else
  37. TriggerClientEvent("pNotify:SendNotification", player, {
  38. text = "Jogador não está em coma",
  39. type = "alert",progressBar = false,timeout = 3000,layout = "zezao",queue = "left",
  40. animation = {open = "gta_effects_fade_in", close = "gta_effects_fade_out"}
  41. })
  42. end
  43. else
  44. TriggerClientEvent("pNotify:SendNotification", player, {
  45. text = "Nenhum jogador próximo",
  46. type = "alert",progressBar = false,timeout = 3000,layout = "zezao",queue = "left",
  47. animation = {open = "gta_effects_fade_in", close = "gta_effects_fade_out"}
  48. })
  49. end
  50. end
  51. end}
  52.  
  53. ch_hack = {function(player,choice)
  54. local user_id = vRP.getUserId(player)
  55. if user_id ~= nil then
  56. local nplayer = vRPclient.getNearestPlayer(player,25)
  57. if nplayer ~= nil then
  58. local nuser_id = vRP.getUserId(nplayer)
  59. if nuser_id ~= nil then
  60. local nbank = vRP.getBankMoney(nuser_id)
  61. local amount = math.floor(nbank*0.01)
  62. local nvalue = nbank - amount
  63. if math.random(1,100) == 7 then
  64. vRP.setBankMoney(nuser_id,nvalue)
  65. TriggerClientEvent("pNotify:SendNotification", nplayer, {
  66. text = "Alguem hackeou " .. amount .. " reais da sua conta bancária",
  67. type = "info",progressBar = false,timeout = 3000,layout = "zezao",queue = "left",
  68. animation = {open = "gta_effects_fade_in", close = "gta_effects_fade_out"}
  69. })
  70. vRP.giveInventoryItem(user_id,"Dinheiro Sujo",amount,true)
  71. else
  72. TriggerClientEvent("pNotify:SendNotification", nplayer, {
  73. text = "Estão tentando te hackear",
  74. type = "info",progressBar = false,timeout = 3000,layout = "zezao",queue = "left",
  75. animation = {open = "gta_effects_fade_in", close = "gta_effects_fade_out"}
  76. })
  77. TriggerClientEvent("pNotify:SendNotification", player, {
  78. text = "Você falhou na tentativa",
  79. type = "info",progressBar = false,timeout = 3000,layout = "zezao",queue = "left",
  80. animation = {open = "gta_effects_fade_in", close = "gta_effects_fade_out"}
  81. })
  82. Citizen.Wait(60000)
  83. end
  84. else
  85. TriggerClientEvent("pNotify:SendNotification", player, {
  86. text = "Nenhum jogador próximo",
  87. type = "alert",progressBar = false,timeout = 3000,layout = "zezao",queue = "left",
  88. animation = {open = "gta_effects_fade_in", close = "gta_effects_fade_out"}
  89. })
  90. end
  91. else
  92. TriggerClientEvent("pNotify:SendNotification", player, {
  93. text = "Nenhum jogador próximo",
  94. type = "alert",progressBar = false,timeout = 3000,layout = "zezao",queue = "left",
  95. animation = {open = "gta_effects_fade_in", close = "gta_effects_fade_out"}
  96. })
  97. end
  98. end
  99. end}
  100.  
  101. ch_mug = {function(player,choice)
  102. local user_id = vRP.getUserId(player)
  103. if user_id ~= nil then
  104. local nplayer = vRPclient.getNearestPlayer(player,10)
  105. if nplayer ~= nil then
  106. local nuser_id = vRP.getUserId(nplayer)
  107. if nuser_id ~= nil then
  108. local nmoney = vRP.getMoney(nuser_id)
  109. local amount = nmoney
  110. if math.random(1,100) == 7 then
  111. if vRP.tryPayment(nuser_id,amount) then
  112. TriggerClientEvent("pNotify:SendNotification", nplayer, {
  113. text = "Você roubou " .. amount .. " reais",
  114. type = "success",progressBar = false,timeout = 3000,layout = "zezao",queue = "left",
  115. animation = {open = "gta_effects_fade_in", close = "gta_effects_fade_out"}
  116. })
  117. vRP.giveInventoryItem(user_id,"Dinheiro Sujo",amount,true)
  118. else
  119. TriggerClientEvent("pNotify:SendNotification", player, {
  120. text = "Este jogador não possui dinheiro",
  121. type = "info",progressBar = false,timeout = 3000,layout = "zezao",queue = "left",
  122. animation = {open = "gta_effects_fade_in", close = "gta_effects_fade_out"}
  123. })
  124. end
  125. else
  126. TriggerClientEvent("pNotify:SendNotification", nplayer, {
  127. text = "Estão tentando roubar sua carteira",
  128. type = "info",progressBar = false,timeout = 3000,layout = "zezao",queue = "left",
  129. animation = {open = "gta_effects_fade_in", close = "gta_effects_fade_out"}
  130. })
  131. TriggerClientEvent("pNotify:SendNotification", player, {
  132. text = "Você falhou na tentativa",
  133. type = "info",progressBar = false,timeout = 3000,layout = "zezao",queue = "left",
  134. animation = {open = "gta_effects_fade_in", close = "gta_effects_fade_out"}
  135. })
  136. Citizen.Wait(60000)
  137. end
  138. else
  139. TriggerClientEvent("pNotify:SendNotification", player, {
  140. text = "Nenhum jogador próximo",
  141. type = "alert",progressBar = false,timeout = 3000,layout = "zezao",queue = "left",
  142. animation = {open = "gta_effects_fade_in", close = "gta_effects_fade_out"}
  143. })
  144. end
  145. else
  146. TriggerClientEvent("pNotify:SendNotification", player, {
  147. text = "Nenhum jogador próximo",
  148. type = "alert",progressBar = false,timeout = 3000,layout = "zezao",queue = "left",
  149. animation = {open = "gta_effects_fade_in", close = "gta_effects_fade_out"}
  150. })
  151. end
  152. end
  153. end}
  154.  
  155. ch_lockpickveh = {function(player,choice)
  156. BMclient.lockpickVehicle(player,20,true) -- 20s é o tempo
  157. end}
Advertisement
Add Comment
Please, Sign In to add comment