OnShowMainMenu: Difference between revisions
From Onset Developer Wiki
mNo edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
<syntaxhighlight lang="Lua"> | <syntaxhighlight lang="Lua"> | ||
AddEvent("OnShowMainMenu", function () | AddEvent("OnShowMainMenu", function () | ||
AddPlayerChat("OnShowMainMenu") | |||
end) | end) | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 12:25, 2 September 2020
Description
This function is called every time a player hides the main menu.
Syntax
OnShowMainMenu()
Example
AddEvent("OnShowMainMenu", function ()
AddPlayerChat("OnShowMainMenu")
end)