[ESX] [Help] How to go back to previous menu?

Hey,

I’m building a ESX menu, like the VRP “k” one.
My question is, how i go back to the previous opened menu?
For example, i have the main menu opened, then i open inventory (by selecting “inventory” on the main menu, not by pressing F2), how to go back to the main menu (previous menu) when i press backspace? (close the inventory)?

Thank you!

(Sorry for the bad english, i’m Brazilian).

idk, try to ask in the esx discord or topic

also why you dont try this menus?



better looking and you can do more things…

I think that the ESX menu is easier to work with.
I’m not very experienced with lua, etc.

Can I ask how you’re getting to the ESX menu ingame? What key do you press to open that? We’ve been having to go to things like inventory directly.

For sure.
I’m using a “onkeypress” to open a menu, like the inventory system, but instead the inventory, it opens a created menu.
When i get at home i can send you the code, if you want.

EDIT: It’s very simple, it’s a GUI that calls the other scripts functions.

I would love to see it if you don’t mind sharing, all these different and independent menus opening separately is awfully clunky and it would be awesome to be able to cut it down to a Master menu.

Thanks!