Hello, I recently started learning how to write plugins for Rust on Carbon and I had a problem.
I made a plugin that makes a button that is visible to the player when logging on to the server.
And I made sure that when you click on it, the menu opens.
I did it all right, but there was a problem in the code.
I wrote Cui and a separate hook that shows the menu opening button when loading the plugin and the command that opens the menu.
But the plugin only works if the command is linked to Cui and if you make a separate command that opens only the menu without a button
I hope I explained it clearly)
Well, if anything, a plugin that works but with the wrong code in my opinion:
1.txt
But it's not working, but it seems to me with the right code:
2.txt