Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- surface.CreateFont( "font_argent", {
- font = "impact",
- size = 30,
- weight = 1,
- blursize = 0,
- antialias = true,
- } )
- hook.Add("HUDPaint", "RedHud", function()
- local heal = LocalPlayer():Health()
- local armor = LocalPlayer():Armor()
- local money = LocalPlayer():getDarkRPVar("money")
- local food = LocalPlayer():getDarkRPVar("energy") -- En dév
- -- Vie
- if heal > 100 then heal = 100 end -- Dépassement
- draw.RoundedBox(0, ScrH()/50, ScrW()/1.90, 300+4 , 28,Color(40,40,40)) -- Fond gris
- draw.RoundedBox(0,ScrH()/45,ScrW()/1.895,heal * 3, 24,Color(255,30,2))
- -- Armure
- if armor > 100 then armor = 100 end -- Dépassement
- draw.RoundedBox(0, ScrH()/50, ScrW()/1.980, 300+4 , 28,Color(40,40,40)) -- Fond gris
- draw.RoundedBox(0,ScrH()/45,ScrW()/1.975, armor * 3, 24,Color(0, 64, 255))
- -- Faim
- -- Argent
- draw.SimpleText("Argent: "..money.." $", "font_argent", ScrW()/1.15, ScrH()/1.04, Color(255,40,40)) -- Texte argent :
- end)
- -- Retirer le HUD de base
- local hideHUDElements = {
- ["DarkRP_HUD"] = true,
- ["DarkRP_EntityDisplay"] = true,
- ["DarkRP_ZombieInfo"] = false,
- ["DarkRP_LocalPlayerHUD"] = true,
- ["DarkRP_Hungermod"] = true,
- ["DarkRP_Agenda"] = true,
- ["CHudHealth"] = true,
- ["CHudBattery"] = true,
- ["CHudAmmo"] = true,
- ["CHudSecondaryAmmo"] = true
- }
- hook.Add("HUDShouldDraw", "HideDefaultElements", function(name)
- if hideHUDElements[name] then return false end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement