OnShowMainMenu: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
Created page with "{{Info|Event|Client|1.0}} {{FuncDescription|This function is called every time a player hides the main menu.}} {{FuncSyntax|OnShowMainMenu()}} == Example == <syntaxhighligh..."
 
No edit summary
 
(2 intermediate revisions by 2 users 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>


{{RelatedFunctions}}
{{RelatedFunctions}}
[[Template:ClientEvents]]
{{GameClientEvents}}

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