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

Function

resetMapObjects

ServerObjectsTrilogy Hub only

Puts map objects back in their original places for all players (e.g. cleaning up after a riot). Takes one key from getMapObjects, a list of keys, or nothing - then all of them.

Syntax

bool resetMapObjects([string/table keys = nil])

Arguments

keysstring/table, optional = nil
A key, a table of keys, or nothing.

Returns

true when something was restored.

Example

setTimer(function() resetMapObjects() end, 30 * 60 * 1000, 0)

See also