I want to make commands where user will type the command and the text he wrote will pop up in multi text box like CSGOs console.
You would have to create the console a bit differently depending if the game is single-player or multiplayer. If it is single-player you could simply use the existing console. It allows you to run functions directly from the command-line, however you can’t really change the command names or hide other unnecessary commands.
Depending on the scale of the console and the number of commands you will need, you can create it using the UMG Widget system. Simply create a widget that you spawn on the screen when pressing the § button. Make sure the screen contains a log of all written commands, a input box and a trigger button. You can then simply create a list of commands stored in the Widget and depending on when you type it will execute that command.
You can use a switch on string and check the console string to see what was written. If the command wasn’t valid you return an error message. If it is valid and matched the query you decided, it triggers a function or an event.
You can do that by pressing the tilda (`) key twice.
Custom commands can be made by creating custom events in the level blueprint, or use the cheat manager