Помогите найти текст на экране

Kozlik Mad

Участник
Автор темы
134
6
Версия MoonLoader
.026-beta
Как найти этот текст на экране?
1669404867843.png
 
Решение
не работает
не выводит просто сообщение в чат даже

кк:
require "lib.moonloader"

local ev = require("lib.samp.events")

function main()

    if not isSampLoaded() or not isSampfuncsLoaded() then return end

    while not isSampAvailable() do wait(100) end

    sampAddChatMessage("Загружено", -1)

    while true do

        wait(0)

    end

end

function ev.onDisplayGameText(style, time, text)

    sampAddChatMessage(text, -1)

end
мб это текстдрав? попробуй проверить

whyega52

Eblang головного мозга
Модератор
2,858
2,834

Kozlik Mad

Участник
Автор темы
134
6
хукай с помощью самп луа геймтекст
Lua:
local ev = require("lib.samp.events")

function ev.onDisplayGameText(style, time, text)
    if text:find("твой текст") then
        sampAddChatMessage(text, -1) -- действие
    end
end
не работает
не выводит просто сообщение в чат даже

кк:
require "lib.moonloader"

local ev = require("lib.samp.events")

function main()

    if not isSampLoaded() or not isSampfuncsLoaded() then return end

    while not isSampAvailable() do wait(100) end

    sampAddChatMessage("Загружено", -1)

    while true do

        wait(0)

    end

end

function ev.onDisplayGameText(style, time, text)

    sampAddChatMessage(text, -1)

end
 

whyega52

Eblang головного мозга
Модератор
2,858
2,834
не работает
не выводит просто сообщение в чат даже

кк:
require "lib.moonloader"

local ev = require("lib.samp.events")

function main()

    if not isSampLoaded() or not isSampfuncsLoaded() then return end

    while not isSampAvailable() do wait(100) end

    sampAddChatMessage("Загружено", -1)

    while true do

        wait(0)

    end

end

function ev.onDisplayGameText(style, time, text)

    sampAddChatMessage(text, -1)

end
мб это текстдрав? попробуй проверить