Garry's Mod Wiki

Tool:ReleaseGhostEntity

  Tool:ReleaseGhostEntity()

Description

Removes any ghost entity created for this tool.

This is called automatically at various points, including when changing tools, holstering the toolgun, therefore it is a very good idea to implement this callback in your custom tool to cleanup any custom ghost entities.