ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientPlayerMapToggle

Event

onClientPlayerMapToggle

ClientWorldTrilogy Hub only

The game map was opened or closed: from the ESC menu, by forcePlayerMap or with the ESC key.

Handler

addEventHandler("onClientPlayerMapToggle", root, function(visible) ... end)

Parameters

visiblebool
true = the map is open.

Source

source is the local player.

Example

addEventHandler("onClientPlayerMapToggle", localPlayer, function(visible)
    showChat(not visible)
end)

See also