LUA скрипт Rawetrip lua

Новичок
Статус
Оффлайн
Регистрация
8 Июл 2022
Сообщения
1
Реакции[?]
0
Поинты[?]
0
здравстуйте как мне пофиксить в луа когда запуск все работает а когда отлючаешь луа то не работает
Код:
--gui
ui.add_label("                                                        [Binds]")
ui.next_line()

ui.add_sliderint("X", 0, engine.get_screen_width())
ui.add_sliderint("Y", 0, engine.get_screen_height())
ui.add_colorpicker("Binds color")

local font = render.setup_font("Verdana", 12, fontflags.noantialiasing)

local allBinds = {
    { name = "Double Tap", active = keybinds.double_tap, alpha = 0, y = 0 },
    { name = "Hide Shots", active = keybinds.hide_shots, alpha = 0, y = 0 },
    { name = "Anti-aim inverter", active = keybinds.flip_desync, alpha = 0, y = 0 },
    { name = "Slow walk", active = keybinds.slowwalk, alpha = 0, y = 0 },
    { name = "Thirdperson", active = keybinds.thirdperson, alpha = 0, y = 0 },
    { name = "Minimum damage", active = keybinds.damage_override, alpha = 0, y = 0 },
    { name = "Automatic peek", active = keybinds.automatic_peek, alpha = 0, y = 0 },
    { name = "Force body aim", active = keybinds.body_aim, alpha = 0, y = 0 },
    { name = "Force safe points", active = keybinds.safe_points, alpha = 0, y = 0 },
}

local function modeToString(mode)
    return mode and "[toggled]" or "[holding]"
end

cheat.RegisterCallback("on_paint", function()
    
    -- Variables
    local bindPosition = { ui.get_int("X"), ui.get_int("Y") }
    local bindSize = { 165, 21 }
    local bindOffset = 0
    local color = ui.get_color("Binds color")

    render.rect_filled(bindPosition[1], bindPosition[2], bindSize[1], bindSize[2], color.new(0,0,0,170))
    render.rect_filled(bindPosition[1], bindPosition[2], bindSize[1], 1, color.new(color:r(),color:g(),color:b(), 255))

    render.text(font, bindPosition[1] + bindSize[1]/2 - render.get_text_width(font, "keybinds")/2, bindPosition[2] + 4, color.new(255,255,255, 255), "keybinds")

    for i = 1, #allBinds do
        local bindMode = ui.get_keybind_mode(allBinds[i].active)
        render.text(font, bindPosition[1] + 4, bindPosition[2] + 25 + allBinds[i].y - 15, color.new(255,255,255, allBinds[i].alpha), allBinds[i].name, true)
        render.text(font, bindPosition[1] + bindSize[1] - render.get_text_width(font, modeToString(bindMode)) - 4, bindPosition[2] + 25 + allBinds[i].y - 15, color.new(255,255,255, allBinds[i].alpha), modeToString(bindMode), true)   

        if ui.get_keybind_state(allBinds[i].active) then
            allBinds[i].alpha = animate.lerp(allBinds[i].alpha, 255, 0.1)
            bindOffset = bindOffset + 15
            allBinds[i].y = animate.lerp(allBinds[i].y, bindOffset, 0.1)
        else
            allBinds[i].alpha = animate.lerp(allBinds[i].alpha, 0, 0.1)
        end
    end

end)

--gui
ui.add_label("                                                        [Clantag]")
ui.next_line()



local strings_value = 16



local labels =

{

" ",

"k",

"ko",

"kok",

"koko",

"kokok",

"kokoko",

"kokokol",

"kokokola",

"kokokol",

"kokoko",

"kokok",

"koko",

"kok",

"ko",

"k",

" ",




}



local first = 0

local second = 0



local function test()

        if first < globalvars.get_tickcount() then   

             second = second + 3



            if second > strings_value then

                second = 0

            end



            engine.set_clantag(labels[second])

            first = globalvars.get_tickcount() + 17



        end



end

test()
 
Сверху Снизу