Проблема с циклом

Majunti

Известный
Автор темы
529
165
Не работает очистка текстдравов по id.
Lua:
function skn()
    lua_thread.create(function()
        local txd = {358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 381, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393}
        sampSendClickTextdraw(394)
        sampRequestClass(0)
        sampSendClickTextdraw(394)
        sampSendClickTextdraw(393)
        sampSendClickTextdraw(393)
        function events.onSendClickTextDraw()
            return false
        end
        setVirtualKeyDown(27, true)
        wait(100)
        setVirtualKeyDown(27, false)
        function events.onSendClickTextDraw()
            return true
        end
        local hide = raknetNewBitStream()
        for e = 1, 36 do
            raknetBitStreamWriteInt16(hide, txd[e])
            raknetEmulRpcReceiveBitStream(135, hide)
        end
    end)
end