Help how to list on screen - LUA

skillpz

Новичок
Автор темы
13
5
Версия MoonLoader
.026-beta
How do I list the information in this list on the screen?

Lua:
function main()
    while not isSampAvailable() do wait(50) end
    while not data do wait(0) end
    sust = {}
    lua_thread.create(function() while true do wait(0) takewd = true sampSendChat('/wanted') wait(120000) end end)
    while true do wait(0)
        for _, h in ipairs(getAllChars()) do
            local res , id = sampGetPlayerIdByCharHandle(h)
            if res and id ~= -1 and sampIsPlayerConnected(id) and not sampIsPlayerNpc(id) then
                local x, y, z = getCharCoordinates(h)
                local mx, my, mz = getCharCoordinates(PLAYER_PED)
                local dist = getDistanceBetweenCoords3d(mx, my, mz, x, y, z)
                local color = string.format("%06X", ARGBtoRGB(sampGetPlayerColor(id)))
                for _, l in pairs(sust) do
                    local nicksu, idsu = l:match('.+%{FFFFFF%} (%a+_%a+)%[(%d+)%].+')
                    local sulvl = l:match('.+Ур. Розыска:{ff0000} (%d+)')
                    if tonumber(id) == tonumber(idsu) then
                        table.insert(sust, {nicksu, idsu, sulvl})
                    end
                end
            end
        end
    end
end