# GetGlobalString

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

```lua
string GetGlobalString( string index, string default = "" )
```

## Açıklama

Sunucu ve tüm istemciler arasında paylaşılan bir dize (string) döndürür.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **index**: Global değeri tanımlamak için kullanılan benzersiz anahtar.
2. [string](https://gmod.tr/wiki/string) **default** = "": Global değer ayarlanmamışsa döndürülecek değer.

## Döndürdüğü Değer

1. [string](https://gmod.tr/wiki/string): Global değer, veya global değer ayarlanmamışsa varsayılan değer.

### Örnek

Ayarlanmışsa mevcut sunucu adını, aksi takdirde "Garry's Mod 13" yazdırır.

```lua
print( GetGlobalString("ServerName", "Garry's Mod 13") )
```

- [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/Global.GetGlobalString
