Ui::activateFrontendMenu: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Does stuff like this:<br>gyazo.com/7fcb78ea3520e3dbc5b2c0c0f3712617<br><br>Example:<br>int GetHash = GET_HASH_KEY('fe_menu_version_corona_lobby');<br>ACTIVATE_FRONTEND_MENU(GetHash, 0, -1);<br><br>BOOL p1 is a toggle to define the game in pause.<br>int p2 is unknown but -1 always works, not sure why though.
Does stuff like this:<br>https://i.imgur.com/dPtwga3.png<br><br>Example:<br>int GetHash = GET_HASH_KEY('fe_menu_version_corona_lobby');<br>ACTIVATE_FRONTEND_MENU(GetHash, 0, -1);<br><br>BOOL p1 is a toggle to define the game in pause.<br>int p2 is unknown but -1 always works, not sure why though.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">ui.activateFrontendMenu(menuhash, Toggle_Pause, p2);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ui.activateFrontendMenu(menuhash, Toggle_Pause, p2);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''menuhash:''' Model hash or name
*'''menuhash:''' Model hash or name
Line 10: Line 10:
==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:UI API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 12:31, 24 February 2018

Does stuff like this:
https://i.imgur.com/dPtwga3.png

Example:
int GetHash = GET_HASH_KEY('fe_menu_version_corona_lobby');
ACTIVATE_FRONTEND_MENU(GetHash, 0, -1);

BOOL p1 is a toggle to define the game in pause.
int p2 is unknown but -1 always works, not sure why though.

Syntax

mp.game.ui.activateFrontendMenu(menuhash, Toggle_Pause, p2);

Required Arguments

  • menuhash: Model hash or name
  • Toggle_Pause: Boolean
  • p2: int

Return value

  • Undefined

Example

// todo

See also