# util.GetModelInfo

- **Ortam:** İstemci, Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/util.GetModelInfo
- **Çeviri tarihi:** 2025-10-22

```lua
table util.GetModelInfo( string mdl )
```

## Açıklama

Model hakkında bilgi içeren bir tablo döndürür. Eğer model daha önce yüklenmemişse, yüklenir ve önbelleğe alınır.

Ayrıca bakınız: [util.GetModelMeshes](https://gmod.tr/wiki/util.GetModelMeshes)

> **NOT:** Bu fonksiyon, içinde aşağıdaki metinleri barındıran modellerde kullanılırsa sessizce başarısız olur:
>
> - _shared
> - _anims
> - _gestures
> - _anim
> - _postures
> - _gst
> - _pst
> - _shd
> - _ss
> - _anm
> - _include

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **mdl**: Hakkında bilgi alınacak modelin yolu.

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

1. [table](https://gmod.tr/wiki/table) ([ModelInfo yapısı](https://gmod.tr/wiki/Structures/ModelInfo) ile): Model bilgisi. Detaylar için [ModelInfo yapısı](https://gmod.tr/wiki/Structures/ModelInfo) sayfasına bakın.

### Örnek

Fonksiyonun örnek kullanımı. Aynı isme sahip birden fazla anahtarı korumak için [util.KeyValuesToTablePreserveOrder](https://gmod.tr/wiki/util.KeyValuesToTablePreserveOrder) kullanıyoruz.

```lua
local ModelInfo = util.GetModelInfo("models/combine_gate_vehicle.mdl" )
print( ModelInfo.SkinCount ) // Kaplama sayısı
PrintTable( util.KeyValuesToTablePreserveOrder( ModelInfo.KeyValues ) ) // Fizik verisi
```

**Çıktı:**

```lua
1:
		Key	=	solid
		Value:
				1:
						Key	=	index
						Value	=	0
				2:
						Key	=	name
						Value	=	Vehicle_Gate.Gate2_L
				3:
						Key	=	mass
						Value	=	1
				4:
						Key	=	surfaceprop
						Value	=	metal
				5:
						Key	=	damping
						Value	=	0
				6:
						Key	=	rotdamping
						Value	=	0
				7:
						Key	=	inertia
						Value	=	1
				8:
						Key	=	volume
						Value	=	68522.9296875

...

6:
		Key	=	editparams
		Value:
				1:
						Key	=	rootname
						Value	=
				2:
						Key	=	totalmass
						Value	=	1
```

- [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/util.GetModelInfo
