Open in the app to sign in, vote and reply

Help · Open

How to toggle HD icon visibility for normal players?

· · 0 votes · 1 comments

Hello! I'm currently attempting to figure out how to hide the HD admin icon (the button that people click to access the UI) from ordinary players, so it can only be visible to those who have been assigned a different rank. The problem is I'm a little clueless at this, and it clearly isn't as obvious as the last version of HD admin, where I simply toggled it with a Boolean 😅. Any help from my more experienced peers?

Comments

Team ·

Hey! You can go ahead and toggle the HD Icon visibility in your game now, within the settings of your role, you should be able to see the View settings. This should regularly globally sync with other servers when you do so ingame.

image.png

However if you wish to code it in via Studio, navigate over to the specific role module (HD Admin > Config > Roles > Role Here)
And put and modify the following as you wish:

        mayViewAll = false, -- Relates moreso to the Dashboard contents rather than the icon itself. 
	mayViewIcon = "Menu", -- Which Icon is displayed: "Menu", "Commands", or "None"
	mayViewPages = {"Commands", "YouSettings"}, -- Array of page keys this role can view
	mayViewUnavailableCommands = false, -- Self explanatory.