# hook.Remove

- **Ortam:** İstemci, Sunucu, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/hook.Remove
- **Çeviri tarihi:** 2025-09-08

```lua
hook.Remove( string eventName, any identifier )
```

## Açıklama

Belirtilen olayın, sağlanan tanımlayıcıya sahip kancasını kaldırır.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **eventName**: Olayın adı.
2. [any](https://gmod.tr/wiki/any) **identifier**: Kaldırılacak kancanın benzersiz tanımlayıcısı, genellikle bir metindir (string).

### Örnek

Oyuncunun ekranını 15 saniyeliğine karartır.

```lua
hook.Add( "HUDPaint", "my_hook_identifier", function()

	surface.SetDrawColor( 0, 0, 0, 150 )
	surface.DrawRect( 0, 0, ScrW(), ScrH() )

end )

timer.Simple( 15, function()

	hook.Remove( "HUDPaint", "my_hook_identifier" )

end )
```

**Çıktı:** Kanca kaldırıldıktan sonra, karartma efekti artık görünmez.

- [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/hook.Remove
