cleanup.Register

From GMod Wiki

Jump to: navigation, search
Function
Syntax cleanup.Register( String type )
Where is this used?
Description:
Register a new clean up type in the cleanup list.
Returns: nil
Part of Library: cleanup
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Cleanup.Register]Cleanup.Register [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionAdds a button to clean up "cameras".
Used onNewerShared.png
Code
cleanup.Register( "cameras" )
OutputAdds a button to clean up "cameras" in the admin's and user's cleanup menu.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox