Ui::hideHudComponentThisFrame: Difference between revisions

From RAGE Multiplayer Wiki
mNo edit summary
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
__NOTOC__
__TOC__
 
{{ClientsideJsFunction}}
 
==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 (Full list: [[HUD Components|HUD Components list]])
*'''componentIndex:''' int
 
=== Components ===
*'''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]]

Latest revision as of 08:27, 23 November 2019

Client-Side
Function

 JavaScript



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