Недавнее содержимое от Masayuki

  1. Masayuki

    Вопросы по Lua скриптингу

    local sp = require("samp.events") function main() if not isSampfuncsLoaded() or not isSampLoaded() then return end while not isSampAvailable() do wait(100) end audio = loadAudioStream("moonloader/resource/catpurring.mp3") while true do _, id =...
  2. Masayuki

    Блокировка ввода

    if imgui.Button(u8'Оповестить##2') then if ffi.string(set_namemp) ~= nil then sampAddChatMessage('/ao Проходит мероприятие "'..u8:decode(ffi.string(set_namemp))..'" на '..u8:decode(ffi.string(set_priz))..'. Желающие - /gotp.',0xffcc00) else sampAddChatMessage('u gay', -1) end end...
  3. Masayuki

    банальный эррор, решить который мне не удается

    local sampev = require 'samp.events' function main() while not isSampAvailable() do wait(0) end while true do wait(0) if isKeyDown(0x12) and isKeyJustPressed(0x31) then sampSendChat('/mm') --команда inputNumber = 5 --нужная строка в...
  4. Masayuki

    Отсутсвует кодировка

    if imgui.Button(u8"Оповестить##1") then sampAddChatMessage('/ao Победитель мероприятия "'..u8:decode(ffi.string(input_namemp))..'" на '..u8:decode(ffi.string(input_priz))..' — '..u8:decode(ffi.string(input_name))..'. Поздравляем!',-1) end
  5. Masayuki

    Баг с диалогом

    local result, button, list, input = sampHasDialogRespond(10) if result then if button == 1 then Menu_Script[0] = true end end
  6. Masayuki

    Помогите со скриптом

    local file_path = getGameDirectory() .. "\\moonloader\\FR_Notepad\\fr_" .. name .. ".txt" у тебя заметки в папке называются просто 123.txt, а не fr_123.txt edit_note(select_note, u8:decode(ffi.string(inputField_recontentnewnote))) inputField_recontentnewnote это ещё глянь, у тебя там ничего нет
  7. Masayuki

    Не прокручивает окно

    убери if imgui.BeginChild() then imgui.EndChild() end оставь просто imgui.BeginChilld() imgui.EndChild()
  8. Masayuki

    Баг с окном

    script_name('DrivingShool_Helper') script_author('Marcus_Kransov') script_version('1.0') script_version_number(1.0) --------- require('lib.moonloader') ------ local imgui = require 'mimgui' local encoding = require 'encoding' encoding.default = 'CP1251' local u8 = encoding.UTF8 local ffi =...
  9. Masayuki

    Как убрать активацию скрипта при открытом чате

    not sampIsChatInputActive()
  10. Masayuki

    воспроизведение звука при похожем сообщении

    local sampev = require('samp.events') function main() while not isSampAvailable() do wait(0) end sampRegisterChatCommand('stas', function() active = not active sampAddChatMessage('Проигрывание звука при сообщение: '..(active and 'включено' or 'выключено'), -1) end)...
  11. Masayuki

    Вопросы по Lua скриптингу

    %{ffffff%}A: %w+_%w+ ответил вам:\n%{cccccc%}(.+)
  12. Masayuki

    Как поставить задержку в функции?

    local sampev = require 'lib.samp.events' function sampev.onShowTextDraw(id, data) if id == 191 or id == 20150 then lua_thread.create(function() wait(100) sampSendClickTextdraw(id) end) end end
  13. Masayuki

    Нужна помощь/ответ в написании lua sampEvents

    local sampev = require('lib.samp.events') local effil = require('effil') local encoding = require('encoding') local u8 = encoding.UTF8 encoding.default = 'CP1251' function SendWebhook(URL, DATA, callback_ok, callback_error) -- Функция отправки запроса local function asyncHttpRequest(method...
  14. Masayuki

    помощь по imgui

    script_name('Function Compilation') script_author('Hydra Reaper') script_description('Function Compilation') require 'lib.sampfuncs' local sampev = require 'lib.samp.events' local ffi = require 'ffi' local imgui = require 'mimgui' local encoding = require 'encoding' encoding.default = 'CP1251'...