OnShowMainMenu: Difference between revisions
From Onset Developer Wiki
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 () | ||
AddPlayerChat("OnShowMainMenu") | |||
end) | end) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{GameClientEvents}} |
Latest revision as of 10:38, 22 January 2021
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)