I hope I have chosen the right category here. So my problem is this. I got the resource codem-craft-main. But there is the problem that when you stand at an NPC, it opens the crafter with E and closes it again with ESC, but the cursor is not back in the game and you can’t press any other keys. Since I haven’t found a solution on the internet, I’m trying it myself, but I can’t get it to work. I found the place where the menu should close. Code:
$(document).keydown(function (e) {
if (e.keyCode == 27) {
$('.container').css('display', 'none');
$.post('https://codem-craft/escape');
}
});
Can anyone help me close the menu so that you can continue to play and not not move etc?
If anything else is needed please let me know