I want to make a reconnect script for Enigma CS2.
When I get vote-kicked from a competitive match, I want to press a button INSIDE the cheat menu (not console, not keyboard hotkey) and instantly rejoin the game.
I want something like this:
- Open cheat menu (INSERT)
- Go to Lua tab
- See a "RECONNECT" button
- Click it → reconnects
What is the correct way to do this with Enigma Lua API?
I tried (with ai*) ui.create and button but got errors.
Please share a working example.
Like this =

I know this is Aimware but I run Enigma 1.5. Please help me.
(my english very bad sorry)
Thanks.
When I get vote-kicked from a competitive match, I want to press a button INSIDE the cheat menu (not console, not keyboard hotkey) and instantly rejoin the game.
I want something like this:
- Open cheat menu (INSERT)
- Go to Lua tab
- See a "RECONNECT" button
- Click it → reconnects
What is the correct way to do this with Enigma Lua API?
I tried (with ai*) ui.create and button but got errors.
Please share a working example.
Like this =

I know this is Aimware but I run Enigma 1.5. Please help me.
(my english very bad sorry)
Thanks.