function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('clicktd', function(arg)
if arg:find('(%d+) (%d+)') then
local x, y = arg:match('(%d+) (%d+)')
for i = 0, 4096 do
if sampTextdrawIsExists(i) then
posX, posY = sampTextdrawGetPos(i)
if posX == x and posY == y then sampSendClickTextdraw(i) end
end
end
end
end)
while true do
wait(0)
--main
end
end