function main()
while not isSampAvailable() do wait(0) end
while true do wait(0)
for k, v in ipairs(getAllChars()) do
local res, id = sampGetPlayerIdByCharHandle(v)
if res then
Nick = sampGetPlayerNickname(id)
file = io.open(getGameDirectory().."//moonloader//test.txt", "r")
nickFile = file:read('*a')
file:close()
if not nickFile:find(Nick) and doesFileExist(getGameDirectory()..'\\moonloader\\config\\NickList.txt') then
file = io.open(getGameDirectory().."\\moonloader\\config\\NickList.txt", "a")...