# DProperty\_Combo:AddChoice

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

```lua
DProperty_Combo:AddChoice( string Text, any data, boolean select = false )
```

## Açıklama

Açılır menü kontrolünüze bir seçenek ekler.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **Text**: Görüntülenen metin.
2. [any](https://gmod.tr/wiki/any) **data**: Saklanan Veri.
3. [boolean](https://gmod.tr/wiki/boolean) **select** = false: Bu öğe seçilsin mi?

### Örnek

"I am selected" seçeneğini seçili olarak ayarlar.

```lua
local choice = DP:CreateRow( "Choices", "Hello world" )
choice:Setup( "Combo" )
choice:AddChoice( "I am a choice", {} )
choice:AddChoice( "I am selected", 8, true )
choice:AddChoice( "I am not selected", "Hello world" )
```

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