Garry's Mod Wiki

Garry's Mod Wiki

  boolean GM:OnCleanup( string name )

Description

Called when the player cleans up something.

Arguments

1 string name
The name of the cleanup type

Returns

1 boolean suppress
Return false to suppress the cleanup notification.

Example

Print a message when the player cleans up something.

hook.Add( "OnCleanup", "PrintCleanupMessage", function( name ) print( "Cleaned up " .. name ) end )
Output: Cleaned up <type>

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...