Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.79 KB | None | 0 0
  1. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  2. -- FABRICAR ARMAS
  3. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  4. local fabricarArmas = {}
  5. fabricarArmas["ARMA: Taurus"] = {function(player,choice)
  6. local user_id = vRP.getUserId({player})
  7. if user_id ~= nil then
  8.  
  9. if vRP.getInventoryWeight({user_id})+vRP.getItemWeight({"wbody|WEAPON_PISTOL"}) <= vRP.getInventoryMaxWeight({user_id}) then
  10. if vRP.tryGetInventoryItem({user_id,"pistol_parts",15,false}) then
  11. if vRP.tryPayment({user_id,30000}) then
  12. vRPclient.notify(player, {"~g~Fabricando Arma."})
  13. TriggerClientEvent('NZK:fabricarArmasHeading', player, 1)
  14. SetTimeout(5000, function() vRP.giveInventoryItem({user_id, "wbody|WEAPON_PISTOL", 1, true}) vRPclient.stopAnim(player,{false}) end)
  15. else vRPclient.notify(player, {"~r~Você não possui Dinheiro."})
  16. end
  17. else vRPclient.notify(player, {"~r~Você não possui os componentes necessarios."})
  18. end
  19. else vRPclient.notify(player, {"~r~Inventario Cheio."})
  20. end
  21.  
  22. end
  23. end,"Valor: <span class='food-item '>30.000</span><br>Total: <span class='food-item '>1x</span><br>» <span class='ilegal-item'>15</span> Componentes de PISTOLA"}
  24.  
  25. fabricarArmas["ARMA: AK-47"] = {function(player,choice)
  26. local user_id = vRP.getUserId({player})
  27. if user_id ~= nil then
  28.  
  29. if vRP.getInventoryWeight({user_id})+vRP.getItemWeight({"wbody|WEAPON_ASSAULTRIFLE"}) <= vRP.getInventoryMaxWeight({user_id}) then
  30. if vRP.tryGetInventoryItem({user_id,"ak47_parts",30,false}) then
  31. if vRP.tryPayment({user_id,160000}) then
  32. vRPclient.notify(player, {"~g~Fabricando Arma."})
  33. TriggerClientEvent('NZK:fabricarArmasHeading', player, 1)
  34. SetTimeout(5000, function() vRP.giveInventoryItem({user_id, "wbody|WEAPON_ASSAULTRIFLE", 1, true}) vRPclient.stopAnim(player,{false}) end)
  35. else vRPclient.notify(player, {"~r~Você não possui Dinheiro."})
  36. end
  37. else vRPclient.notify(player, {"~r~Você não possui os componentes necessarios."})
  38. end
  39. else vRPclient.notify(player, {"~r~Inventario Cheio."})
  40. end
  41.  
  42. end
  43. end,"Valor: <span class='food-item '>160.000</span><br>Total: <span class='food-item '>1x</span><br>» <span class='ilegal-item'>30</span> Componentes de AK-47"}
  44.  
  45. fabricarArmas["ARMA: Shotgun"] = {function(player,choice)
  46. local user_id = vRP.getUserId({player})
  47. if user_id ~= nil then
  48.  
  49. if vRP.getInventoryWeight({user_id})+vRP.getItemWeight({"wbody|WEAPON_PUMPSHOTGUN"}) <= vRP.getInventoryMaxWeight({user_id}) then
  50. if vRP.tryGetInventoryItem({user_id,"shotgun_parts",20,false}) then
  51. if vRP.tryPayment({user_id,60000}) then
  52. vRPclient.notify(player, {"~g~Fabricando Arma."})
  53. TriggerClientEvent('NZK:fabricarArmasHeading', player, 1)
  54. SetTimeout(5000, function() vRP.giveInventoryItem({user_id, "wbody|WEAPON_PUMPSHOTGUN", 1, true}) vRPclient.stopAnim(player,{false}) end)
  55. else vRPclient.notify(player, {"~r~Você não possui Dinheiro."})
  56. end
  57. else vRPclient.notify(player, {"~r~Você não possui os componentes necessarios."})
  58. end
  59. else vRPclient.notify(player, {"~r~Inventario Cheio."})
  60. end
  61.  
  62. end
  63. end,"Valor: <span class='food-item '>60.000</span><br>Total: <span class='food-item '>1x</span><br>» <span class='ilegal-item'>20</span> Componentes de SHOTGUN"}
  64.  
  65. fabricarArmas["ARMA: SMG"] = {function(player,choice)
  66. local user_id = vRP.getUserId({player})
  67. if user_id ~= nil then
  68.  
  69. if vRP.getInventoryWeight({user_id})+vRP.getItemWeight({"wbody|WEAPON_SMG"}) <= vRP.getInventoryMaxWeight({user_id}) then
  70. if vRP.tryGetInventoryItem({user_id,"smg_parts",20,false}) then
  71. if vRP.tryPayment({user_id,90000}) then
  72. vRPclient.notify(player, {"~g~Fabricando Arma."})
  73. TriggerClientEvent('NZK:fabricarArmasHeading', player, 1)
  74. SetTimeout(5000, function() vRP.giveInventoryItem({user_id, "wbody|WEAPON_SMG", 1, true}) vRPclient.stopAnim(player,{false}) end)
  75. else vRPclient.notify(player, {"~r~Você não possui Dinheiro."})
  76. end
  77. else vRPclient.notify(player, {"~r~Você não possui os componentes necessarios."})
  78. end
  79. else vRPclient.notify(player, {"~r~Inventario Cheio."})
  80. end
  81.  
  82. end
  83. end,"Valor: <span class='food-item '>90.000</span><br>Total: <span class='food-item '>1x</span><br>» <span class='ilegal-item'>20</span> Componentes de SMG"}
  84.  
  85. fabricarArmas["PARTS: Colete"] = {function(player,choice)
  86. local user_id = vRP.getUserId({player})
  87. if user_id ~= nil then
  88.  
  89. if vRP.getInventoryWeight({user_id})+vRP.getItemWeight({"body_armor"}) <= vRP.getInventoryMaxWeight({user_id}) then
  90. if vRP.tryGetInventoryItem({user_id,"colete_parts",5,false}) then
  91. if vRP.tryPayment({user_id,15000}) then
  92. vRPclient.notify(player, {"~g~Fabricando Colete."})
  93. TriggerClientEvent('NZK:fabricarArmasHeading', player, 1)
  94. SetTimeout(5000, function() vRP.giveInventoryItem({user_id, "body_armor", 1, true}) vRPclient.stopAnim(player,{false}) end)
  95. else vRPclient.notify(player, {"~r~Você não possui Dinheiro."})
  96. end
  97. else vRPclient.notify(player, {"~r~Você não possui os componentes necessarios."})
  98. end
  99. else vRPclient.notify(player, {"~r~Inventario Cheio."})
  100. end
  101.  
  102. end
  103. end,"Valor: <span class='food-item '>15.000</span><br>Total: <span class='food-item '>1x</span><br>» <span class='ilegal-item'>5</span> Componentes de COLETE"}
  104. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  105. -- FABRICAR MUNIÇÃO
  106. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  107. local fabricarMunicao = {}
  108. fabricarMunicao["MUNIÇÃO: Taurus"] = {function(player,choice)
  109. local user_id = vRP.getUserId({player})
  110. if user_id ~= nil then
  111.  
  112. if vRP.getInventoryWeight({user_id})+vRP.getItemWeight({"wammo|WEAPON_PISTOL"}) <= vRP.getInventoryMaxWeight({user_id}) then
  113. if vRP.tryGetInventoryItem({user_id,"pistol_parts",5,false}) then
  114. if vRP.tryPayment({user_id,5000}) then
  115. vRPclient.notify(player, {"~g~Fabricando Munição."})
  116. TriggerClientEvent('NZK:fabricarArmasHeading', player, 1)
  117. SetTimeout(5000, function() vRP.giveInventoryItem({user_id, "wammo|WEAPON_PISTOL", 200, true}) vRPclient.stopAnim(player,{false}) end)
  118. else vRPclient.notify(player, {"~r~Você não possui Dinheiro."})
  119. end
  120. else vRPclient.notify(player, {"~r~Você não possui os componentes necessarios."})
  121. end
  122. else vRPclient.notify(player, {"~r~Inventario Cheio."})
  123. end
  124.  
  125. end
  126. end,"Valor: <span class='food-item '>5.000</span><br>Total: <span class='food-item '>200x</span><br>» <span class='ilegal-item'>5</span> Componentes de TAURUS"}
  127.  
  128.  
  129. fabricarMunicao["MUNIÇÃO: AK-47"] = {function(player,choice)
  130. local user_id = vRP.getUserId({player})
  131. if user_id ~= nil then
  132.  
  133. if vRP.getInventoryWeight({user_id})+vRP.getItemWeight({"wammo|WEAPON_ASSAULTRIFLE"}) <= vRP.getInventoryMaxWeight({user_id}) then
  134. if vRP.tryGetInventoryItem({user_id,"ak47_parts",5,false}) then
  135. if vRP.tryPayment({user_id,5000}) then
  136. vRPclient.notify(player, {"~g~Fabricando Munição."})
  137. TriggerClientEvent('NZK:fabricarArmasHeading', player, 1)
  138. SetTimeout(5000, function() vRP.giveInventoryItem({user_id, "wammo|WEAPON_ASSAULTRIFLE", 200, true}) vRPclient.stopAnim(player,{false}) end)
  139. else vRPclient.notify(player, {"~r~Você não possui Dinheiro."})
  140. end
  141. else vRPclient.notify(player, {"~r~Você não possui os componentes necessarios."})
  142. end
  143. else vRPclient.notify(player, {"~r~Inventario Cheio."})
  144. end
  145.  
  146. end
  147. end,"Valor: <span class='food-item '>5.000</span><br>Total: <span class='food-item '>200x</span><br>» <span class='ilegal-item'>5</span> Componentes de AK-47"}
  148.  
  149. fabricarMunicao["MUNIÇÃO: Shotgun"] = {function(player,choice)
  150. local user_id = vRP.getUserId({player})
  151. if user_id ~= nil then
  152.  
  153. if vRP.getInventoryWeight({user_id})+vRP.getItemWeight({"wammo|WEAPON_PUMPSHOTGUN"}) <= vRP.getInventoryMaxWeight({user_id}) then
  154. if vRP.tryGetInventoryItem({user_id,"shotgun_parts",5,false}) then
  155. if vRP.tryPayment({user_id,5000}) then
  156. vRPclient.notify(player, {"~g~Fabricando Munição."})
  157. TriggerClientEvent('NZK:fabricarArmasHeading', player, 1)
  158. SetTimeout(5000, function() vRP.giveInventoryItem({user_id, "wammo|WEAPON_PUMPSHOTGUN", 200, true}) vRPclient.stopAnim(player,{false}) end)
  159. else vRPclient.notify(player, {"~r~Você não possui Dinheiro."})
  160. end
  161. else vRPclient.notify(player, {"~r~Você não possui os componentes necessarios."})
  162. end
  163. else vRPclient.notify(player, {"~r~Inventario Cheio."})
  164. end
  165.  
  166. end
  167. end,"Valor: <span class='food-item '>5.000</span><br>Total: <span class='food-item '>200x</span><br>» <span class='ilegal-item'>5</span> Componentes de SHOTGUN"}
  168.  
  169. fabricarMunicao["MUNIÇÃO: SMG"] = {function(player,choice)
  170. local user_id = vRP.getUserId({player})
  171. if user_id ~= nil then
  172.  
  173. if vRP.getInventoryWeight({user_id})+vRP.getItemWeight({"wammo|WEAPON_SMG"}) <= vRP.getInventoryMaxWeight({user_id}) then
  174. if vRP.tryGetInventoryItem({user_id,"smg_parts",5,false}) then
  175. if vRP.tryPayment({user_id,5000}) then
  176. vRPclient.notify(player, {"~g~Fabricando Munição."})
  177. TriggerClientEvent('NZK:fabricarArmasHeading', player, 1)
  178. SetTimeout(5000, function() vRP.giveInventoryItem({user_id, "wammo|WEAPON_SMG", 200, true}) vRPclient.stopAnim(player,{false}) end)
  179. else vRPclient.notify(player, {"~r~Você não possui Dinheiro."})
  180. end
  181. else vRPclient.notify(player, {"~r~Você não possui os componentes necessarios."})
  182. end
  183. else vRPclient.notify(player, {"~r~Inventario Cheio."})
  184. end
  185.  
  186. end
  187. end,"Valor: <span class='food-item '>5.000</span><br>Total: <span class='food-item '>200x</span><br>» <span class='ilegal-item'>5</span> Componentes de SMG"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement