local file = getWorkingDirectory()..'\\file.txt'
function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('getLines', function()
if doesFileExist(file) then
for line in io.lines(file) do
sampAddChatMessage(line, -1)
end
else
sampAddChatMessage('Файл '..file..' не найден!', -1)
end
end)
wait(-1)
end