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

Function

resetMapInfo

ServerMapsIdentical to MTA:SA

Restores the default world settings: 12:00, weather 0, gravity and world properties.

Syntax

bool resetMapInfo([player thePlayer = nil])

Arguments

thePlayerplayer, optional = nil
For compatibility with existing scripts.

Returns

true on success.

Example

addEventHandler("onResourceStop", resourceRoot, function()
    resetMapInfo()
end)