debug = true function debug_print(message) if debug == true then Printf(tostring(message)) end end function main(display_handle, args) if args then timeout = 5 timeout, seperator, message = args.partition(";") local messageTable = { title = "Notification!", message = tostring(message), timeout = tonumber(timeout*1000), timeoutResultCancel = false, timeoutResultID = 99, } local returnTable = MessageBox(messageTable) else Printf('You must atleast specify your notification message. You can do this by running the following command: Plugin "custom notifications" "5;Hello this is a notification!"\nThis will create a message with a duration of 5 seconds.') end end return main