- 24
- 2
- Версия MoonLoader
- .027.0-preview
Не могу понять почему не обновляется, нужно проверку сделать? но как , я забыл
вот видос, если кто может помогите
Lua:
local newFrame = imgui.OnFrame(
function() return stats[0] end,
function(player)
spec_nick = sampGetPlayerNickname(spec_id)
darktheme_custom()
imgui.SetNextWindowSize(imgui.ImVec2(450, 250), imgui.Cond.FirstUseEver)
imgui.SetNextWindowPos(imgui.ImVec2(1690, 630), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5))
imgui.Begin(u8'Статистика на '.. spec_nick, nil, imgui.WindowFlags.NoResize + imgui.WindowFlags.NoMove + imgui.WindowFlags.NoCollapse)
if isKeyJustPressed(VK_RBUTTON) and not sampIsChatInputActive() and not sampIsDialogActive() then
imgui.ShowCursor = not imgui.ShowCursor
end
local isPed, pPed = sampGetCharHandleBySampPlayerId(spec_id)
if isPed then
spec_score = sampGetPlayerScore(spec_id)
spec_ping = sampGetPlayerPing(spec_id)
spec_hp = sampGetPlayerHealth(spec_id)
spec_armor = sampGetPlayerArmor(spec_id)
spec_skin = getCharModel(pPed)
spec_weapon = getCurrentCharWeapon(pPed)
spec_int = getCharActiveInterior(pPed)
spec_veh = sampGetVehicleIdByCarHandle(car)
end
weap = getweaponname(spec_weapon)
imgui.Columns(2, "Recon", true)
imgui.Text(u8'Имя : '.. spec_nick)
imgui.NextColumn()
imgui.Text(u8'Уровень : '.. spec_score)
imgui.NextColumn()
imgui.Separator()
imgui.Text(u8'Пинг : '.. spec_ping)
imgui.NextColumn()
imgui.Text(u8'Здоровье : '.. spec_hp)
imgui.NextColumn()
imgui.Separator()
imgui.Text(u8'Броня : '.. spec_armor)
imgui.NextColumn()
imgui.Text(u8'Скин : '..spec_skin)
imgui.NextColumn()
imgui.Separator()
imgui.Text(u8'Оружие/ПТ : '..spec_weapon)
imgui.NextColumn()
imgui.Text(u8'Интерьер : '..spec_int)
imgui.NextColumn()
imgui.Separator()
imgui.Columns(1)
imgui.End()
end
)