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 ()
     -- code
     AddPlayerChat("OnShowMainMenu")
end)
end)
</syntaxhighlight>
</syntaxhighlight>

Revision as of 12:25, 2 September 2020

OnShowMainMenu

Type: Event
Context: Client
Introduced: v1.0

Description

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

Syntax

OnShowMainMenu()

Example

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

See also