- Documentation
- Server functions
- resetMapObjects
Function
resetMapObjects
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)