Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. local hideHUDElements = {
  2. ["DarkRP_HUD"] = true,
  3. ["DarkRP_EntityDisply"] = false,
  4. ["DarkRP_ZombieInfo"] = false,
  5. ["DarkRP_LocalPlayerHUD"] = false,
  6. ["DarkRP_Hungermod"] = true,
  7. ["DarkRP_Agenda"] = false,
  8. }
  9. hook.Add("HUDPaint" , "DrawMyHud" , function()
  10.  
  11. draw.RoundedBox(4,4,920,300,133,Color(40,40,40,255))--Tło
  12.  
  13. if Entity( 1 ):Armor() > 100 then
  14. draw.RoundedBox(5,14,951,280,20,Color(80,80,80))--arrmor tło
  15. draw.RoundedBox(5,14,951,100,20,Color(0,0,255))
  16. else
  17. draw.RoundedBox(5,14,951,280,20,Color(80,80,80))--arrmor tło
  18. draw.RoundedBox(5,14,951,LocalPlayer():Armor() * 2.80,20,Color(0,0,255))--arrmor
  19. end
  20. if Entity( 1 ):Health() > 100 then
  21. draw.RoundedBox(5,14,928,280,20,Color(80,80,80))--HAPPE tło
  22. draw.RoundedBox(5,14,928,100,20,Color(255,0,0))--HAPPE
  23. else
  24. draw.RoundedBox(5,14,928,280,20,Color(80,80,80))--HAPPE tło
  25. draw.RoundedBox(5,14,928,LocalPlayer():Health() * 2.80,20,Color(255,0,0))--HAPPE
  26. end
  27.  
  28. draw.DrawText(( Entity( 1 ):Nick() ), "TargetID",153,910,Color(255,255,255, 255 ),TEXT_ALIGN_CENTER ) --Nik
  29.  
  30. draw.DrawText(Entity( 1 ):getDarkRPVar("money").."$", "TargetID",135,980,Color(0,255,0, 255 ),TEXT_ALIGN_CENTER ) --Nik
  31.  
  32. draw.DrawText(team.GetName(Entity(1):Team()),"TargetID",135,1000, Color(0,0,255, 255 ), TEXT_ALIGN_CENTER ) --Praca
  33.  
  34. draw.DrawText("Wypłata ".."$"..Entity( 1 ):getDarkRPVar( "salary" ),"TargetID",135,1020,Color(255,209,128),TEXT_ALIGN_CENTER) --salary
  35.  
  36. draw.DrawText(LocalPlayer():Health().."%","TargetID",135,928,Color(255,255,255,255),TEXT_ALIGN_LEFT)--HP NAPIS
  37.  
  38. draw.DrawText(LocalPlayer():Armor().."%","TargetID",135,952,Color(255,255,255,255),TEXT_ALIGN_LEFT)--Armorr NAPIS
  39.  
  40. draw.RoundedBox(5,193,980,100,15,Color(80,80,80))--ZARCIE tlo
  41.  
  42. draw.RoundedBox(5,193,980,LocalPlayer():getDarkRPVar("energy"),15,Color(179,147,92))--ZARCIE
  43.  
  44. draw.DrawText(LocalPlayer():getDarkRPVar("energy").."%","TargetID",135,940,Color(255,255,255,255),TEXT_ALIGN_LEFT)--zarcie NAPIS
  45.  
  46. local hunger = Entity( 1 ):getDarkRPVar("energy")
  47. local hp = LocalPlayer():Health()
  48. local ply = LocalPlayer()
  49. --Avatar Gracza
  50. local Avatar = vgui.Create( "AvatarImage", Panel )
  51. Avatar:SetSize( 64, 64 )
  52. Avatar:SetPos(10 , 980 )
  53. Avatar:SetPlayer( LocalPlayer(),64)
  54. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement