Player.AddCleanup

From GMod Wiki

Jump to: navigation, search
Gamemode Function: Player.AddCleanup
Player.AddCleanup is a function that is defined in the Sandbox Gamemode and its derivatives.
Function
Syntax Player:AddCleanup( String type, Entity ent )
Description:
Add an entity to the players clean up list.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.AddCleanup]Player.AddCleanup [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionAdds a rope under the category "balloon" to ply's cleanup list.
Used onNewerServer.png
Code
ply:AddCleanup( "balloon", rope )
OutputWhen the player presses the cleanup button for "balloon", the rope will be deleted.

Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox