nil или "Нет" в imgui.Text

ReoGenT

Участник
Автор темы
90
6
Версия MoonLoader
.026-beta
Вместо "Нет" показывает nil. Как на "нет" исправить (СТРОЧКА 15)

Lua:
if remenu.v then
        local resX, resY = getScreenResolution()
        local sizeX, sizeY = 150, 250
        imgui.SetNextWindowPos(imgui.ImVec2(resX / 1.1 - sizeX / 3, resY / 2 - sizeY / 3))
        imgui.SetNextWindowSize(imgui.ImVec2(sizeX, sizeY))
        imgui.Begin('1', remenu, imgui.WindowFlags.NoCollapse + imgui.WindowFlags.NoResize + imgui.WindowFlags.NoMove + imgui.WindowFlags.NoTitleBar)
        local isPed, pPed = sampGetCharHandleBySampPlayerId(spec_id)
        local health
        if isPed and doesCharExist(pPed) then
            health = sampGetPlayerHealth(spec_id))
        end
        if isPed and doesCharExist(pPed) then
            health = sampGetPlayerHealth(spec_id)
        end
        imgui.Text(u8"Жизни:"); imgui.SameLine(90); imgui.Text(tostring(isPed) and tostring(health) or u8"Нет")
        imgui.End()
    end
sa-mp-136.png