Ui::restartFrontendMenu: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
No edit summary
 
Line 14: Line 14:
{{Ui_s_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 14:49, 20 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