Jump to content
  • 0

Question about cui in plugins


myst1c

Question

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

Edited by myst1c
.
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
1.3m

Downloads

Total number of downloads.

6.5k

Customers

Total customers served.

95.8k

Files Sold

Total number of files sold.

1.9m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.