# ConVar:GetString

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

```lua
string ConVar:GetString()
```

## Açıklama

Mevcut [ConVar](https://gmod.tr/wiki/ConVar) değerini bir string (metin) olarak döndürür.

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

1. [string](https://gmod.tr/wiki/string): Mevcut konsol değişkeni değeri, bir string (metin) olarak.

### Örnek

Oyun modunun sandbox olup olmadığını kontrol eder ([engine.ActiveGamemode](https://gmod.tr/wiki/engine.ActiveGamemode) kullanmayı düşünebilirsiniz).

```lua
if GetConVar("gamemode"):GetString() == "sandbox" then
    print("Gamemode is sandbox")
end
```

**Çıktı:** Gamemode is sandbox

- [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/ConVar:GetString
