OnShowMainMenu: Difference between revisions
From Onset Developer Wiki
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 () | ||
AddPlayerChat("OnShowMainMenu") | |||
end) | end) | ||
</syntaxhighlight> | </syntaxhighlight> |
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)