Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function Base()
- local ply = LocalPlayer()
- local HP = LocalPlayer():Health()
- local armor = LocalPlayer():Armor()
- draw.RoundedBox(0, ScrW() - 1920, ScrH () - 40, 1920, 60, Color(255,255,255,255))
- --Health
- draw.RoundedBox(0, ScrW() - 1895, ScrH () - 35, 240, 32, Color(185,185,185,250))
- draw.RoundedBox(0, ScrW() - 1855, ScrH () - 35, 201, 32, Color(140,0,0,250))
- --armor
- draw.RoundedBox(0, ScrW() - 1625, ScrH () - 35, 240, 32, Color(185,185,185,250))
- draw.RoundedBox(0, ScrW() - 1585, ScrH () - 35, 201, 32, Color(0,0,140,250))
- --money
- draw.RoundedBox(0, ScrW() - 1355, ScrH () - 35, 240, 32, Color(185,185,185,250))
- draw.RoundedBox(0, ScrW() - 1315, ScrH () - 35, 201, 32, Color(30,100,30,250))
- draw.RoundedBox(0, ScrW() - 1315, ScrH () - 35, 201-3, 32-4, Color(50,190,50,250))
- --salary
- draw.RoundedBox(0, ScrW() - 1085, ScrH () - 35, 240, 32, Color(185,185,185,250))
- draw.RoundedBox(0, ScrW() - 1045, ScrH () - 35, 201, 32, Color(30,140,60,250))
- draw.RoundedBox(0, ScrW() - 1045, ScrH () - 35, 201-3, 32-4, Color(60,255,120,250))
- -- stamina
- draw.RoundedBox(0, ScrW() - 815, ScrH () - 35, 240, 32, Color(185,185,185,250))
- draw.RoundedBox(0, ScrW() - 775, ScrH () - 35, 201, 32, Color(205,85,0,250))
- draw.RoundedBox(0, ScrW() - 775, ScrH () - 35, 201-3, 32-4, Color(255,140,60,250))
- --speedometer
- draw.RoundedBox(0, ScrW() - 545, ScrH () - 35, 240, 32, Color(185,185,185,250))
- draw.RoundedBox(0, ScrW() - 505, ScrH () - 35, 201, 32, Color(155,151,30,250))
- draw.RoundedBox(0, ScrW() - 505, ScrH () - 35, 201-3, 32-4, Color(255,251,30,250))
- --rpname
- draw.RoundedBox(0, ScrW() - 265, ScrH () - 35, 240, 32, Color(185,185,185,250))
- draw.RoundedBox(0, ScrW() - 225, ScrH () - 35, 201, 32, Color(40,100,140,250))
- draw.RoundedBox(0, ScrW() - 225, ScrH () - 35, 201-3, 32-4, Color(79,202,255,255))
- local DrawHealth = LocalPlayer():Health() or 0
- local EchoHealth = LocalPlayer():Health() or 0
- local DrawArmor = LocalPlayer():Armor() or 0
- local EchoArmor = LocalPlayer():Armor() or 0
- if DrawHealth > 100 then DrawHealth = 100 end
- if DrawHealth < 0 then DrawHealth = 0 end
- if DrawHealth != 0 then
- draw.RoundedBox(0, ScrW() - 1858 + 3, ScrH () - 37 + 2, (178) * DrawHealth / 90, 30-2, Color(255,70,70,255))
- end
- if DrawArmor > 100 then DrawArmor = 100 end
- if DrawArmor < 0 then DrawArmor = 0 end
- if DrawArmor != 0 then
- draw.RoundedBox(0, ScrW() - 1588 + 3, ScrH () - 37 + 2, (178) * DrawArmor / 90, 30-2, Color(60,90,255,255))
- end
- draw.DrawText(EchoHealth, "CloseCaption_Bold", ScrW() - 1780 + 4, ScrH () - 37 + 1, Color(255,255,255,255))
- draw.DrawText(EchoArmor, "CloseCaption_Bold", ScrW() - 1510 + 4, ScrH () - 37 + 1, Color(255,255,255,255))
- draw.DrawText(LocalPlayer():GetMoney(), "CloseCaption_Bold", ScrW() - 1250 + 4, ScrH () - 37 + 1, Color(255,255,255,255))
- draw.DrawText(LocalPlayer():GetRpName(), "CloseCaption_Bold", ScrW() - 1030 + 4, ScrH () - 37 + 1, Color(255,255,255,255))
- local heart = Material("icon16/heart.png")
- surface.SetMaterial(heart)
- surface.SetDrawColor(255,255,255)
- surface.DrawTexturedRect(26 + 10,ScrH() - 27,16,16)
- local shield = Material("icon16/shield.png")
- surface.SetMaterial(shield)
- surface.SetDrawColor(255,255,255)
- surface.DrawTexturedRect(296 + 10,ScrH() - 27,16,16)
- local tableedit1 = Material("icon16/table_edit.png")
- surface.SetMaterial(tableedit1)
- surface.SetDrawColor(255,255,255)
- surface.DrawTexturedRect(566 + 10,ScrH() - 27,16,16)
- local tableedit2 = Material("icon16/table_edit.png")
- surface.SetMaterial(tableedit2)
- surface.SetDrawColor(255,255,255)
- surface.DrawTexturedRect(1656 + 10,ScrH() - 27,16,16)
- local arrowrefresh = Material("icon16/arrow_refresh.png")
- surface.SetMaterial(arrowrefresh)
- surface.SetDrawColor(255,255,255)
- surface.DrawTexturedRect(1106 + 10,ScrH() - 27,16,16)
- local car = Material("icon16/car.png")
- surface.SetMaterial(car)
- surface.SetDrawColor(255,255,255)
- surface.DrawTexturedRect(1376 + 10,ScrH() - 27,16,16)
- local user = Material("icon16/user.png")
- surface.SetMaterial(user)
- surface.SetDrawColor(255,255,255)
- surface.DrawTexturedRect(836 + 10,ScrH() - 27,16,16)
- end
- hook.Add("HUDPaint", "Base", Base)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement