# GM:OnCleanup

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

```lua
boolean GM:OnCleanup( string name )
```

## Açıklama

Oyuncu bir şeyi temizlediğinde çağrılır.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **name**: Temizleme türünün adı

## Dönüş Değerleri

1. [boolean](https://gmod.tr/wiki/boolean) **suppress**: Temizleme bildirimini engellemek için false döndürün.

### Örnek

Oyuncu bir şeyi temizlediğinde bir mesaj yazdırın.

```lua
hook.Add( "OnCleanup", "PrintCleanupMessage", function( name )
     print( "Cleaned up " .. name )
end )
```

**Çıktı:** Cleaned up <type>

- [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/GM:OnCleanup
