General > Developers Corner

Make XGUI close

(1/1)

jakej78b:
Only if it is open. Possible? How?

Bryantdl7:
What do you mean?

Decicus:
This is in the developer's corner for a reason. Pretty sure Jake is developing an addon or something similar and wants to know if he can close the XGUI using Lua.

Bryantdl7:
just typing the cvar xgui into console closes it so that could work

Stickly Man!:
You can just call xgui.hide(), it should hide it if it's open. Alternatively, you can call RunConsoleCommand( "xgui", "hide" ), which should do the same thing.

Navigation

[0] Message Index

Go to full version