addEventHandler("onClientRender", root,
function()
local name = getPlayerName(localPlayer)
local money = getPlayerMoney(localPlayer)
local fps = getFPSLimit()
local ping = getPlayerPing(localPlayer)
local ipx = getElementData(localPlayer,"IPx")
local serialx = getElementData(localPlayer,"Serialx")
local Accountx = getElementData(localPlayer,"Accountx")
local Team = getPlayerTeam(localPlayer)
local skin = getElementModel(localPlayer)
dxDrawRectangle(0, 740, 1366, 28, tocolor(0, 0, 0, 254), false)
dxDrawRectangle(0, 0, 1366, 28, tocolor(0, 0, 0, 254), false)
dxDrawText("Name : "..name, 10, 0, 202, 28, tocolor(159, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false)
dxDrawText("Money : "..money, 10, 740, 202, 768, tocolor(7, 158, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false)
dxDrawText("IP : "..ipx, 286, 0, 478, 28, tocolor(159, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false)
dxDrawText("Serial : "..serialx, 659, 0, 851, 28, tocolor(159, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false)
dxDrawText("Account Neam : "..Accountx, 960, 0, 1152, 28, tocolor(159, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false)
dxDrawText("FPS : "..fps, 1252, -2, 1309, 29, tocolor(159, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false)
dxDrawText("Ping : "..ping, 1309, -2, 1366, 29, tocolor(157, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false)
dxDrawText("Team : "..Team, 289, 740, 481, 768, tocolor(7, 158, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false)
dxDrawText("Skin : "..skin, 683, 740, 875, 768, tocolor(7, 158, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false)
dxDrawText("Players : ", 1020, 740, 1212, 768, tocolor(7, 158, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false)
end
)
--server
addEventHandler("onPlayerJoin",root,function(_)
setElementData(source,"IPx",getPlayerIP(source))
setElementData(source,"Serialx",getPlayerSerial(source))
setElementData(source,"Accountx",getAccountName(source))
end)
ما مجرب ان ما اشتغل قلي