Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I noted when ever I use this HUD I end up having no HUD at all. It seems none of the positioning for the elements in this HUD are relative, so its all hard coded to coordinates. Unless your using the same res as the creator these elements wont actually stay in the same place. For me they where actually being drawn off the screen (I have a small laptop).
I actually ended up completely recoding this to make it relative because I want to use it in my gamemode. HUD scripting isn't my strong point but I just really like how clean it looks.
Props to the creator!
local hideHUDElements = {
["DarkRP_HUD"] = true,
["DarkRP_EntityDisplay"] = true,
["DarkRP_LocalPlayerHUD"] = true,
["DarkRP_Hungermod"] = true,
["DarkRP_ZombieInfo"] = true,
["DarkRP_Agenda"] = true,
["DarkRP_LockdownHUD"] = true,
["DarkRP_ArrestedHUD"] = false,
["CHudHealth"] = true,
["CHudBattery"] = true,
["CHudAmmo"] = true,
["CHudSuitPower"] = true,
}
local weapon = ply:GetActiveWeapon()
if IsValid(weapon) and weapon:Clip1() > -1 then
surface.SetDrawColor(theme_color)
surface.SetMaterial(ammo)
surface.DrawTexturedRect( ScrW() - 200, ScrH() - 60, 10, 10 )
draw.RoundedBox(0, ScrW() - 185, ScrH() - 60, 150, 15, Color(0,0,0,100))
draw.RoundedBox(0, ScrW() - 185, ScrH() - 60, weapon:Clip1() * 1.5 ,15, theme_color)
draw.SimpleText(weapon:GetPrintName(), "DermaLarge", ScrW() - 110, ScrH() - 80, theme_color, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
draw.SimpleText(weapon:Clip1() .. "/" .. ply:GetAmmoCount(weapon:GetPrimaryAmmoType()), "DermaLarge", ScrW() - 110, ScrH() - 30, theme_color, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
end