Jump to content

Recommended Posts

I for the life of me can not freaking figure out how to reference scripts/widgets/crafttabs. I need to either use the method CraftTabs:IsCraftingOpen() or even better self(this is CraftTabs).crafting.open.

If you can help me out I'll bake you a digital cookie. <3

Edited by Kam297
tagged solved
56 minutes ago, Mobbstar said:

You can access almost all widgets via player.HUD

EDIT: Try GetPlayer().HUD:IsCraftingOpen()

funny how things work sometimes :p I went and made a component (track crafting) that updates from inside the crafting widget bla bla bla

turns out it was just where is was putting the code was just really really noncompliant, moved this up to a lower level (the method that actually moves your camera rather then the method saying to run the method to move the camera) and tada it returns correctly, :D turning a really ugly fix into 2 lines. thanks a million I was convinced GetPlayer().HUD:IsCraftingOpen() was just calling to somewhere wrong or something.

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...