local exp = {
-- level = exp
[1] = 4,
[2] = 5,
[3] = 6
-- add more if you want
}
local lv = exp[(getElementData(localPlayer, "Level") or 0)+1]
local lv =(( getElementData(localPlayer, "XP") or 5)/lv)*100
dxDrawText(lv.."%" (336/1024)*sWidth, (745/768)*sHeight, (289/1024)*sWidth, (250/768)*sHeight, tocolor (255, 255, 255, 255), (0.85/1366)*sWidth,(0.9/768)*sHeight,"bankgothic","left","top",false,false,false,true)