When I press ESC key, UI dissapears

Hello guys, I have one problem with skinchanger, when I press ESC key, UI dissapears, any method how to fix it?

I don’t see a problem here. On most if not even on all servers, pressing ESC will exit the UI and get you to the pause menu, perhaps. In the coding, you could change the keybinding from ESC to something else like END or NUMPAD 9 and etc lol.

You can just stop them opening the escape menu while that menu is open:

https://runtime.fivem.net/doc/natives/#_0xFE99B66D079CF6BC