@#َxLysandeR
طيب انا سويت كذا ولسه بكمل
local font = dxCreateFont("files/font/font.ttf", 10)
addEventHandler("onClientRender", root,
function()
local level = getElementData(localPlayer, "level") or 1
local xp = getElementData(localPlayer, "xp") or 0
if level and xp then
local precentage = (xp/level*100)*100
if precentage >= 100 then precentage = 0 end
local bar = precentage*2.75
dxDrawRectangle(50, 820, 209, 19, tocolor(90, 99, 100, 20), false)
dxDrawText(" Level : "..level.." - xP : "..xp.." / "..(level*300), 50, 820, 259, 837, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
end
end
)
function convertToAllScreens(x, y, w, h, resolutionX, resolutionY)
if tonumber(x) and tonumber(y) and tonumber(w) and tonumber(h) and tonumber(resolutionX) and tonumber(resolutionY) then
local screenW, screenH = guiGetScreenSize()
local 50, 820, 209, 19 = (x/resolutionX)*screenW, (y/resolutionY)*screenH, (w/resolutionX)*screenW, (h/resolutionY)*screenH
return 50, 820, 209, 19
end
return false
end