думай доперешь)
local font = renderCreateFont("Arial", 7, 4)
local imgui = require 'imgui'
local encoding = require 'encoding'
encoding.default = 'CP1251'
u8 = encoding.UTF8
while true do wait(0)
if isPlayerPlaying(playerHandle) and enabled then
if checked_button_2.v then -- если вкл имгуа...