# DShape:SetType

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

```lua
DShape:SetType( string type )
```

## Açıklama

Çizilecek şekli ayarlar.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **type**: DShape'in render türü. Şu anda yalnızca dikdörtgenler (`Rect`) çalışmaktadır. Hemen bir tür belirtmezseniz, [PANEL:Paint](https://gmod.tr/wiki/PANEL:Paint) metodu siz belirtinceye kadar hata verecektir.

### Örnek

Bir DShape oluşturur ve render türünü ayarlar.

```lua
local Shape = vgui.Create( "DShape" )
Shape:SetType( "Rect" )
Shape:SetSize(500,500)
Shape:SetPos(10, 10)
```

- [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/DShape:SetType
