game.CleanUpMap

From GMod Wiki

Jump to: navigation, search
Function
Syntax game.CleanUpMap( Boolean dontSendToClients, Table ExtraFilters )
Where is this used?
Description:
Reverts the map back to how it was when it was loaded
Returns: nil
Part of Library: Game
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Game.CleanUpMap]Game.CleanUpMap [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis example will reset the map to its original state when the console command is run.
Used onNewerServer.png
Code
concommand.Add("clean_up", function(ply)
	if(not ply:IsAdmin()) then
	    return;
	end
 
	game.CleanUpMap();
end);
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox