Ui::hideHudComponentThisFrame: Difference between revisions

From RAGE Multiplayer Wiki
mNo edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
{{ClientsideJsFunction}}
 
{{JSContainer|
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.game.ui.hideHudComponentThisFrame(componentIndex);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ui.hideHudComponentThisFrame(componentIndex);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''componentIndex:''' int
=== Components ===
*'''componentIndex:''' int (Full list: [[HUD Components|HUD Components list]])
*'''componentIndex:''' int (Full list: [[HUD Components|HUD Components list]])
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
==Example==
 
== Example ==
{{ClientsideCode|
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
//Disables the HUD
mp.game.ui.hideHudComponentThisFrame(0);
</syntaxhighlight>
</syntaxhighlight>
}}
==See also==
==See also==
{{Ui_functions_c}}
{{Ui_functions_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:UI API]]
[[Category:UI API]]

Revision as of 21:02, 21 November 2019

Client-Side
Function

 JavaScript



{{JSContainer|

Syntax

mp.game.ui.hideHudComponentThisFrame(componentIndex);

Required Arguments

  • componentIndex: int

Components


Return value

  • Undefined

Example

Client-Side
//Disables the HUD
mp.game.ui.hideHudComponentThisFrame(0);

See also