Ui::activateFrontendMenu: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
No edit summary
Line 15: Line 15:
{{Ui_s_function_c}}
{{Ui_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:UI API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 15:01, 20 May 2017

Does stuff like this:
gyazo.com/7fcb78ea3520e3dbc5b2c0c0f3712617

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