Skip to content
Saiko

messagebox

Shows a Windows message box and returns which button was pressed.

Signature

luau
messagebox(text: string, caption: string, flags: number): number

Parameters

textstring

The message in the box.

captionstring

The title of the box.

flagsnumber

The Windows message box flags. 0 shows a single OK button.

Returns

number

Note

Example

luau
local pressed = messagebox("Continue?", "Saiko", 4) -- 4 shows Yes and No
print(pressed == 6 and "yes" or "no")