Garry's Mod Wiki

Revision Difference

Player:AddCleanup#560260

<function name="AddCleanup" parent="Player" type="classfunc"> <description>Adds an entity to the player's clean up list.</description> <description><note>This function is only available in Sandbox and its derivatives.</note>Adds an entity to the player's clean up list. This uses <page>cleanup.Add</page> internally.</description> <realm>Shared</realm> <file line="99-L103">gamemodes/sandbox/gamemode/player_extension.lua</file>⤶ <args> <arg name="type" type="string">Cleanup type</arg>⤶ <arg name="ent" type="Entity">Entity to add</arg>⤶ <arg name="type" type="string">The Cleanup type for this Entity.</arg>⤶ <arg name="ent" type="Entity">The Entity to add.</arg>⤶ </args> </function>⤶ </function>