MZ Disable mouse clicks temporarily (SRD's HUD Maker)

Hello everyone!
I have some clickable images (SRD's Hud Maker) on my screen that call an event upon clicking them. The event triggers a text message to appear on the screen for 2 sec. Now I don't want the player to be able to click other images within that amount of time. So is there a script call that temporarily disables/enables mouse clicks?

Original thread: https://forums.rpgmakerweb.com/threads/disable-mouse-clicks-temporarily-srds-hud-maker.138178/