function hudotworz()
local kasa = getPlayerMoney(localPlayer)
local hp = getElementHealth(localPlayer)
local screenWidth, screenHeight = guiGetScreenSize()
setPlayerHudComponentVisible("money", false)
setPlayerHudComponentVisible("armour", false)
setPlayerHudComponentVisible("ammo", false)
setPlayerHudComponentVisible("weapon", false)
setPlayerHudComponentVisible("health", false)
setPlayerHudComponentVisible("clock", false)
dxDrawText(""..hp.." HP", 1750, screenHeight - 1030, screenWidth, screenHeight, tocolor (255, 0, 0, 255), 3)
dxDrawText("PLN "..kasa.."", 1600, screenHeight - 1000, screenWidth, screenHeight, tocolor (255, 255, 255, 255), 3)
end
addEventHandler ("onClientRender", root, hudotworz)
Polecam nauczy? si? element?w, argument?w i przejrze? dokumentacje lua... https://www.lua.org/manual/5.3/manual.html
Do tego dxDrawText nie b?dzie taki sam na ka?dej rozdzielczo?ci, poniewa? nie wyskalowa?e?.
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach