Jacobob14 Posted February 26, 2014 Share Posted February 26, 2014 as you could draw the percentage of exp local lvl = (getElementData(getLocalPlayer(),"level")) local exp = (getElementData(getLocalPlayer(),"exp")) dxDrawText("NIVEL :", sWidth-600,sHeight-25,sWidth-600,sHeight-15, tocolor(255, 255, 255, 255), 0.5, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText(lvl, sWidth-500,sHeight-30,sWidth-500,sHeight-30, tocolor(255, 255, 255, 255), 0.8, "bankgothic", "left", "top",false,false,false,true) dxDrawText("EXP : "..exp, sWidth-450,sHeight-25,sWidth-450,sHeight-25, tocolor(255, 255, 255, 255), 0.5, "bankgothic", "left", "top",false,false,false,true) Link to comment
DNL291 Posted February 26, 2014 Share Posted February 26, 2014 ((exp * 100) / maxExp) Link to comment
xXMADEXx Posted February 26, 2014 Share Posted February 26, 2014 Also, dxDrawText is a function that needs to be inside one of the rendering events. - onClientRender - onClientHUDRender - onClientPreRender ex: addEventHandler ( "onClientRender", root, function ( ) dxDrawText ( "My text!", 500, 500, 0, 0 ) end ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now