I have successfully set up a HUD with the CuiHelper, but it seems that players will not be able to leave the server or move items in their inventory. Is there a common solution for this? I have been looking through other plugins and it seems like none of them deal with the player pushing TAB only when they start to loot someone. It also seems like many of the plugins I have looked at don't deal with the ESC menu and I'm not sure why they work. I believe I will need to detect when they push ESC and destroy the UI, but I'm unsure how to detect player input.
Solved CuiHelper GUI
Discussion in 'Rust Development' started by CombatTag, Aug 3, 2016.
-
Wulf Community Admin
There's no way to really detect keys that aren't sent to the server. The only input that is sent to the server is ones used for communicating with it, which you can hook into using OnPlayerInput. Most of the menu events never get sent to the server either, so you can't always detect those.
-
So how does this plugin that you made work? It is just that it doesn't go over the entire screen so they are able to click on the menu options?
-
Wulf Community Admin
Which plugin? Most CUI elements only cover the portion they are made for, anchored between specific points. -
ZLevels Remastered for Rust | Oxide
Edit: Here is a screenshot of what I'm doing currently. Steam Community :: ScreenshotLast edited by a moderator: Aug 3, 2016 -
Wulf Community Admin
I didn't write that plugin, I just posted a fix for it, so I'm not that familiar with it yet.
When are you wanting that info to display? If you only want it while they are on that screen, you'd want to make sure you are using the Hud parent (should be the default in the last few Oxide snapshots.) -
Thanks for the help I didn't realize there was different types I was using Overlay and changing it to Hud fixed it.
