# surface.GetTextureID

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

```lua
number surface.GetTextureID( string name/path )
```

## Açıklama

[surface.SetTexture](https://gmod.tr/wiki/surface.SetTexture) ile kullanılmak üzere, verilen ada/yola sahip materyalin doku kimliğini (ID) döndürür.

Bu fonksiyonun zıt işlevi [surface.GetTextureNameByID](https://gmod.tr/wiki/surface.GetTextureNameByID)'dır.

> **NOT:** Bu fonksiyon .png veya .jpg uzantılı görsellerle çalışmaz. Bu tür görseller için [Material](https://gmod.tr/wiki/Global.Material) sayfasına bakın. Muhtemelen ne olursa olsun onu kullanmak isteyeceksiniz.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **name/path**: Dokunun adı veya yolu. Yol, bir `.vmt` dosyasına (materyal) ait olmalıdır, bir `.vtf` dosyasına (doku) değil!

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

1. [number](https://gmod.tr/wiki/number): Doku kimliği (ID)

- [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/surface.GetTextureID
