# spawnmenu.GetContentType

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

```lua
function spawnmenu.GetContentType( string contentType )
```

## Açıklama

[spawnmenu.AddContentType](https://gmod.tr/wiki/spawnmenu.AddContentType) tarafından önceden tanımlanmış, belirtilen bir içerik türü için bir VGUI elemanı oluşturma fonksiyonunu döndürür.

Bir içerik türü mevcut değilse, sahte (dummy) bir fonksiyon döndürülür ve konsola bir uyarı yazdırılır.

İkon oluşturmak için muhtemelen [spawnmenu.CreateContentIcon](https://gmod.tr/wiki/spawnmenu.CreateContentIcon) fonksiyonunu kullanmak isteyeceksiniz.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **contentType**: İçerik türünün adı.

## Döndürülenler

1. [function](https://gmod.tr/wiki/function): Panel oluşturma fonksiyonu. Fonksiyon argüman(lar)ı: 1. [Panel](https://gmod.tr/wiki/Panel) **container** - Oluşturulan ikonun ebeveyni olacak konteyner panel. 2. [table](https://gmod.tr/wiki/table) **data** - [spawnmenu.CreateContentIcon](https://gmod.tr/wiki/spawnmenu.CreateContentIcon)'dan aktarılan içerik türü verisi. Fonksiyon dönüş değeri/değerleri: 1. [Panel](https://gmod.tr/wiki/Panel) **pnl** - Oluşturulan panel

- [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/spawnmenu.GetContentType
