Garry's Mod Wiki

Garry's Mod Wiki

The cleanup library allows you to control what happens to custom entities when the clean-up buttons are pressed in the Utilities tab of the Spawn menu (default Q).

Methods

cleanup.Add( Player pl, string type, Entity ent )
Adds an entity to a player's cleanup list.
cleanup.CC_AdminCleanup( Player pl, string command, table args )
Internal: This is used internally - although you're able to use it you probably shouldn't. Called by the gmod_admin_cleanup console command. Allows admins to clean up the server.
cleanup.CC_Cleanup( Player pl, string command, table args )
Internal: This is used internally - although you're able to use it you probably shouldn't. Called by the gmod_cleanup console command. Allows players to cleanup their own props.
cleanup.GetList()
Gets the cleanup list.
table cleanup.GetTable()
Gets the table of cleanup types.
cleanup.Register( string type )
Registers a new cleanup type.
boolean cleanup.ReplaceEntity( Entity from, Entity or nil to )
Replaces one entity in the cleanup module with another. You very likely want to call undo.ReplaceEntity with the same entities as well.
cleanup.UpdateUI()
Repopulates the clients cleanup menu.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...