Installer Steam
log på
|
sprog
简体中文 (forenklet kinesisk)
繁體中文 (traditionelt kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tjekkisk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spanien)
Español – Latinoamérica (spansk – Latinamerika)
Ελληνικά (græsk)
Français (fransk)
Italiano (italiensk)
Bahasa indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (hollandsk)
Norsk
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasilien)
Română (rumænsk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (Vietnamesisk)
Українська (ukrainsk)
Rapporter et oversættelsesproblem
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
https://youtu.be/4XlUWywJgOY