# Panel:SetConVar

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

```lua
Panel:SetConVar( string convar )
```

## Açıklama

> **UYARI:** Bu fonksiyon tüm panellerde bulunmaz

> **UYARI:** Sunucu sahibi (host) değilseniz, bu fonksiyon sunucu taraflı convar'lar ile etkileşime giremez

> **NOT:** Engellenmiş convar'lar bununla çalışmayacaktır, bkz. [Blocked ConCommands](https://gmod.tr/wiki/Blocked_ConCommands)

Bu panelin convar'ını ayarlar. Convar değiştiğinde bu panel otomatik olarak güncellenir.

Geliştirici uygulaması için, bkz. [Derma_Install_Convar_Functions](https://gmod.tr/wiki/Global.Derma_Install_Convar_Functions).

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **convar**: Kontrol edilecek konsol değişkeni.

### Örnek

**cl_drawhud** convar'ına bağlı bir onay kutusu (checkbox) oluşturur.

```lua
local DermaPanel = vgui.Create( "DFrame" )
DermaPanel:SetPos( 100, 100 )
DermaPanel:SetSize( 300, 200 )
DermaPanel:SetTitle( "My new Derma frame" )
DermaPanel:SetDraggable( true )
DermaPanel:MakePopup()

local Checkbox = vgui.Create( "DCheckBoxLabel", DermaPanel )
Checkbox:SetConVar( "cl_drawhud" )
Checkbox:SetText( "Enable HUD?" )
Checkbox:SetPos( 5, 25 )
Checkbox:SizeToContents()
```

**Çıktı:** ![](https://gmod.tr/api/uploads/wiki/873987a12d039384df24.png)

- [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/Panel:SetConVar
