in your smbx2 folder, within "data/scripts/base" you can find the libraries "hudoverride.lua" and "hudoverride2.lua".
load either (depending on which version you want) into your level's (or episode's) luna.lua file as described
here.
sadly, the library itself is not documented on codehaus, but enjl describes some basic usage in
this thread