Difference between revisions of "SendShowOrHideAllUIEvent"

From Nomad DB
(Adde SendShowOrHideAllUIEvent page)
 
Line 19: Line 19:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
[[Category:WD2 Lua]] [[Category: WD2 Entity]] [[Category: WD2 Player]]
+
[[Category:WD2 UI]]

Revision as of 14:42, 15 April 2020

Toggle the HUD visibility state

Syntax

SendShowOrHideAllUIEvent(visible)
  • visible (number): 0 to disable and 1 to enable the HUD
  • Returns (boolean): Wether the call has been successful or not

Example

The example below will disable my HUD

SendShowOrHideAllUIEvent(0)

The example below will enable my HUD

SendShowOrHideAllUIEvent(1)