VINDICTA.TOP
Misc · Function
Bunni.fun
ChocoSploit
Cryptic
Potassium
Seliware
SirHurt
Solara
Velocity
Volcano
Volt
Wave
Xeno

messagebox

Displays a Windows message box and returns the user's response.

function messagebox(texttextstringBody text of the dialog.: string, captioncaptionstringTitle bar text.: string, flagsflagsnumberWin32 MB_ flag combination (buttons + icon).: number): numbernumberWin32 IDBUTTON constant of the clicked button.

Usage

Confirm dialog
local MB_OKCANCEL = 0x1
local IDOK = 1
local result = messagebox("Continue?", "Confirm", MB_OKCANCEL)
if result == IDOK then
	print("User clicked OK")
end