Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
Тут добавил функцию на сохранение логов в файл для примера, а как грабать сами логи можешь посмотреть в функции sampev.onServerMessage
local sampev = require("samp.events")
logfile = "lavkaLogs"
function save_log(logtext, filename)
local current_date = os.date("%d-%m-%Y")
local...
Попробуй так:
function execute_linux_command(command, temp_file)
os.execute(command .. ' > '..temp_file)
wait(100)
local file = io.open(temp_file, "r")
local result = file:read('*all')
file:close()
return result
end
255 строка, вы пропустили end
local q = require 'lib.samp.events'
script_name("NewLogo by Clyde Mods")
script_description('https://www.blast.hk/members/437308/')
local inicfg = require 'inicfg'
local logo = 1
local act = false
if not doesDirectoryExist("moonloader/config") then...
Делаешь глобальную переменную к примеру "Wait = false"
Делаешь в отдельном потоке ожидание выполненного действия "пока я нажму какую нибудь кнопку или введу команду", и после выполнения делаешь Wait = true
Пример
local samp = require 'samp.events'
function samp.onServerMessage(color, text)...
wait должен вызыватся только из потока.
Нужно добавить новый поток используя пример ниже
lua_thread.create(function()
--code
end)
script_name("post")
script_version("1.1")
local imgui = require 'mimgui'
inicfg = require 'inicfg'
aut = '{6196ff} Andrey_Pilov'
pref = '{0d5eff}[TP Post]...
Быть может твой агрумент arg является типом string, а ты его сравниваешь с типом int?
Иными словами: 1 ≠ '1'
sampRegisterChatCommand("tp", function(arg)
if arg == '1' then
setCharCoordinates(PLAYER_PED, 1725, 1662, 307)
end
if arg == '2' then...