imgui.SetNextWindowPos(imgui.ImVec2(430, 824), imgui.Cond.FirstUseEver)
--imgui.ShowCursor = false
--imgui.SetMouseCursor(-1)
_, id = sampGetPlayerIdByCharHandle(h1)
server = sampGetCurrentServerName(PLAYER_HANDLE)
ip = sampGetCurrentServerAddress(h1)
weap = getCurrentCharWeapon(h1)
weaponid = getWeapontypeModel(weap)
ammo = getAmmoInCharWeapon(h1, weap)
nick = sampGetPlayerNickname(id)
fFps = memory.getfloat(0xB7CB50, 4, false)
ping = sampGetPlayerPing(id)
time = (os.date("%H",os.time())..':'..os.date("%M",os.time())..':'..os.date("%S",os.time()))
date = (os.date("%d",os.time())..'/'..os.date("%m",os.time())..'/'..os.date("%Y",os.time()))
Health = getCharHealth(h1)
Armor = getCharArmour(h1)
Level = sampGetPlayerScore(id)
pspeed = getCharSpeed(h1)
x,y,z = getCharCoordinates(h1)
Hours = (os.date("%H", os.time()))
Minuts = (os.date("%M", os.time()))
Seconds = (os.date("%S", os.time()))
imgui.Begin("INFOBAR", window, imgui.WindowFlags.NoTitleBar + imgui.WindowFlags.NoResize + imgui.WindowFlags.AlwaysAutoResize + imgui.WindowFlags.ShowBorders)
imgui.Text("Server: " .. server, main_color)
imgui.Text("NickName: " .. nick .. " | ID: " .. id, main_color)
imgui.Text("Ping: " .. ping .. " | Level: " .. Level, main_color)
imgui.Text("Date: " .. date, main_color)
imgui.Text("City: " .. city[getCityPlayerIsIn(PLAYER_HANDLE)] .. " | PlayerTime: " .. playhours .. ":" .. playmin .. ":" .. playsec, main_color)
imgui.Text("Health: " .. Health .. " | Armour: " .. Armor .. " | Speed: " .. math.floor(pspeed), main_color)
imgui.Text("Weapon: " .. weap.. " | Ammo: " .. ammo, main_color)
imgui.Text("X: " .. math.floor(x) .. " | Y: " .. math.floor(y) .. " | Z: " .. math.floor(z), main_color)
imgui.End()