Garry's Mod Wiki

Player:AddCleanup

  Player:AddCleanup( string type, Entity ent )

Description

This function is only available in Sandbox and its derivatives.

Adds an entity to the player's clean up list. This uses cleanup.Add internally.

Arguments

1 string type
The Cleanup type for this Entity.
2 Entity ent
The Entity to add.