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