# DComboBox:AddChoice

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

```lua
number DComboBox:AddChoice( string value, any data = nil, boolean select = false, string icon = nil )
```

## Açıklama

Açılır listeye (combo box) bir seçenek ekler.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **value**: Kullanıcıya gösterilecek metin.
2. [any](https://gmod.tr/wiki/any) **data** = nil: Bu metne eşlik eden veri. Boş bırakılırsa, bunun yerine `value` argümanı kullanılır. [DComboBox:GetSelected](https://gmod.tr/wiki/DComboBox:GetSelected) ve [DComboBox:GetOptionData](https://gmod.tr/wiki/DComboBox:GetOptionData) fonksiyonlarının ikinci argümanı ile ve [DComboBox:OnSelect](https://gmod.tr/wiki/DComboBox:OnSelect)'in bir argümanı olarak erişilebilir.
3. [boolean](https://gmod.tr/wiki/boolean) **select** = false: Bu seçeneğin varsayılan olarak seçili olup olmayacağı.
4. [string](https://gmod.tr/wiki/string) **icon** = nil: Bu seçenek için bir simge ekler.

## Döndürülen Değer

1. [number](https://gmod.tr/wiki/number): Yeni eklenen seçeneğin indeksi.

- [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/DComboBox:AddChoice
