Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- surface.CreateFont( "police-1", {
- font = "Arial",
- extended = false,
- size = 13,
- weight = 500,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- underline = false,
- italic = false,
- strikeout = false,
- symbol = false,
- rotary = false,
- shadow = false,
- additive = false,
- outline = false,
- } )
- local blur = Material("pp/blurscreen")
- local function DrawBlur(panel, amount)
- local x, y = panel:LocalToScreen(0, 0)
- local scrW, scrH = ScrW(), ScrH()
- surface.SetDrawColor(255, 255, 255)
- surface.SetMaterial(blur)
- for i = 1, 3 do
- blur:SetFloat("$blur", (i / 3) * (amount or 6))
- blur:Recompute()
- render.UpdateScreenEffectTexture()
- surface.DrawTexturedRect(x * -1, y * -1, scrW, scrH)
- end
- end
- local DermaPanel = vgui.Create( "DFrame" )
- DermaPanel:SetPos( ScrW() * 0.01, ScrH() * 0.8)
- DermaPanel:SetSize( 350, 150 )
- DermaPanel:SetTitle("")
- DermaPanel:SetDraggable( false )
- DermaPanel:MakePopup (false)
- DermaPanel:ShowCloseButton (false)
- DermaPanel.Paint = function()
- DrawBlur( DermaPanel, 2.5)
- surface.SetDrawColor( 0,0,0,155 )
- surface.DrawRect( 0, 0, DermaPanel:GetWide(), DermaPanel:GetTall() )
- surface.SetDrawColor( 0, 0, 0, 255 )
- surface.DrawOutlinedRect( 0, 0, DermaPanel:GetWide(), DermaPanel:GetTall() )
- end
- local health = LocalPlayer():Health()
- hook.Add("HUDPaint", "TutoHUD", function()
- draw.DrawText( "IdentityRP Officiel!", "TargetID", ScrW() * 0.01, ScrH() * 0.8, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER )
- end)
- -- Retirer le HUD de base
- hook.Add( "HUDShouldDraw", "DefautHUD", function( name ) if ( name == "CHudHealth" or name == "CHudBattery" ) then return false end
- end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement