sWidth, sHeight = guiGetScreenSize ( )
function vve ( )
local vida = getElementHealth ( localPlayer )
dxDrawText ( tostring ( math.floor ( vida + 0.1 ) ) .."%", ( 1300 / 1440 ) * sWidth, ( 28 / 900 ) * sHeight, sWidth, sHeight, tocolor ( 255, 255, 255, 255 ), 0.4, "bankgothic" )
local armadura = getPedArmor ( localPlayer )
dxDrawText ( tostring ( math.floor ( armadura + 0.1 ) ) .."%", ( 1320 / 1440 ) * sWidth, ( 47 / 900 ) * sHeight, sWidth, sHeight, tocolor ( 255, 255, 255, 255 ), 0.4, "bankgothic" )
end
function salu ( )
addEventHandler ( "onClientRender", root, vve )
end
addEventHandler ( "onClientResourceStart", resourceRoot, salu )
Proba eso, si no funca, proba esto:
sWidth, sHeight = guiGetScreenSize ( )
function vve ( )
local vida = getElementHealth ( localPlayer )
dxDrawText ( tostring ( math.floor ( vida + 0.1 ) ) .."%", ( 1300 / 1024 ) * sWidth, ( 28 / 768 ) * sHeight, sWidth, sHeight, tocolor ( 255, 255, 255, 255 ), 0.4, "bankgothic" )
local armadura = getPedArmor ( localPlayer )
dxDrawText ( tostring ( math.floor ( armadura + 0.1 ) ) .."%", ( 1320 / 1024 ) * sWidth, ( 47 / 768 ) * sHeight, sWidth, sHeight, tocolor ( 255, 255, 255, 255 ), 0.4, "bankgothic" )
end
function salu ( )
addEventHandler ( "onClientRender", root, vve )
end
addEventHandler ( "onClientResourceStart", resourceRoot, salu )