Jump to content

How to hide crafting hud?

Recommended Posts

I don't know why it's hard to access an HUD root's children but here it is.


local _G = GLOBAL
local GetPlayer = function() return _G.ThePlayer end
local Controls = GetPlayer().HUD.controls


EDIT: Changed code as been said by @bizziboi


Edited by eZeth
Link to comment
Share on other sites

3 minutes ago, bizziboi said:

I think you don't have to iterate the children? Can't you just say GetPlayer().HUD.controls?

Oh? I thought since its under HUD.root it should be accessed from root and not from HUD. And it is lowercased?

Anyways. I'll just edit the code to reflect what you said. Thanks!

Link to comment
Share on other sites

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

  • Create New...