ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setMapEnabled

Function

setMapEnabled

ServerMiscellaneousTrilogy Hub only

Enables or disables the ESC map for the whole server. For a single player use setPlayerMapEnabled.

Syntax

bool setMapEnabled(bool enabled)

Arguments

enabledbool
true = map available.

Returns

true on success.

Example

Hide and seek mode: no map.

addEventHandler("onResourceStart", resourceRoot, function()
    setMapEnabled(false)
end)
addEventHandler("onResourceStop", resourceRoot, function()
    setMapEnabled(true)
end)

See also