Почему не работает скрипт?

Senya.Volin

Участник
Автор темы
67
4
Версия MoonLoader
Другое
Lua:
script_name("timer.weaponarm") -- Название скрипта
script_author("seny.volin") -- Автор скрипта
script_description("Timer") -- Про скрипт



require "lib.moonloader"
local keys = require "vkeys"

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end

    thread = lua_thread.create_suspended(thread_r)


    sampRegisterChatCommand("timers", cmd_timer)
    wait(0)
end
 
 
function cmd_timer()
    thr:run()
end

function thread_r()
    sampAddChatMessage("60", -1)
    wait(10000)
    sampAddChatMessage("50", -1)
    wait(10000)
    sampAddChatMessage("40", -1)
    wait(10000)
    sampAddChatMessage("30", -1)
    wait(10000)
    sampAddChatMessage("20", -1)
    wait(10000)
    sampAddChatMessage("10", -1)
    wait(0)
    sampAddChatMessage("One minute passed", 0xFAFAFA)
end

в пред моей теме суть данного скрипта