# DProperty\_Combo:SetSelected

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

```lua
DProperty_Combo:SetSelected( number Id )
```

## Açıklama

Seçili olan seçeneği ayarlar.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **Id**: Seçilecek olan seçeneğin ID'si.

### Örnek

İkinci seçeneği seçili olarak ayarlar.

```lua
local choice = DP:CreateRow( "Choices", "Hello world" )
choice:Setup( "Combo" )
choice:AddChoice( "Choice #1", {} )
choice:AddChoice( "Choice #2", 8 )
choice:AddChoice( "Choice #3", "Hello world", true )
choice:SetSelected( 2 ) -- "Choice #3" varsayılan olarak seçili olsa bile, "Choice #2" seçilecektir.
```

- [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:SetSelected
