Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Custom Files > Custom Lua Functions > General Functions > Confirm

Confirm

Shows a Windows message box with an "OK" button and a "Cancel" button for debugging purposes.

This returns true if "OK" was pressed and false if "Cancel" was pressed.

Syntax

Confirm( <message> )
  • message: The message to show in message box.

Examples

local Result = Confirm("Something, something, skulls on Barts car.") 

if Result then
	-- User clicked OK
else
	-- User clicked Cancel
end

Notes

No additional notes.

Version History

Unknown Version

Added this function.

Donut Team © 2023 · v4.0