Ui::hideHudComponentThisFrame: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__TOC__
{{ClientsideJsFunction}}


==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.game.ui.hideHudComponentThisFrame(id);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ui.hideHudComponentThisFrame(componentIndex);</syntaxhighlight>
 
=== Required Arguments ===
=== Required Arguments ===
*'''id:''' int
*'''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_s_function_c}}
{{Ui_functions_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[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