For reference:
JavaScript:
PluginManager.callCommand(self, pluginName, commandName, args);
self is a Game_Interpreter reference;
pluginName is the name of the plugin (string) without the ".js" extension;
commandName is the name of the command (string);
args is an object in the form {paramName1: value, paramName2: value, ...}.
So in your case, try something like this:
JavaScript:
const self = $gameParty.inBattle() ? $gameTroop._interpreter : $gameMap._interpreter;
const pluginName = 'SRD_HUDMakerUltra';
const commandName = 'Set HUD Visibility';
const args = { "Visible?": "true" };
PluginManager.callCommand(self, pluginName, commandName, args);
If you're using this in a
Game_Interpreter context, e.g. a
Script command in an event, then the first line can be much simpler:
Many plugin commands will not require a valid interpreter reference, but it's good practice to stick one in there regardless.