Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. surface.CreateFont( "police-1", {
  2. font = "Arial",
  3. extended = false,
  4. size = 13,
  5. weight = 500,
  6. blursize = 0,
  7. scanlines = 0,
  8. antialias = true,
  9. underline = false,
  10. italic = false,
  11. strikeout = false,
  12. symbol = false,
  13. rotary = false,
  14. shadow = false,
  15. additive = false,
  16. outline = false,
  17. } )
  18.  
  19. local blur = Material("pp/blurscreen")
  20. local function DrawBlur(panel, amount)
  21. local x, y = panel:LocalToScreen(0, 0)
  22. local scrW, scrH = ScrW(), ScrH()
  23. surface.SetDrawColor(255, 255, 255)
  24. surface.SetMaterial(blur)
  25. for i = 1, 3 do
  26. blur:SetFloat("$blur", (i / 3) * (amount or 6))
  27. blur:Recompute()
  28. render.UpdateScreenEffectTexture()
  29. surface.DrawTexturedRect(x * -1, y * -1, scrW, scrH)
  30. end
  31. end
  32.  
  33. local DermaPanel = vgui.Create( "DFrame" )
  34. DermaPanel:SetPos( ScrW() * 0.01, ScrH() * 0.8)
  35. DermaPanel:SetSize( 350, 150 )
  36. DermaPanel:SetTitle("")
  37. DermaPanel:SetDraggable( false )
  38. DermaPanel:MakePopup (false)
  39. DermaPanel:ShowCloseButton (false)
  40. DermaPanel.Paint = function()
  41. DrawBlur( DermaPanel, 2.5)
  42. surface.SetDrawColor( 0,0,0,155 )
  43. surface.DrawRect( 0, 0, DermaPanel:GetWide(), DermaPanel:GetTall() )
  44. surface.SetDrawColor( 0, 0, 0, 255 )
  45. surface.DrawOutlinedRect( 0, 0, DermaPanel:GetWide(), DermaPanel:GetTall() )
  46. end
  47.  
  48. local health = LocalPlayer():Health()
  49.  
  50. hook.Add("HUDPaint", "TutoHUD", function()
  51. draw.DrawText( "IdentityRP Officiel!", "TargetID", ScrW() * 0.01, ScrH() * 0.8, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER )
  52. end)
  53.  
  54.  
  55. -- Retirer le HUD de base
  56. hook.Add( "HUDShouldDraw", "DefautHUD", function( name ) if ( name == "CHudHealth" or name == "CHudBattery" ) then return false end
  57. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement