OnHideMainMenu: 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|OnHideMainMenu()}} == Example == <syntaxhighligh..."
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 8: Line 8:
<syntaxhighlight lang="Lua">
<syntaxhighlight lang="Lua">
AddEvent("OnHideMainMenu", function ()
AddEvent("OnHideMainMenu", function ()
     -- code
     AddPlayerChat("OnHideMainMenu")
end)
end)
</syntaxhighlight>
</syntaxhighlight>


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

Latest revision as of 12:25, 2 September 2020

OnHideMainMenu

Type: Event
Context: Client
Introduced: v1.0

Description

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

Syntax

OnHideMainMenu()

Example

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

See also