Description
Called when the player cleans up something.
Arguments
1 string nameThe name of the cleanup type
Returns
1 boolean suppressReturn 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>