Ui::restartFrontendMenu: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
Before using this native click the native above and look at the decription.<br><br>Example:<br>int GetHash = Function.Call&lt;int&gt;(Hash.GET_HASH_KEY, 'fe_menu_version_corona_lobby');<br>Function.Call(Hash.ACTIVATE_FRONTEND_MENU, GetHash, 0, -1);<br>Function.Call(Hash.RESTART_FRONTEND_MENU(GetHash, -1);<br><br>This native refreshes the frontend menu.<br><br>p1 = Hash of Menu<br>p2 = Unknown but always works with -1.
Before using this native click the native above and look at the decription.<br><br>Example:<br>int GetHash = Function.Call&lt;int&gt;(Hash.GET_HASH_KEY, 'fe_menu_version_corona_lobby');<br>Function.Call(Hash.ACTIVATE_FRONTEND_MENU, GetHash, 0, -1);<br>Function.Call(Hash.RESTART_FRONTEND_MENU(GetHash, -1);<br><br>This native refreshes the frontend menu.<br><br>p1 = Hash of Menu<br>p2 = Unknown but always works with -1.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">ui.restartFrontendMenu(menuHash, p1);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ui.restartFrontendMenu(menuHash, p1);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''menuHash:''' Model hash or name
*'''menuHash:''' Model hash or name
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Ui_function_c}}
{{Ui_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:33, 6 May 2017

Before using this native click the native above and look at the decription.

Example:
int GetHash = Function.Call<int>(Hash.GET_HASH_KEY, 'fe_menu_version_corona_lobby');
Function.Call(Hash.ACTIVATE_FRONTEND_MENU, GetHash, 0, -1);
Function.Call(Hash.RESTART_FRONTEND_MENU(GetHash, -1);

This native refreshes the frontend menu.

p1 = Hash of Menu
p2 = Unknown but always works with -1.

Syntax

mp.game.ui.restartFrontendMenu(menuHash, p1);

Required Arguments

  • menuHash: Model hash or name
  • p1: int

Return value

  • Undefined

Example

// todo

See also