- 19
- 3
здравствуйте, почему не работает этот скрипт, не чего не крашит, скрипт грузится, но не нажимает на текстдрал
require "lib.moonloader"
local sampev = require "lib.samp.events"
local active = false
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand("txdr", toggleTextDrawClicker)
while true do
wait(500)
end
end
function sampev.onShowTextDraw(id, data)
if active and data.text == "CLICK TO EXIT" then
sampSendClickTextdraw(2069)
end
end
function toggleTextDrawClicker()
active = not active
sampAddChatMessage("TextDrawClicker: " .. (active and "On" or "Off"), 0x00FF00)
end
require "lib.moonloader"
local sampev = require "lib.samp.events"
local active = false
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand("txdr", toggleTextDrawClicker)
while true do
wait(500)
end
end
function sampev.onShowTextDraw(id, data)
if active and data.text == "CLICK TO EXIT" then
sampSendClickTextdraw(2069)
end
end
function toggleTextDrawClicker()
active = not active
sampAddChatMessage("TextDrawClicker: " .. (active and "On" or "Off"), 0x00FF00)
end