Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- surface.CreateFont( "police1", {
- font = "KaiserzeitGotisch",
- extended = false,
- size = 18,
- weight = 500,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- underline = false,
- italic = false,
- strikeout = false,
- symbol = false,
- rotary = false,
- shadow = false,
- additive = false,
- outline = true,
- } )
- surface.CreateFont( "police2", {
- font = "KaiserzeitGotisch",
- extended = false,
- size = 35,
- weight = 500,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- underline = false,
- italic = false,
- strikeout = false,
- symbol = false,
- rotary = false,
- shadow = false,
- additive = false,
- outline = true,
- } )
- resource.AddFile( "materials/hud/hud.png" )
- hook.Add("HUDPaint", "TutoHUD", function()
- local hud = Material("materials/hud/hud.png");
- surface.SetMaterial(hud);
- surface.SetDrawColor(255,255,255,255)
- surface.DrawTexturedRect( ScrW()/2-675, 0, 550,170);
- local health = LocalPlayer():Health()
- local armor = LocalPlayer():Armor()
- local username = LocalPlayer():GetName()
- local money = LocalPlayer():getDarkRPVar("money")
- draw.RoundedBox( 0, ScrW()/9.7, 49, math.Clamp(LocalPlayer():Health(),0, 242), 11, Color(85,215,0) )
- draw.RoundedBox( 0, ScrW()/9.7, 72, math.Clamp(LocalPlayer():Armor(),0, 198), 11, Color(0,142,255) )
- draw.SimpleText("santé: "..health, "police1" , 230, ScrH() - 722, Color (255,255,255))
- draw.SimpleText("armure: "..armor, "police1" , 210, ScrH() - 700, Color (255,255,255))
- draw.SimpleText(username, "police2", 175, ScrH() - 756, Color (255,255,255))
- draw.SimpleText(money.." €", "police1", 165, ScrH() - 672, Color (255,255,255))
- end)
- --HIDE DEFAULT HUD
- local hideHUDElements = {
- ["DarkRP_LocalPlayerHUD"] = true,
- ["DarkRP_Agenda"] = true,
- ["DarkRP_Hungermod"] = true,
- }
- hook.Add("HUDShouldDraw", "HideDefaultDarkRPHud", function(name)
- if hideHUDElements[name] then return false end
- end)
- local hide = {}
- hide[ "CHudHealth" ] = true
- hide[ "CHudBattery" ] = true
- hook.Add( "HUDShouldDraw", "HideHUD", function( name )
- if hide[ name ] then
- return false
- end
- end )
Add Comment
Please, Sign In to add comment