local sampev = require 'lib.samp.events'
local file_dir = getGameDirectory().."//moonloader//myFile.txt" --путь к файлу
function sampev.onServerMessage(color, text)
if string.find(text, 'mq') then add(text) end
end
function add(arg)
file = io.open(file_dir, "r+") --открываем файл для...