function main()
while not isSampAvailable() do wait(200) end
while true do
wait(0)
for i = 1, 2304 do
if sampTextdrawIsExists(i) then
local x, y = convertGameScreenCoordsToWindowScreenCoords(sampTextdrawGetPos(i))
if drawClickableText(font,'Copy', x, y, 0xFFBEBEBE,0xFF0000FF) then
sampTextdrawDelete(i)
end
end
end
end
end
function drawClickableText(font, text, posX, posY, color, colorA)
renderFontDrawText(font, text, posX, posY, color)
local textLenght = renderGetFontDrawTextLength(font, text)
local textHeight = renderGetFontDrawHeight(font)
local curX, curY = getCursorPos()
if curX >= posX and curX <= posX + textLenght and curY >= posY and curY <= posY + textHeight then
renderFontDrawText(font, text, posX, posY, colorA)
if wasKeyPressed(1) then
return true
end
end
end