Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Désactiver les autres HUD et parties client
- local hide = {
- CHudHealth = true,
- CHudBattery = true,
- DarkRP_HUD = true,
- DarkRP_Hungermod = true,
- CHudAmmo = true,
- CHudSecondaryAmmo = true
- }
- hook.Add("HUDShouldDraw", "FriteHUDhook", function(name)
- if (hide[name]) then return false end
- end)
- hook.Add( "HUDPaint", "FriteHUD_DarkRP", function()
- local ply = LocalPlayer()
- -- Vie
- draw.RoundedBox(4, 5 + 73, ScrH() - 106, 303, 17, Color(0, 0, 0, 255))
- draw.RoundedBox(4, 5 + 75, ScrH() - 105, math.Clamp(ply:Health() * 3, 0, 300), 15, Color(255, 0, 0,200))
- -- Faim
- draw.RoundedBox(4, 5 + 73, ScrH() - 76, 303, 17, Color(0, 0, 0, 255))
- draw.RoundedBox(4, 5 + 75, ScrH() - 75, math.Clamp(ply:getDarkRPVar("Energy") * 3, 0, 300), 15, Color(0, 255, 0))
- draw.SimpleTextOutlined( "Vous êtes affamé !", "DermaLarge", 5 + 75, ScrH() - 75, Color( 255, 255, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP, 1, Color( 25, 25, 25, 255 ) )
- -- Armure
- if ply:Armor() > 0 then
- draw.RoundedBox(4, 5 + 73, ScrH() - 46, 303, 17, Color(0, 0, 0, 255))
- draw.RoundedBox(4, 5 + 75, ScrH() - 45, math.Clamp(ply:Armor() * 3, 0, 300), 15, Color(68, 140, 255, 255))
- else
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement