Guest User

Untitled

a guest
Nov 16th, 2019
104
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local fonte = dxCreateFont("font/fonte.ttf", 10)
  2. local font = dxCreateFont("font/font.ttf", 10)
  3.  
  4. local level
  5. local Mao
  6. local realName
  7. local bank
  8.  
  9. addEventHandler("onClientRender", root,
  10. function()
  11. Mao = getPlayerMoney ( localPlayer ) or 0
  12. realName = getPlayerName(getLocalPlayer())
  13. bank = getElementData(localPlayer, "Bank:Caixa") or "0"
  14. end
  15. )
  16.  
  17. local screenW, screenH = guiGetScreenSize()
  18.  
  19. addEventHandler("onClientRender", root,
  20. function()
  21. dxDrawImage(1062, 55, 294, 169, ":REASONHUD/fotos/degrad.png", 0, 0, 0, tocolor(254, 254, 254, 194), false)
  22. --dxDrawRectangle(1072, 65, 274, 149, tocolor(173, 249, 250, 254), false)
  23. dxDrawRectangle(1072, 65, 274, 149, tocolor(100, 149, 237, 254), false)
  24. --dxDrawText("REASON ~ ROLEPLAY ~ V:0.10", 1128, 65, 1271, 88, tocolor(5, 0, 235, 254), 1.0, fonte, "left", "top", false, false, false, false, false)
  25. dxDrawText("REASON ~ ROLEPLAY ~ V:0.10", 1120, 65, 1271, 88, tocolor(5, 0, 235, 254), 1.2, font, "left", "top", false, false, false, false, false)
  26. dxDrawImage(1067, 83, 75, 49, ":REASONHUD/fotos/name.png", 0, 0, 0, tocolor(17, 23, 254, 254), false)
  27. dxDrawText(realName, 1147, 93, 1252, 121, tocolor(0, 58, 249, 254), 1.50, fonte, "left", "top", false, false, false, false, false)
  28. dxDrawImage(1072, 115, 75, 70, ":REASONHUD/fotos/dinheiroe.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
  29. dxDrawImage(1072, 157, 71, 67, ":REASONHUD/fotos/IconeCartao.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
  30. dxDrawText(Mao, 1184, 137, 1328, 185, tocolor(152, 251, 152, 255), 2.00, "default", "left", "top", false, false, false, false, false)
  31. dxDrawText(bank, 1184, 179, 1311, 244, tocolor(152, 251, 152, 255), 2.00, "default", "left", "top", false, false, false, false, false)
  32. dxDrawText("R$:", 1147, 137, 1265, 196, tocolor(152, 251, 152, 255), 2.00, "default", "left", "top", false, false, false, false, false)
  33. dxDrawText("R$:", screenW * 0.8397, screenH * 0.2331, screenW * 0.9480, screenH * 0.3359, tocolor(152, 251, 152, 255), 2.00, "default", "left", "top", false, false, false, false, false)
  34. end
  35. )
  36.  
  37. function convertNumber ( number )
  38. local formatted = number
  39. while true do
  40. formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1.%2')
  41. if ( k==0 ) then
  42. break
  43. end
  44. end
  45. return formatted
  46. end
  47.  
  48. --function toggleRadar ( )
  49. --- if isVisible then
  50. -- addEventHandler("onClientRender", root, FastzinSCR_Hud )
  51. --else
  52. --removeEventHandler("onClientRender", root, FastzinSCR_Hud )
  53. --end
  54. --isVisible = not isVisible
  55. --end
  56. --bindKey ("F11", "down", toggleRadar )
  57.  
  58. local hudTable = {
  59. "ammo",
  60. "armour",
  61. "clock",
  62. "health",
  63. "money",
  64. "weapon",
  65. "wanted",
  66. "area_name",
  67. "vehicle_name",
  68. "breath",
  69. "clock"
  70. }
  71.  
  72. addEventHandler("onClientResourceStart", resourceRoot,
  73. function()
  74. for id, hudComponents in ipairs(hudTable) do
  75. setPlayerHudComponentVisible(hudComponents, false)
  76. end
  77. end
  78. )
  79.  
  80. addEventHandler("onClientResourceStop", resourceRoot,
  81. function()
  82. for id, hudComponents in ipairs(hudTable) do
  83. setPlayerHudComponentVisible(hudComponents, true)
  84. end
  85. end
  86. )
  87.  
  88.  
  89. --removedor hud
RAW Paste Data