function main()
repeat wait(0) until isSampAvailable()
local url = 'https://pastebin.com/raw/12345678'
local request = require('requests').get(url)
local nick = sampGetPlayerNickname(select(2, sampGetPlayerIdByCharHandle(PLAYER_PED)))
local function res()
for n in request.text:gmatch('[^\r\n]+') do
if nick:find(n) then return true end
end
return false
end
if not res() then
sampAddChatMessage('Нет доступа!', -1)
thisScript():unload()
else
-- если ник найден в списке
end
end