Trying to call a js function from lua? Is it even possible?

,

Is it even possible?

The function I’m trying to call from lua…

function ShowAlert() {
        switch(event.data.action) {
            case 'display':
                //console.log("We've been called for this one")
                alerts.BaseAlert(event.data.style, event.data.info)
            break;
        }
    };

Use exports

Like this?
exports[‘FileName’]:ShowAlert()

??

Keep getting an error " attempt to call a string value "

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.