Jump to content

myst1c

Creator
  • Posts

    50
  • Joined

  • Last visited

Everything posted by myst1c

  1. UP
  2. 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
  3. I've fixed everything. private bool DOORLOOC(BasePlayer player, out Door door) { RaycastHit hit; door = null; if (UnityEngine.Physics.Raycast(player.eyes.HeadRay(), out hit, 3)) { door = hit.GetEntity() as Door; } return door != null; }
  4. The plugin still throws an error He says that there is no Raycast Mistake: 1. Cannot implicitly convert type 'ulong' to 'uint'. An explicit conversion exists (are you missing a cast?) [CS0266] 4. 'PhysicsEffects' does not contain a definition for 'Raycast' [CS0117]nd 'uint' [CS0019] (MyPlugin 32 line 91) nce?) [CS0246]
  5. Hello, I am learning to write plugins from the video "Mike Hawke" And I have a problem in the video "The Hooks" The console writes this error `1. Cannot implicitly convert type 'NetworkableId' to 'uint' [CS0029] 4. 'PhysicsEffects' does not contain a definition for Raycast' [CS0117]nd 'uint' [CS0019] (MyPlugin 32 line 96) nce?) [CS0246] (MyPlugin 32 line 96) Here is the code itself Текстовый документ.txt
2.3m

Downloads

Total number of downloads.

10.6k

Customers

Total customers served.

153k

Files Sold

Total number of files sold.

3.3m

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.