Как убрать оригинальный текс?

976h

Активный
Автор темы
271
88
Как здесь убрать отображение оригинального текста? Или как можно по другому заменить текст? Через
onServerMessage не получится этот текст


Lua:
function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    local mess = {}
    while true do
        wait(100)
        local text, prefix, color = sampGetChatString(99)
        if text ~= nil and not mess[text] then
            mess[text] = true
            local txt = "Скриншот сохранен"
            local star = text:find(txt)
            if star then
                local aft = text:sub(star + #txt + 1)
                sampAddChatMessage("Screenshot saved:" .. aft, color)
            end
        end
    end
end