# GM:OnUndo

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

```lua
boolean GM:OnUndo( string name, string customText )
```

## Açıklama

Oyuncu bir şeyi geri aldığında çağrılır.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **name**: Geri alma eyleminin adı
2. [string](https://gmod.tr/wiki/string) **customText**: Geri alma için özel metin, [undo.SetCustomUndoText](https://gmod.tr/wiki/undo.SetCustomUndoText) tarafından ayarlanır

## Dönen Değerler

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

### Örnek

Oyuncu bir şeyi geri aldığında bir mesaj yazdırın.

```lua
hook.Add( "OnUndo", "CustomUndoText", function( name, customText )
     if customText ~= nil then
          MsgN( "Undone " .. customText )
     else
          MsgN( "Undone " .. name )
     end
end )
```

**Çıktı:** Undone <eylem>

- [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:OnUndo
