imgui пуш уведомление он скорей всего про этоты ебанутый? какое именно сообщение?
Как раз вчера думал сделать сделать такое для mimguiПосмотреть вложение 153189
ты имеешь ввиду такие уведомления как у меня в правом углу?
function ShowMessage(text, title, style)
local messageboxathread = effil.thread(function(text, title, style)
local ffi = require('ffi')
ffi.cdef("int MessageBoxA( void* hWnd, const char* lpText, const char* lpCaption, unsigned int uType); ")
ffi.C.MessageBoxA(nil, text, title, style and (style + 327680) or 327680)
end)(text, title, style)
lua_thread.create(function()
while true do
wait(0)
local status, err = messageboxathread:status()
if not err and status == "completed" then
return
end
end
end)
end
Lua:function ShowMessage(text, title, style) local messageboxathread = effil.thread(function(text, title, style) local ffi = require('ffi') ffi.cdef("int MessageBoxA( void* hWnd, const char* lpText, const char* lpCaption, unsigned int uType); ") ffi.C.MessageBoxA(nil, text, title, style and (style + 327680) or 327680) end)(text, title, style) lua_thread.create(function() while true do wait(0) local status, err = messageboxathread:status() if not err and status == "completed" then return end end end) end
[20:12:24.396868] (error) Leader Tools: D:\My Games\GTA bandana\moonloader\LeaderTools.lua:183: attempt to index global 'effil' (a nil value)
stack traceback:
D:\My Games\GTA bandana\moonloader\LeaderTools.lua: in function 'ShowMessage'
D:\My Games\GTA bandana\moonloader\LeaderTools.lua:136: in function <D:\My Games\GTA bandana\moonloader\LeaderTools.lua:120>
[20:12:24.397370] (error) Leader Tools: Script died due to an error. (1E5C595C)
Тут тебе нужно подключить effil, в способе #Northn'а не нужно, юзай егоLua:[20:12:24.396868] (error) Leader Tools: D:\My Games\GTA bandana\moonloader\LeaderTools.lua:183: attempt to index global 'effil' (a nil value) stack traceback: D:\My Games\GTA bandana\moonloader\LeaderTools.lua: in function 'ShowMessage' D:\My Games\GTA bandana\moonloader\LeaderTools.lua:136: in function <D:\My Games\GTA bandana\moonloader\LeaderTools.lua:120> [20:12:24.397370] (error) Leader Tools: Script died due to an error. (1E5C595C)
насчет этого сниппета, там при нажатии на кнопку разворачивается игра и все процессы скрипта останавливаются пока окно активно, поэтому мой способ удобнееТут тебе нужно подключить effil, в способе #Northn'а не нужно, юзай его
мне это лучше!!!! спасибо всем!там при нажатии на кнопку разворачивается игра и все процессы скрипта останавливаются пока окно активно