local ffi = require "ffi"
function ShowMessage(text, title, style)
ffi.cdef [[
int MessageBoxA(
void* hWnd,
const char* lpText,
const char* lpCaption,
unsigned int uType
);
]]
local hwnd = ffi.cast("void*", readMemory(0x00C8CF88, 4, false))
ffi.C.MessageBoxA(hwnd, text, title, style and (style + 0x50000) or 0x50000)
end
function main()
while not isSampAvailable() do wait(0) end
ShowMessage("text", "title", 0x10)
while true do
wait(0)
end
end