Advertisement
Guest User

Untitled

a guest
May 25th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. local ch_maschere_1_salva = {function(player,choice)
  2. local user_id = vRP.getUserId({player})
  3. if user_id ~= nil then
  4. BMclient.SalvaCurrentMaschera(player, {1})
  5. vRPclient.notify(player,{"~g~Slot 1 salvato"})
  6. end
  7. end}
  8.  
  9. local ch_maschere_2_salva = {function(player,choice)
  10. local user_id = vRP.getUserId({player})
  11. if user_id ~= nil then
  12. BMclient.SalvaCurrentMaschera(player, {2})
  13. vRPclient.notify(player,{"~g~Slot 2 salvato"})
  14. end
  15. end}
  16.  
  17. local ch_maschere_3_salva = {function(player,choice)
  18. local user_id = vRP.getUserId({player})
  19. if user_id ~= nil then
  20. BMclient.SalvaCurrentMaschera(player, {3})
  21. vRPclient.notify(player,{"~g~Slot 3 salvato"})
  22. end
  23. end}
  24. -----------------------------------------------------------------------
  25. local ch_maschere_1_equip = {function(player,choice)
  26. local user_id = vRP.getUserId({player})
  27. if user_id ~= nil then
  28. BMclient.updatemascheraslotclient(player, {1})
  29. vRPclient.notify(player,{"~b~Slot 1 equipaggiato"})
  30. end
  31. end}
  32.  
  33. local ch_maschere_2_equip = {function(player,choice)
  34. local user_id = vRP.getUserId({player})
  35. if user_id ~= nil then
  36. BMclient.updatemascheraslotclient(player, {2})
  37. vRPclient.notify(player,{"~b~Slot 2 equipaggiato"})
  38. end
  39. end}
  40.  
  41. local ch_maschere_3_equip = {function(player,choice)
  42. local user_id = vRP.getUserId({player})
  43. if user_id ~= nil then
  44. BMclient.updatemascheraslotclient(player, {3})
  45. vRPclient.notify(player,{"~b~Slot 3 equipaggiato"})
  46. end
  47. end}
  48.  
  49. local choice_maschere = {function(player,choice)
  50. local user_id = vRP.getUserId({player})
  51. local menu = {}
  52. menu.name = "Maschere"
  53. menu.css = {top = "75px", header_color = "rgba(0,0,255,0.75)"}
  54. menu.onclose = function(player) vRP.openMainMenu({player}) end -- nest menu
  55.  
  56.  
  57. if vRP.hasPermission({user_id,"player.loot"}) then
  58. menu["Salva slot.1"] = ch_maschere_1_salva -- Send a nearby handcuffed player to jail with prompt for choice and user_list
  59. end
  60.  
  61. if vRP.hasPermission({user_id,"player.loot"}) then
  62. menu["Salva slot.2"] = ch_maschere_2_salva -- Send a nearby handcuffed player to jail with prompt for choice and user_list
  63. end
  64.  
  65. if vRP.hasPermission({user_id,"player.loot"}) then
  66. menu["Salva slot.3"] = ch_maschere_3_salva -- Send a nearby handcuffed player to jail with prompt for choice and user_list
  67. end
  68.  
  69. if vRP.hasPermission({user_id,"player.loot"}) then
  70. menu["Equip slot.1"] = ch_maschere_1_equip -- Send a nearby handcuffed player to jail with prompt for choice and user_lis
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement