autociv_patchApplyN(GuiInterface.prototype, "ScriptCall", function (target, that, args)
{
let [player, name, vargs] = args;
return name in prodmod_exposedFunctions ? that[name](player, vargs) :
target.apply(that, args);
})
Did you forget to declare it somewhere? Can't call it without defining it eg with function keyword?