# numpad

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

Numpad modülü, bir tuşa basıldığında veya bırakıldığında fonksiyonları çalıştırmanıza olanak tanır.

## Metotlar

numpad.[Activate](https://gmod.tr/wiki/numpad.Activate)( [Player](https://gmod.tr/wiki/Player) ply, [number](https://gmod.tr/wiki/number) key, [boolean](https://gmod.tr/wiki/boolean) isButton = false )

Oyuncuya ait olan numpad tuşunu etkinleştirir.

numpad.[Deactivate](https://gmod.tr/wiki/numpad.Deactivate)( [Player](https://gmod.tr/wiki/Player) ply, [number](https://gmod.tr/wiki/number) key, [boolean](https://gmod.tr/wiki/boolean) isButton = false )

Oyuncuya ait olan numpad tuşunu devre dışı bırakır.

[boolean](https://gmod.tr/wiki/boolean) numpad.[FromButton](https://gmod.tr/wiki/numpad.FromButton)()

`numpad.Register` ile eklenmiş bir fonksiyon sırasında, `numpad.Activate` fonksiyonunun üçüncü argümanı `true` olduğunda `true` döndürür. Bu durum, bir numpad fonksiyonunun, kullanılan bir `button` SENT (Komut Dosyalı Varlık) tarafından tetiklenmesiyle oluşur.

[number](https://gmod.tr/wiki/number) numpad.[OnDown](https://gmod.tr/wiki/numpad.OnDown)( [Player](https://gmod.tr/wiki/Player) ply, [number](https://gmod.tr/wiki/number) key, [string](https://gmod.tr/wiki/string) name, ... )

`numpad.Register` ile kaydedilmiş bir fonksiyonu, bir oyuncu belirtilen tuşa bastığında çağırır. Tuş bırakma eylemi için bakınız: `numpad.OnUp`

[number](https://gmod.tr/wiki/number) numpad.[OnUp](https://gmod.tr/wiki/numpad.OnUp)( [Player](https://gmod.tr/wiki/Player) ply, [number](https://gmod.tr/wiki/number) key, [string](https://gmod.tr/wiki/string) name, ... )

`numpad.Register` ile kaydedilmiş bir fonksiyonu, bir oyuncu belirtilen tuşu bıraktığında çağırır. Tuşa basma eylemi için bakınız: `numpad.OnDown`

numpad.[Register](https://gmod.tr/wiki/numpad.Register)( [string](https://gmod.tr/wiki/string) id, [function](https://gmod.tr/wiki/function) func )

`numpad.OnDown` ve `numpad.OnUp` ile kullanılmak üzere bir numpad kütüphane eylemi kaydeder.

numpad.[Remove](https://gmod.tr/wiki/numpad.Remove)( [number](https://gmod.tr/wiki/number) ID )

`numpad.OnUp` veya `numpad.OnDown` tarafından eklenen bir fonksiyonu kaldırır.

numpad.[Toggle](https://gmod.tr/wiki/numpad.Toggle)( [Player](https://gmod.tr/wiki/Player) ply, [number](https://gmod.tr/wiki/number) key )

Tuşun mevcut durumuna bağlı olarak `numpad.Activate` veya `numpad.Deactivate` fonksiyonunu çalıştırır.

- [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/numpad
