# cleanup

- **İngilizce aslı:** https://wiki.facepunch.com/gmod/cleanup
- **Çeviri tarihi:** 2025-09-08

cleanup kütüphanesi, Spawn menüsünün (varsayılan Q) Utilities sekmesindeki temizleme düğmelerine basıldığında özel varlıklara (entity) ne olacağını kontrol etmenizi sağlar.

## Metotlar

cleanup.[Add](https://gmod.tr/wiki/cleanup.Add)( [Player](https://gmod.tr/wiki/Player) pl, [string](https://gmod.tr/wiki/string) type, [Entity](https://gmod.tr/wiki/Entity) ent )

Bir varlığı (entity) bir oyuncunun temizleme listesine ekler.

cleanup.[CC_AdminCleanup](https://gmod.tr/wiki/cleanup.CC_AdminCleanup)( [Player](https://gmod.tr/wiki/Player) pl, [string](https://gmod.tr/wiki/string) command, [table](https://gmod.tr/wiki/table) args )

Bu dahili olarak kullanılır - kullanabiliyor olsanız da muhtemelen kullanmamalısınız. gmod_admin_cleanup konsol komutu tarafından çağrılır. Yöneticilerin (admin) sunucuyu temizlemesine olanak tanır.

cleanup.[CC_Cleanup](https://gmod.tr/wiki/cleanup.CC_Cleanup)( [Player](https://gmod.tr/wiki/Player) pl, [string](https://gmod.tr/wiki/string) command, [table](https://gmod.tr/wiki/table) args )

Bu dahili olarak kullanılır - kullanabiliyor olsanız da muhtemelen kullanmamalısınız. gmod_cleanup konsol komutu tarafından çağrılır. Oyuncuların kendi proplarını temizlemesine olanak tanır.

cleanup.[GetList](https://gmod.tr/wiki/cleanup.GetList)()

Temizleme listesini alır.

[table](https://gmod.tr/wiki/table) cleanup.[GetTable](https://gmod.tr/wiki/cleanup.GetTable)()

Temizleme türlerinin tablosunu (table) alır.

cleanup.[Register](https://gmod.tr/wiki/cleanup.Register)( [string](https://gmod.tr/wiki/string) type )

Yeni bir temizleme türü kaydeder.

[boolean](https://gmod.tr/wiki/boolean) cleanup.[ReplaceEntity](https://gmod.tr/wiki/cleanup.ReplaceEntity)( [Entity](https://gmod.tr/wiki/Entity) from, [Entity](https://gmod.tr/wiki/Entity) to )

Temizleme modülündeki bir varlığı (entity) bir başkasıyla değiştirir. Büyük olasılıkla aynı varlıklarla undo.ReplaceEntity fonksiyonunu da çağırmak isteyeceksiniz.

cleanup.[UpdateUI](https://gmod.tr/wiki/cleanup.UpdateUI)()

İstemcilerin (client) temizleme menüsünü yeniden doldurur.

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/cleanup
