Advertisement
F0CUS0

F0CUS0

Jan 13th, 2015
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 KB | None | 0 0
  1. local function Base()
  2.  
  3.  
  4.  
  5. local ply = LocalPlayer()
  6. local HP = LocalPlayer():Health()
  7. local armor = LocalPlayer():Armor()
  8.  
  9.  
  10. draw.RoundedBox(0, ScrW() - 1920, ScrH () - 40, 1920, 60, Color(255,255,255,255))
  11.  
  12.  
  13. --Health
  14. draw.RoundedBox(0, ScrW() - 1895, ScrH () - 35, 240, 32, Color(185,185,185,250))
  15.  
  16. draw.RoundedBox(0, ScrW() - 1855, ScrH () - 35, 201, 32, Color(140,0,0,250))
  17.  
  18.  
  19. --armor
  20. draw.RoundedBox(0, ScrW() - 1625, ScrH () - 35, 240, 32, Color(185,185,185,250))
  21.  
  22. draw.RoundedBox(0, ScrW() - 1585, ScrH () - 35, 201, 32, Color(0,0,140,250))
  23.  
  24. --money
  25.  
  26. draw.RoundedBox(0, ScrW() - 1355, ScrH () - 35, 240, 32, Color(185,185,185,250))
  27. draw.RoundedBox(0, ScrW() - 1315, ScrH () - 35, 201, 32, Color(30,100,30,250))
  28.  
  29. draw.RoundedBox(0, ScrW() - 1315, ScrH () - 35, 201-3, 32-4, Color(50,190,50,250))
  30.  
  31.  
  32. --salary
  33. draw.RoundedBox(0, ScrW() - 1085, ScrH () - 35, 240, 32, Color(185,185,185,250))
  34. draw.RoundedBox(0, ScrW() - 1045, ScrH () - 35, 201, 32, Color(30,140,60,250))
  35.  
  36.  
  37. draw.RoundedBox(0, ScrW() - 1045, ScrH () - 35, 201-3, 32-4, Color(60,255,120,250))
  38.  
  39.  
  40.  
  41. -- stamina
  42.  
  43. draw.RoundedBox(0, ScrW() - 815, ScrH () - 35, 240, 32, Color(185,185,185,250))
  44.  
  45. draw.RoundedBox(0, ScrW() - 775, ScrH () - 35, 201, 32, Color(205,85,0,250))
  46.  
  47. draw.RoundedBox(0, ScrW() - 775, ScrH () - 35, 201-3, 32-4, Color(255,140,60,250))
  48.  
  49. --speedometer
  50.  
  51. draw.RoundedBox(0, ScrW() - 545, ScrH () - 35, 240, 32, Color(185,185,185,250))
  52.  
  53. draw.RoundedBox(0, ScrW() - 505, ScrH () - 35, 201, 32, Color(155,151,30,250))
  54.  
  55. draw.RoundedBox(0, ScrW() - 505, ScrH () - 35, 201-3, 32-4, Color(255,251,30,250))
  56.  
  57.  
  58. --rpname
  59.  
  60. draw.RoundedBox(0, ScrW() - 265, ScrH () - 35, 240, 32, Color(185,185,185,250))
  61.  
  62. draw.RoundedBox(0, ScrW() - 225, ScrH () - 35, 201, 32, Color(40,100,140,250))
  63.  
  64. draw.RoundedBox(0, ScrW() - 225, ScrH () - 35, 201-3, 32-4, Color(79,202,255,255))
  65.  
  66.  
  67. local DrawHealth = LocalPlayer():Health() or 0
  68. local EchoHealth = LocalPlayer():Health() or 0
  69.  
  70. local DrawArmor = LocalPlayer():Armor() or 0
  71. local EchoArmor = LocalPlayer():Armor() or 0
  72.  
  73. if DrawHealth > 100 then DrawHealth = 100 end
  74. if DrawHealth < 0 then DrawHealth = 0 end
  75.  
  76. if DrawHealth != 0 then
  77. draw.RoundedBox(0, ScrW() - 1858 + 3, ScrH () - 37 + 2, (178) * DrawHealth / 90, 30-2, Color(255,70,70,255))
  78. end
  79.  
  80. if DrawArmor > 100 then DrawArmor = 100 end
  81. if DrawArmor < 0 then DrawArmor = 0 end
  82.  
  83. if DrawArmor != 0 then
  84. draw.RoundedBox(0, ScrW() - 1588 + 3, ScrH () - 37 + 2, (178) * DrawArmor / 90, 30-2, Color(60,90,255,255))
  85. end
  86.  
  87. draw.DrawText(EchoHealth, "CloseCaption_Bold", ScrW() - 1780 + 4, ScrH () - 37 + 1, Color(255,255,255,255))
  88. draw.DrawText(EchoArmor, "CloseCaption_Bold", ScrW() - 1510 + 4, ScrH () - 37 + 1, Color(255,255,255,255))
  89.  
  90.  
  91. draw.DrawText(LocalPlayer():GetMoney(), "CloseCaption_Bold", ScrW() - 1250 + 4, ScrH () - 37 + 1, Color(255,255,255,255))
  92. draw.DrawText(LocalPlayer():GetRpName(), "CloseCaption_Bold", ScrW() - 1030 + 4, ScrH () - 37 + 1, Color(255,255,255,255))
  93.  
  94.  
  95.  
  96.  
  97. local heart = Material("icon16/heart.png")
  98. surface.SetMaterial(heart)
  99. surface.SetDrawColor(255,255,255)
  100. surface.DrawTexturedRect(26 + 10,ScrH() - 27,16,16)
  101.  
  102. local shield = Material("icon16/shield.png")
  103. surface.SetMaterial(shield)
  104. surface.SetDrawColor(255,255,255)
  105. surface.DrawTexturedRect(296 + 10,ScrH() - 27,16,16)
  106.  
  107. local tableedit1 = Material("icon16/table_edit.png")
  108. surface.SetMaterial(tableedit1)
  109. surface.SetDrawColor(255,255,255)
  110. surface.DrawTexturedRect(566 + 10,ScrH() - 27,16,16)
  111.  
  112. local tableedit2 = Material("icon16/table_edit.png")
  113. surface.SetMaterial(tableedit2)
  114. surface.SetDrawColor(255,255,255)
  115. surface.DrawTexturedRect(1656 + 10,ScrH() - 27,16,16)
  116.  
  117. local arrowrefresh = Material("icon16/arrow_refresh.png")
  118. surface.SetMaterial(arrowrefresh)
  119. surface.SetDrawColor(255,255,255)
  120. surface.DrawTexturedRect(1106 + 10,ScrH() - 27,16,16)
  121.  
  122. local car = Material("icon16/car.png")
  123. surface.SetMaterial(car)
  124. surface.SetDrawColor(255,255,255)
  125. surface.DrawTexturedRect(1376 + 10,ScrH() - 27,16,16)
  126.  
  127. local user = Material("icon16/user.png")
  128. surface.SetMaterial(user)
  129. surface.SetDrawColor(255,255,255)
  130. surface.DrawTexturedRect(836 + 10,ScrH() - 27,16,16)
  131.  
  132. end
  133. hook.Add("HUDPaint", "Base", Base)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement