local font = renderCreateFont('Arial', 15, 5)
local active = false
function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('rendertext', function()
active = not active
sampAddChatMessage('текст на экране '..(active and 'включен' or 'выключен'), -1)
end)
while true do
wait(0)
if active then
renderFontDrawText(font, 'ТЕКСТ', 500, 500, 0xFFFFFFFF, 0x90000000)
end
end
end