local sx,sy=guiGetScreenSize()
local font = dxCreateFont("font/font.ttf", 20)
local nick = getPlayerName(localPlayer)
local id = getElementData(localPlayer, "id")
function hud()
--if not getElementData(localPlayer,"player:uid") then return end
setPlayerHudComponentVisible("all",false)
--[[setPlayerHudComponentVisible("clock",false)
setPlayerHudComponentVisible("health",false)
setPlayerHudComponentVisible("weapon",false)
setPlayerHudComponentVisible("armour",false)]]
--local h, m = getTime()
--setMinuteDuration(7000)
dxDrawRectangle((sx-170),(sy-758),150*getElementHealth(localPlayer)/100,10, tocolor(255,255,255,255))
--dxDrawRectangle((sx-1275),(sy-765), 270, 100, tocolor(255, 255, 255, 70), true)
--dxDrawRectangle((sx-1275),(sy-735), 270, 5, tocolor(255, 255, 255, 100), true)
--dxDrawText(nick, (sx - 1000), (sy - 760), 1, 100, tocolor(255, 255, 255, 255), 0.7,font, "left", "top", false, false, true, true, false)
--dxDrawText("ID:"..id , (sx - 70), (sy - 760), 1980, 37, tocolor(255, 255, 255, 255), 0.7,font, "left", "top", false, false, true, true, false)
dxDrawText("HP:", (sx - 210), (sy - 765),1280, 887, tocolor(255, 255, 255, 255), 0.7,font, "left", "top", false, false, true, true, false)
--dxDrawText(string.format("%02d", h)..":"..string.format("%02d", m), (sx - 75), (sy - 740), 1280, 887, tocolor(255, 255, 255, 255), 0.7,font, "left", "top", false, false, true, true, false)
dxDrawText("$ "..getPlayerMoney(), (sx - 210), (sy - 740), 700, 900, tocolor(255, 255, 255, 255), 0.7,font, "left", "top", false, false, true, true, false)
end
addEventHandler("onClientRender",root, hud) [size=9][/size]