OnShowMainMenu: Difference between revisions

From Onset Developer Wiki
Chloe (talk | contribs)
mNo edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:


{{FuncSyntax|OnShowMainMenu()}}
{{FuncSyntax|OnShowMainMenu()}}
{{FuncNoParam}}


== Example ==
== Example ==
<syntaxhighlight lang="Lua">
<syntaxhighlight lang="Lua">
AddEvent("OnShowMainMenu", function ()
AddEvent("OnShowMainMenu", function ()
     -- code
     AddPlayerChat("OnShowMainMenu")
end)
end)
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 10:38, 22 January 2021

OnShowMainMenu

Type: Event
Context: Client
Introduced: v1.0

Description

This function is called every time a player hides the main menu.

Syntax

OnShowMainMenu()
  • This function has no parameters.

Example

AddEvent("OnShowMainMenu", function ()
    AddPlayerChat("OnShowMainMenu")
end)

See also