Summary

Functions

Replaces Sandbox's cleanup.Add, which every spawn command and every tool calls for the entities it creates, to give those entities to the player before they are added to the cleanup list of the player as usual.

Functions

cleanup.Add(owner, kind, entity)

server plugins/propprotection/plugin/sv_plugin.lua:350

Replaces Sandbox's cleanup.Add, which every spawn command and every tool calls for the entities it creates, to give those entities to the player before they are added to the cleanup list of the player as usual.

Parameters

  • owner Player the player who created the entity
  • kind String cleanup type, such as 'props'
  • entity Entity

Returns

  • Any whatever the original function returns

Defined in