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

Function

forcePlayerMap

ServerPlayersIdentical to MTA:SA

Forces the map open for a player (or everyone: root).

Syntax

bool forcePlayerMap(player thePlayer, bool forceOn)

Arguments

thePlayerplayer
A player or root.
forceOnbool
true forces it.

Returns

true on success.

Example

forcePlayerMap(player, true)

Notes

State for scripts. The server stores this setting and returns it from isPlayerMapForced; the game itself does not apply it yet.

See also