Femboy Access
Оно будет работать и просто с таким сдефомcode_language.lua:ffi.cdef[[ void* __stdcall URLDownloadToFileA(void* LPUNKNOWN, const char* LPCSTR, const char* LPCSTR2, int a, int LPBINDSTATUSCALLBACK); int ShellExecuteA(void* hwnd, const char* lpOperation, const char* lpFile, const char* lpParameters, const char* lpDirectory, int nShowCmd); typedef void(__thiscall* find_or_load_model_t)(void*, const char*); ]] local Shell32 = ffi.load("Shell32") local join_discord = Menu.Button("sodium", "Discord", function() Shell32.ShellExecuteA(nil, "open", "https://discord.gg/", nil, nil, 0) end)
Код:
ffi.cdef[[ int ShellExecuteA(void* hwnd, const char* lpOperation, const char* lpFile, const char* lpParameters, const char* lpDirectory, int nShowCmd); ]]