Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- https://www.blast.hk/threads/19329/
- script_name('FluyKarr')
- script_author('Azller')
- local inik = require 'inicfg'
- local imgui = require 'imgui'
- local key = require 'vkeys'
- local imgui = require 'imgui'
- local encoding = require 'encoding'
- encoding.default = 'CP1251'
- u8 = encoding.UTF8
- local main_window_state = imgui.ImBool(false)
- local cb_lock_player = imgui.ImBool(imgui.LockPlayer)
- function activation()
- if isCharInAnyCar(PLAYER_PED) then
- toggle = not toggle
- if toggle then
- sampAddChatMessage("{30F867}[FKarr] {FFFFFF}Скрипт был успешно {30F867}aктивирован!", 0x30F867)
- else
- sampAddChatMessage("{F86630}[FKarr] {FFFFFF}Скрипт был {F86630}остановлен!", 0xF86630)
- end
- else
- sampAddChatMessage("{F86630}[FKarr] {FFFFFF}Вы должны находиться в авто! {F86630}Скрипт не был запущен!", 0xF86630)
- end
- end
- function main()
- mode = 0
- local thread = lua_thread.create(autooff)
- local thread = lua_thread.create(img)
- tableMain = {
- [65] = {0.0, 0.0, 4.0},
- [68] = {0.0, 0.0, -4.0},
- [83] = {4.0, 0.0, 0.0},
- [87] = {-4.0, 0.0, 0.0}
- }
- tableMainA = {
- [37] = {0.0, 0.0, 4.0},
- [39] = {0.0, 0.0, -4.0},
- [40] = {4.0, 0.0, 0.0},
- [38] = {-4.0, 0.0, 0.0}
- }
- tableParams = {
- [65] = {0.0, -3.9, 0.0},
- [68] = {0.0, 3.9, 0.0}
- }
- tableParamsA = {
- [37] = {0.0, -3.9, 0.0},
- [39] = {0.0, 3.9, 0.0}
- }
- tableAlt = {
- [65] = {65},
- [68] = {68}
- }
- tableFunctions = {
- [50] = {18.0},
- [51] = {-18.0}
- }
- tableLite = {
- [65] = {0.0, 0.0, 2.0},
- [68] = {0.0, 0.0, -2.0},
- [83] = {2.0, 0.0, 0.0},
- [87] = {-2.0, 0.0, 0.0}
- }
- tableLiteA = {
- [37] = {0.0, 0.0, 2.0},
- [39] = {0.0, 0.0, -2.0},
- [40] = {2.0, 0.0, 0.0},
- [38] = {-2.0, 0.0, 0.0}
- }
- local file = doesFileExist("moonloader//FluyKarr.lua")
- if file == false then
- wait(8000)
- sampAddChatMessage("{F86630}[FKarr] {d5dedd}Верните оригинальное название скрипта! {F86630}(FluyKarr.luac)", 0xF86630)
- else
- wait(8000)
- sampAddChatMessage("{30F867}[FKarr] {d5dedd}Скрипт был успешно загружен! {30F867}Автор: Azller", 0x30F867)
- sampAddChatMessage("{30F867}[FKarr] {d5dedd}Stable(?) {0094c8}v2.0", 0x30F867)
- sampAddChatMessage("{30F867}[FKarr] {d5dedd}Для активации окна с настройками нажмите: {0094c8}CTRL + C", 0x30F867)
- sampAddChatMessage("{30F867}[FKarr] {d5dedd}Special for {0094c8}Blast{d5dedd}.hk", 0x30F867)
- sampRegisterChatCommand("fk", activation)
- sampRegisterChatCommand("drpspeed", drpspeed)
- sampRegisterChatCommand("arpspeed", arpspeed)
- sampRegisterChatCommand("srpspeed", srpspeed)
- sampRegisterChatCommand("strpspeed", strpspeed)
- sampRegisterChatCommand("defspeed", defspeed)
- sampRegisterChatCommand("prf0speed", profileN)
- sampRegisterChatCommand("prf1speed", profileT)
- while true do
- wait(0)
- if isKeyDown(16) and toggle and not sampIsCursorActive() and isSampLoaded() and isCharInAnyCar(PLAYER_PED) then
- ----------------------------------------------------------------------------------
- local car = storeCarCharIsInNoSave(PLAYER_PED)
- local speed = getCarSpeed(car)
- ---------------------------------------------------------------------------------
- wait(50)
- if mode == 0 then
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- if speeds.settings.speedf ~= nil then
- speedn = speeds.settings.speedf
- else speedn = 50.0 end
- end
- ----------------------------------------------------------------
- if mode == 1 then
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- if speeds.settings.speedDrp ~= nil then
- speedn = speeds.settings.speedDrp
- else speedn = 23.0 end
- end
- ----------------------------------------------------------------
- if mode == 2 then
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- if speeds.settings.speedArp ~= nil then
- speedn = speeds.settings.speedArp
- else speedn = 30.0 end
- end
- ----------------------------------------------------------------
- if mode == 3 then
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- if speeds.settings.speedSrp ~= nil then
- speedn = speeds.settings.speedSrp
- else speedn = 45.0 end
- end
- ----------------------------------------------------------------
- if mode == 4 then
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- if speeds.settings.speedStrp ~= nil then
- speedn = speeds.settings.speedStrp
- else speedn = 35.0 end
- end
- ----------------------------------------------------------------
- if mode == 5 then
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- if speeds.settings.speedStrp ~= nil then
- speedn = speeds.settings.speedProfile0
- else speedn = 35.0 end
- end
- ----------------------------------------------------------------
- if mode == 6 then
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- if speeds.settings.speedStrp ~= nil then
- speedn = speeds.settings.speedProfile1
- else speedn = 35.0 end
- end
- if speed < speedn then setCarForwardSpeed(car, speed * 1.235) end
- if speed > speedn then setCarForwardSpeed(car, speedn + 5.0) end
- setCarRotationVelocity(car, 0.0, 0.0, 0.0)
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- if speeds.settings.control == 1 then
- for key, param in pairs(tableMain) do
- if isKeyDown(key) then setCarRotationVelocity(car,param[1],param[2],param[3]) end
- end
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------
- if speeds.settings.control == 2 then
- for keyA, paramA in pairs(tableMainA) do
- if isKeyDown(keyA) then setCarRotationVelocity(car,paramA[1],paramA[2],paramA[3]) end
- end
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------
- for keyThree, paramThree in pairs(tableFunctions) do
- if isKeyDown(keyThree) then setCarForwardSpeed(car, paramThree[1]) end
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------
- if isKeyDown(49) then
- freezeCarPosition(car, true)
- else
- freezeCarPosition(car, false)
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------
- if speeds.settings.control == 1 then
- for keyLite, paramLite in pairs(tableLite) do
- if isKeyJustPressed(keyLite) then setCarRotationVelocity(car,paramLite[1],paramLite[2],paramLite[3]) end
- end
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------
- if speeds.settings.control == 2 then
- for keyLiteA, paramLiteA in pairs(tableLiteA) do
- if isKeyJustPressed(keyLiteA) then setCarRotationVelocity(car,paramLiteA[1],paramLiteA[2],paramLiteA[3]) end
- end
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------
- if speeds.settings.control == 1 then
- if isKeyDown(18) then
- for keyTwo, paramTwo in pairs(tableParams) do
- if isKeyDown(keyTwo) then
- setCarRotationVelocity(car,paramTwo[1],paramTwo[2],paramTwo[3])
- end
- end
- end
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------
- if speeds.settings.control == 2 then
- if isKeyDown(18) then
- for keyTwoA, paramTwoA in pairs(tableParamsA) do
- if isKeyDown(keyTwoA) then
- setCarRotationVelocity(car,paramTwoA[1],paramTwoA[2],paramTwoA[3])
- end
- end
- end
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------
- end
- end
- end
- end
- function autooff()
- while true do
- wait(0)
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- if speeds.settings.autooff then
- if toggle and not isCharInAnyCar(PLAYER_PED) then
- toggle = not toggle
- sampAddChatMessage("{F86630}[FKarr] {d5dedd}Скрипт был автоматически выключен! {F86630}Введите /fk в авто для активации!", 0xF86630)
- end
- end
- end
- end
- -- одно из основных отличий от оригинального апи
- -- все переменные, значения которых записываются в ImGui по указателю, могут использоваться только через специальные типы
- local main_window_state = imgui.ImBool(false)
- local main_controls = imgui.ImBool(false)
- local main_sett = imgui.ImBool(false)
- function imgui.OnDrawFrame()
- if main_window_state.v then -- чтение и запись значения такой переменной осуществляется через поле v (или Value)
- imgui.SetNextWindowSize(imgui.ImVec2(470, 520), imgui.Cond.FirstUseEver)
- imgui.SetNextWindowPos(imgui.ImVec2(750, 350), imgui.Cond.FirstUseEver)
- imgui.Begin('FluyKarr settings | V2.0', main_window_state)
- imgui.Text(u8'Выберите профиль, по которому будет работать скрипт:')
- local btn_size = imgui.ImVec2(-0.1, 0)
- if imgui.Button(u8'Стандартное значение = 0', btn_size) then
- mode = 0
- end
- local btn_size = imgui.ImVec2(-0.1, 0)
- if imgui.Button('Diamond RP = 1', btn_size) then
- mode = 1
- end
- local btn_size = imgui.ImVec2(-0.1, 0)
- if imgui.Button('Advance RP = 2', btn_size) then
- mode = 2
- end
- local btn_size = imgui.ImVec2(-0.1, 0)
- if imgui.Button("Samp RP = 3", btn_size) then
- mode = 3
- end
- local btn_size = imgui.ImVec2(-0.1, 0)
- if imgui.Button('Stage RP = 4', btn_size) then
- mode = 4
- end
- if imgui.Button(u8'Профиль 0 = 5', btn_size) then
- mode = 5
- end
- if imgui.Button(u8"Профиль 1 = 6", btn_size) then
- mode = 6
- end
- end
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- imgui.Text(u8'')
- imgui.Text(u8'Текущий режим: ' .. mode)
- imgui.Text(u8'')
- imgui.Text(u8'')
- local btn_size = imgui.ImVec2(-0.1, 0)
- if imgui.Button(u8"Контроль автовыключения:", btn_size) then
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- if speeds.settings.autooff then
- speeds.settings.autooff = false
- inik.save(speeds)
- else
- speeds.settings.autooff = true
- inik.save(speeds)
- end
- end
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- if speeds.settings.autooff then
- imgui.Text(u8'Автовыключение при выходе из авто: on')
- else
- imgui.Text(u8'Автовыключение при выходе из авто: off')
- end
- if imgui.Button(u8'Управление:', btn_size) then
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- if speeds.settings.control == 1 then
- speeds.settings.control = 2
- inik.save(speeds)
- else
- speeds.settings.control = 1
- inik.save(speeds)
- end
- end
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- if speeds.settings.control == 1 then
- imgui.Text(u8'Управление: wasd')
- else
- imgui.Text(u8'Управление: стрелочки')
- end
- imgui.Text(u8'')
- if imgui.Button(u8"Информация, команды", btn_size) then
- main_controls.v = not main_controls.v
- end
- if imgui.Button(u8"Мониторинг настроек", btn_size) then
- main_sett.v = not main_sett.v
- end
- imgui.Text(u8'')
- if imgui.Button(u8'Закрыть', btn_size) then -- а вот и кнопка с действием
- -- условие будет выполнено при нажатии на неё
- main_window_state.v = not main_window_state.v
- end
- if main_controls.v then
- imgui.SetNextWindowSize(imgui.ImVec2(470, 520), imgui.Cond.FirstUseEver)
- imgui.SetNextWindowPos(imgui.ImVec2(280, 350), imgui.Cond.FirstUseEver)
- imgui.Begin('FluyKarr settings | V2.0 | Info', main_controls)
- if imgui.CollapsingHeader(u8'Полезные команды') then
- imgui.Text(u8'')
- imgui.Text(u8'/defspeed - установить значение скорости для стандартного профиля;')
- imgui.Text(u8'/drpspeed - установить значение скорости для профиля Diamond;')
- imgui.Text(u8'/arpspeed - установить значение скорости для профиля Advance;')
- imgui.Text(u8'/srpspeed - установить значение скорости для профиля SampRP/Evolve;')
- imgui.Text(u8'/strpspeed - установить значение скорости для профиля Stage;')
- imgui.Text(u8'/prf0speed - установить значение скорости для профиля 0;')
- imgui.Text(u8'/prf1speed - установить значение скорости для профиля 1.')
- imgui.Text(u8'')
- end
- if imgui.CollapsingHeader(u8'Управление') then
- imgui.Text(u8'')
- imgui.Text(u8'1. Сядьте в машину.')
- imgui.Text(u8'2. Пропишите /fk для активации работы скрипта.')
- imgui.Text(u8'3. Выберите профиль скорости для корректной работы')
- imgui.Text(u8'скрипта на определенном сервере.')
- imgui.Text(u8'4. Зажмите L.Shift для включения режима полёта.')
- imgui.Text(u8'5. При зажатом шифте нажмите на цифру 2, чтобы')
- imgui.Text(u8'установить стартовую скорость.')
- imgui.Text(u8'6. Управление происходит клавишами w/a/s/d при зажатом шифте.')
- imgui.Text(u8'7. Поворот вокруг своей оси вправо/влево регулируется')
- imgui.Text(u8'Сочетанием клавиш "Shift + Alt + a/d".')
- imgui.Text(u8'Для того чтобы остановить т/с, нажмите цифру 1 при зажатом шифте.')
- imgui.Text(u8'Для того чтобы полететь назад, зажмите цифру 3 при нажатом шифте.')
- imgui.Text(u8'')
- imgui.Text(u8'Если возникли вопросы, пишите в vk.com/icanitrly')
- imgui.Text(u8'Или задавайте их под темой на blast.hk')
- imgui.Text(u8'blast.hk/threads/19329/')
- imgui.Text(u8'')
- end
- imgui.Text(u8'')
- if imgui.Button(u8"Закрыть окно", btn_size) then
- main_controls.v = not main_controls.v
- end
- imgui.End()
- end
- if main_sett.v then
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- imgui.SetNextWindowSize(imgui.ImVec2(470, 520), imgui.Cond.FirstUseEver)
- imgui.SetNextWindowPos(imgui.ImVec2(1220, 350), imgui.Cond.FirstUseEver)
- imgui.Begin('FluyKarr settings | V2.0 | Monitoring', main_sett)
- imgui.Text(u8'')
- imgui.Text(u8'Внимание! Единицы скорости не зависят от серверов!')
- imgui.Text(u8'1 единица скорости FK = 2 единицам скорости собейта!')
- imgui.Text(u8'0 = Default. Скорость: ' .. speeds.settings.speedf)
- imgui.Text(u8'1 = Diamond RP. Скорость: ' .. speeds.settings.speedDrp)
- imgui.Text(u8'2 = Advance RP. Скорость: ' .. speeds.settings.speedArp)
- imgui.Text(u8'3 = Samp RP. Скорость: ' .. speeds.settings.speedSrp)
- imgui.Text(u8'4 = Stage RP. Скорость: ' .. speeds.settings.speedStrp)
- imgui.Text(u8'5 = Профиль 0. Скорость: ' .. speeds.settings.speedProfile0)
- imgui.Text(u8'6 = Профиль 1. Скорость: ' .. speeds.settings.speedProfile1)
- imgui.Text(u8'')
- if imgui.Button(u8"Закрыть окно", btn_size) then
- main_sett.v = not main_sett.v
- end
- imgui.End()
- end
- imgui.End()
- end
- function img()
- while true do
- wait(0)
- if wasKeyPressed(67) and wasKeyPressed(17) and not sampIsCursorActive() then -- активация по нажатию CTRL и C
- main_window_state.v = not main_window_state.v -- переключаем статус активности окна, не забываем про .v
- end
- imgui.Process = main_window_state.v -- теперь значение imgui.Process всегда будет задаваться в зависимости от активности основного окна
- end
- end
- function apply_custom_style()
- imgui.SwitchContext()
- local style = imgui.GetStyle()
- local colors = style.Colors
- local clr = imgui.Col
- local ImVec4 = imgui.ImVec4
- style.WindowRounding = 2.0
- style.WindowTitleAlign = imgui.ImVec2(0.5, 0.84)
- style.ChildWindowRounding = 2.0
- style.FrameRounding = 2.0
- style.ItemSpacing = imgui.ImVec2(5.0, 4.0)
- style.ScrollbarSize = 13.0
- style.ScrollbarRounding = 0
- style.GrabMinSize = 8.0
- style.GrabRounding = 1.0
- colors[clr.Text] = ImVec4(1.00, 1.00, 1.00, 1.00)
- colors[clr.TextDisabled] = ImVec4(0.50, 0.50, 0.50, 1.00)
- colors[clr.WindowBg] = ImVec4(0.03, 0.07, 0.14, 0.7)
- colors[clr.ChildWindowBg] = ImVec4(1.00, 1.00, 1.00, 0.00)
- colors[clr.PopupBg] = ImVec4(0.08, 0.08, 0.08, 0.94)
- colors[clr.ComboBg] = colors[clr.PopupBg]
- colors[clr.Border] = ImVec4(0.43, 0.43, 0.50, 0.50)
- colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00)
- colors[clr.FrameBg] = ImVec4(0.16, 0.29, 0.48, 0.54)
- colors[clr.FrameBgHovered] = ImVec4(0.26, 0.59, 0.98, 0.40)
- colors[clr.FrameBgActive] = ImVec4(0.26, 0.59, 0.98, 0.67)
- colors[clr.TitleBg] = ImVec4(0.04, 0.04, 0.04, 1.00)
- colors[clr.TitleBgActive] = ImVec4(0.16, 0.29, 0.48, 1.00)
- colors[clr.TitleBgCollapsed] = ImVec4(0.00, 0.00, 0.00, 0.51)
- colors[clr.MenuBarBg] = ImVec4(0.14, 0.14, 0.14, 1.00)
- colors[clr.ScrollbarBg] = ImVec4(0.02, 0.02, 0.02, 0.53)
- colors[clr.ScrollbarGrab] = ImVec4(0.31, 0.31, 0.31, 1.00)
- colors[clr.ScrollbarGrabHovered] = ImVec4(0.41, 0.41, 0.41, 1.00)
- colors[clr.ScrollbarGrabActive] = ImVec4(0.51, 0.51, 0.51, 1.00)
- colors[clr.CheckMark] = ImVec4(0.26, 0.59, 0.98, 1.00)
- colors[clr.SliderGrab] = ImVec4(0.24, 0.52, 0.88, 1.00)
- colors[clr.SliderGrabActive] = ImVec4(0.26, 0.59, 0.98, 1.00)
- colors[clr.Button] = ImVec4(0.26, 0.59, 0.98, 0.40)
- colors[clr.ButtonHovered] = ImVec4(0.26, 0.59, 0.98, 0.70)
- colors[clr.ButtonActive] = ImVec4(0.06, 0.53, 0.98, 1.00)
- colors[clr.Header] = ImVec4(0.26, 0.59, 0.98, 0.31)
- colors[clr.HeaderHovered] = ImVec4(0.26, 0.59, 0.98, 0.80)
- colors[clr.HeaderActive] = ImVec4(0.26, 0.59, 0.98, 1.00)
- colors[clr.Separator] = colors[clr.Border]
- colors[clr.SeparatorHovered] = ImVec4(0.26, 0.59, 0.98, 0.78)
- colors[clr.SeparatorActive] = ImVec4(0.26, 0.59, 0.98, 1.00)
- colors[clr.ResizeGrip] = ImVec4(0.26, 0.59, 0.98, 0.25)
- colors[clr.ResizeGripHovered] = ImVec4(0.26, 0.59, 0.98, 0.67)
- colors[clr.ResizeGripActive] = ImVec4(0.26, 0.59, 0.98, 0.95)
- colors[clr.CloseButton] = ImVec4(0.41, 0.41, 0.41, 0.50)
- colors[clr.CloseButtonHovered] = ImVec4(0.98, 0.39, 0.36, 1.00)
- colors[clr.CloseButtonActive] = ImVec4(0.98, 0.39, 0.36, 1.00)
- colors[clr.PlotLines] = ImVec4(0.61, 0.61, 0.61, 1.00)
- colors[clr.PlotLinesHovered] = ImVec4(1.00, 0.43, 0.35, 1.00)
- colors[clr.PlotHistogram] = ImVec4(0.90, 0.70, 0.00, 1.00)
- colors[clr.PlotHistogramHovered] = ImVec4(1.00, 0.60, 0.00, 1.00)
- colors[clr.TextSelectedBg] = ImVec4(0.26, 0.59, 0.98, 0.35)
- colors[clr.ModalWindowDarkening] = ImVec4(0.80, 0.80, 0.80, 0.35)
- end
- apply_custom_style()
- function defspeed(arg)
- if tonumber(arg) ~= nil then
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- sampAddChatMessage((string.format("[FKarr]{d5dedd} DefSpeed | Было поставлено значение скорости: %s", arg)), 0x30F867)
- speeds.settings.speedf = arg
- inik.save(speeds)
- else
- sampAddChatMessage("[FKarr] {d5dedd}Ты серьезно хочешь так сделать?", 0xF86630)
- end
- end
- function drpspeed(arg)
- if tonumber(arg) ~= nil then
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- sampAddChatMessage((string.format("[FKarr]{d5dedd} DrpSpeed | Было поставлено значение скорости: %s", arg)), 0x30F867)
- speeds.settings.speedDrp = arg
- inik.save(speeds)
- else
- sampAddChatMessage("[FKarr] {d5dedd}Ты серьезно хочешь так сделать?", 0xF86630)
- end
- end
- function arpspeed(arg)
- if tonumber(arg) ~= nil then
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- sampAddChatMessage((string.format("[FKarr]{d5dedd} ArpSpeed | Было поставлено значение скорости: %s", arg)), 0x30F867)
- speeds.settings.speedArp = arg
- inik.save(speeds)
- else
- sampAddChatMessage("[FKarr] {d5dedd}Ты серьезно хочешь так сделать?", 0xF86630)
- end
- end
- function srpspeed(arg)
- if tonumber(arg) ~= nil then
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- sampAddChatMessage((string.format("[FKarr]{d5dedd} SrpSpeed | Было поставлено значение скорости: %s", arg)), 0x30F867)
- speeds.settings.speedSrp = arg
- inik.save(speeds)
- else
- sampAddChatMessage("[FKarr] {d5dedd}Ты серьезно хочешь так сделать?", 0xF86630)
- end
- end
- function strpspeed(arg)
- if tonumber(arg) ~= nil then
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- sampAddChatMessage((string.format("[FKarr]{d5dedd} StagSpeed | Было поставлено значение скорости: %s", arg)), 0x30F867)
- speeds.settings.speedStrp = arg
- inik.save(speeds)
- else
- sampAddChatMessage("[FKarr] {d5dedd}Ты серьезно хочешь так сделать?", 0xF86630)
- end
- end
- function profileN(arg)
- if tonumber(arg) ~= nil then
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- sampAddChatMessage((string.format("[FKarr]{d5dedd} Profile0Speed | Было поставлено значение скорости: %s", arg)), 0x30F867)
- speeds.settings.speedProfile0 = arg
- inik.save(speeds)
- else
- sampAddChatMessage("[FKarr] {d5dedd}Ты серьезно хочешь так сделать?", 0xF86630)
- end
- end
- function profileT(arg)
- if tonumber(arg) ~= nil then
- local speeds = inik.load(nil, "FluyKarr.luac.ini")
- sampAddChatMessage((string.format("[FKarr]{d5dedd} Profile1Speed | Было поставлено значение скорости: %s", arg)), 0x30F867)
- speeds.settings.speedProfile1 = arg
- inik.save(speeds)
- else
- sampAddChatMessage("[FKarr] {d5dedd}Ты серьезно хочешь так сделать?", 0xF86630)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment