Hallo Community.
Ich hab meinen HUD refresh auf einmal lässt er sich nicht mehr zeigen obwohl er vorhin noch gang ich habe auch keine Errors raus bekommen keine ahnung hoffentlich könnt ihr mir weiter helfen!
Spoiler anzeigen
Lua
showPlayerHudComponent("all",false)
showPlayerHudComponent("radar",true)
showPlayerHudComponent("crosshair",true)
addEventHandler("onClientHUDRender", root,
function()
local sx,sy = guiGetScreenSize()
local px,py = 1600,900
local x,y = (sx/py) , (sy/py)
local lp = getLocalPlayer(lp)
local stunde,minute = getTime()
local leben = getElementHealth(lp)
local schutzweste = getPedArmor(lp)
local money = getPlayerMoney(lp)
local ammo = getPedTotalAmmo(lp)
local magazin = getPedAmmoInClip(lp)
local waffe = getPedWeapon(lp)
local wandets = getPlayerWantedLevel(lp)
dxDrawRectangle(x*1300, y*0, x*300, y*234, tocolor(41, 36, 38, 168), false)
dxDrawImage(x*1192, y*0, x*108, y*95, tostring("images/waffen/"..waffe..".png"), 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(x*1310, y*10, x*22, y*19, "images/time.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(x*1310, y*65, x*26, y*20, "images/armour.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(x*1310, y*119, x*26, y*21, "images/health.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(x*1308, y*194, x*28, y*26, "images/stern.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawText(ammo.."/"..magazin, x*1192, y*101, x*1300, y*129, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false)
dxDrawText(stunde..":"..minute, x*1339, y*6, x*1593, y*29, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false)
dxDrawText(math.ceil(getElementHealth(lp)).."%", x*1439, y*64, x*1476, y*85, tocolor(255, 255, 255, 255), 1.00, "sans", "left", "top", false, false, false, false, false)
dxDrawText(math.ceil(getPedArmor(lp)).."%", x*1439, y*122, x*1476, y*143, tocolor(255, 255, 255, 255), 1.00, "sans", "left", "top", false, false, false, false, false)
dxDrawText("$"..money, x*1310, y*153, x*1599, y*184, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false)
dxDrawText(wandets, x*1346, y*194, x*1372, y*220, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false)
dxDrawRectangle(x*1346, y*60, x*247/100*schutzweste, y*25, tocolor(22, 56, 230, 255), false)
dxDrawRectangle(x*1346, y*60, x*247, y*25, tocolor(19, 17, 17,220), false)
dxDrawRectangle(x*1346, y*118, x*247/100*leben, y*25, tocolor(254, 4, 4, 255), false)
dxDrawRectangle(x*1346, y*118, x*247, y*25, tocolor(254, 4, 4, 255), false)
end
)
Alles anzeigen