Garry's Mod Wiki

cleanup

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

void cleanup.Add( Player pl, string type, Entity ent )
Adds an entity to a player's cleanup list.
void cleanup.CC_AdminCleanup( Player pl, string command, table args )
Called by the `gmod_admin_cleanup` console command. Allows admins to clean up the server.
void cleanup.CC_Cleanup( Player pl, string command, table args )
Called by the `gmod_cleanup` console command. Allows players to cleanup their own props.
void cleanup.GetList()
Gets the cleanup list.
table cleanup.GetTable()
Gets the table of cleanup types.
void cleanup.Register( string type )
Registers a new cleanup type.
boolean cleanup.ReplaceEntity( Entity from, Entity to )
Replaces one entity in the cleanup module with another
void cleanup.UpdateUI()
Repopulates the clients cleanup menu

Page Links


Special Pages


Wikis

?

Render Time: 30ms

Session 0
DB GetPage 2
Generate Html 2
SaveChanges 12
Render Body 0
Render Sidebar 12