# concommand

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

concommand kütüphanesi, istemci (client) ve sunucu (server) arasında (temel) bilgi ve olayları ağ üzerinden iletmek için kullanılabilecek konsol komutları oluşturmak için kullanılır.

## Metotlar

concommand.[Add](https://gmod.tr/wiki/concommand.Add)( [string](https://gmod.tr/wiki/string) name, [function](https://gmod.tr/wiki/function) callback, [function](https://gmod.tr/wiki/function) autoComplete = nil, [string](https://gmod.tr/wiki/string) helpText = nil, [number](https://gmod.tr/wiki/number) or [table](https://gmod.tr/wiki/table) flags = 0 )

İsteğe bağlı otomatik tamamlama fonksiyonu ve yardım metni ile lua'da bir fonksiyon çalıştıran bir konsol komutu oluşturur. Eğer konsol komutu daha önce farklı bir alanda (`realm`) (sunucudan kaldırılan bir komutu istemcide oluşturma ve tam tersi) `concommand.Remove` ile kaldırıldıysa bu işlem başarısız olur. Sorun Takipçisi: 1183

[table](https://gmod.tr/wiki/table) concommand.[AutoComplete](https://gmod.tr/wiki/concommand.AutoComplete)( [string](https://gmod.tr/wiki/string) command, [string](https://gmod.tr/wiki/string) arguments )

Bu dahili olarak kullanılır - kullanabiliyor olsanız da muhtemelen kullanmamalısınız. Oyun motoru tarafından bir konsol komutunun otomatik tamamlama fonksiyonunu çağırmak ve döndürülen seçenekleri almak için kullanılır.

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

`concommand.Add` ile oyuna eklenmiş olan tüm konsol komutu geri çağrılarının (`callback`) ve otomatik tamamlama fonksiyonlarının tablolarını döndürür.

concommand.[Remove](https://gmod.tr/wiki/concommand.Remove)( [string](https://gmod.tr/wiki/string) name )

Bir konsol komutunu kaldırır. Eğer konsol komutu daha önce bu fonksiyon ile farklı bir alanda (`realm`) (sunucudan kaldırılan bir komutu istemcide oluşturma ve tam tersi) kaldırıldıysa `concommand.Add` başarısız olur. Sorun Takipçisi: 1183

[boolean](https://gmod.tr/wiki/boolean) concommand.[Run](https://gmod.tr/wiki/concommand.Run)( [Player](https://gmod.tr/wiki/Player) ply, [string](https://gmod.tr/wiki/string) cmd, [any](https://gmod.tr/wiki/any) args, [string](https://gmod.tr/wiki/string) argumentString )

Bu dahili olarak kullanılır - kullanabiliyor olsanız da muhtemelen kullanmamalısınız. `RunConsoleCommand` veya `Player:ConCommand`'ı arıyor olabilirsiniz. Oyun motoru tarafından bir konsol komutunun geri çağırma (`callback`) fonksiyonunu çalıştırmak için kullanılır. Bu sadece, `concommand.Add`'ın dahili olarak çağırdığı `AddConsoleCommand` ile eklenen komutlar için çağrılır. Eğer bir geri çağırma bulunamazsa oyuncunun konsoluna bir hata gönderilir. Bu, `concommand.Remove` ile kaldırılan konsol komutları için yine de çağrılır ancak `false` döndürür. Bu, oyun motoru tarafından eklenen konsol komutları için değil, sadece Lua'dan oluşturulanlar için çağrılı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/concommand
