# ControlPanel:MatSelect

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

```lua
MatSelect ControlPanel:MatSelect( string convar, table options = nil, boolean autostretch = nil, number width = nil, number height = nil )
```

## Açıklama

Bir [MatSelect](https://gmod.tr/wiki/MatSelect) paneli oluşturur ve onu bir [öğe](https://gmod.tr/wiki/ControlPanel:AddPanel) olarak ekler.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **convar**: Bu değer ile [MatSelect](https://gmod.tr/wiki/MatSelect):[SetConVar](https://gmod.tr/wiki/ContextBase:SetConVar) fonksiyonunu çağırır.
2. [table](https://gmod.tr/wiki/table) **options** = nil: Belirtilirse, her tablo girdisi için [MatSelect:AddMaterial](https://gmod.tr/wiki/MatSelect:AddMaterial)(key, value) fonksiyonunu çağırır. Eğer tablo anahtarı bir sayı ise, fonksiyon bunun yerine her iki argüman olarak da value ile çağrılır.
3. [boolean](https://gmod.tr/wiki/boolean) **autostretch** = nil: Belirtilirse, bu değer ile [MatSelect:SetAutoHeight](https://gmod.tr/wiki/MatSelect:SetAutoHeight) fonksiyonunu çağırır.
4. [number](https://gmod.tr/wiki/number) **width** = nil: Belirtilirse, bu değer ile [MatSelect:SetItemWidth](https://gmod.tr/wiki/MatSelect:SetItemWidth) fonksiyonunu çağırır.
5. [number](https://gmod.tr/wiki/number) **height** = nil: Belirtilirse, bu değer ile [MatSelect:SetItemHeight](https://gmod.tr/wiki/MatSelect:SetItemHeight) fonksiyonunu çağırır.

## Döndürülenler

1. [MatSelect](https://gmod.tr/wiki/MatSelect): Oluşturulan MatSelect paneli.

- [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/ControlPanel:MatSelect
