Trying to code a button in a widget to execute a server side command?

Hello fellow Devs!

I’ve ran into a snag. I’m trying to code a button in a widget interface that a user can click and it will learn all engrams. (Essentially use the ‘cheat giveengrams’ command). I want this command to execute to the player who clicks the button even though they don’t have admin privileges/enablecheats on. From what I understand it is very hard to get server side commands to work via widgets/interface. Has anyone had any experience in this before?

Here’s a link of the nodes that I have so far:

If someone could point me in the right direction I would greatly appreciate it. Thank you for your time!

Well, first and foremost the reason it’s not working is because UMG does not replicate. Servers have no knowledge of UI’s and vice versa - they know nothing of servers.

Console commands need only execute on the client, and as UI’s don’t exist to the server, telling the event to run on the server means it’s never going to run.

Try and test it with removing the replication, see if it works, if it doesn’t then I can provide much more detailed help - take a look at my ACM mod to get an understanding of what I mean.

-WM