# DModelPanel:SetModel

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

```lua
DModelPanel:SetModel( string model )
```

## Açıklama

Render edilen varlığın modelini ayarlar.

> **NOT:** Bu fonksiyon beklenenden farklı bir model verebilir. Bu bir hata değildir, ancak bu sorun yanlış bir şekilde birkaç kez yeniden adlandırılan bazı oyuncu modellerinde ortaya çıkabilir. Bunu çözmek için, dahili panel varlığı üzerinde [Entity:SetModel](https://gmod.tr/wiki/Entity:SetModel) ve [Entity:SetModelName](https://gmod.tr/wiki/Entity:SetModelName) kullanabilirsiniz. Daha fazla bilgi için: [https://github.com/Facepunch/garrysmod-issues/issues/4534](https://github.com/Facepunch/garrysmod-issues/issues/4534).

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **model**: Varlığa uygulanacak model.

### Örnek

Kleiner oyuncu modelini içeren yeni bir DModelPanel oluşturur.

```lua
local modelPanel = vgui.Create( "DModelPanel" )
modelPanel:SetPos( 0, 0 )
modelPanel:SetSize( 200, 200 )
modelPanel:SetModel( "models/player/kleiner.mdl" )
```

**Çıktı:**

![image.png](https://gmod.tr/api/uploads/wiki/0bf320a5d5b77e0c8adb.png)

- [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/DModelPanel:SetModel
