# render.DrawBox

- **Ortam:** İstemci
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/render.DrawBox
- **Çeviri tarihi:** 2026-05-14

```lua
render.DrawBox( Vector position, Angle angles, Vector mins, Vector maxs, Color color = Color( 255, 255, 255 ) )
```

## Açıklama

3 boyutlu alanda bir kutu çiziyor.

> **NOT:** Bu bir gösterimdir function that 3 boyutlu görüntüleme bağlamı gerektirir.
>
> Bu sadece çalışacak anlamına gelir. [3D Rendering Hooks](https://gmod.tr/wiki/3D_Rendering_Hooks).

## Argümanlar

1.. [Vektör](https://gmod.tr/wiki/Vector) **konumu**: Kutunun kökeni.
2.. [Açı](https://gmod.tr/wiki/Angle) **açılar**: Kutunun yönelimi.
3.. [Vektör](https://gmod.tr/wiki/Vector) **dakikalar.**: Kutunun başlangıç konumu, kökenine göre.
4.. [Vektör](https://gmod.tr/wiki/Vector) **en fazla**: Kutunun başlangıç noktasına göre son konumu.
5.. [Renk](https://gmod.tr/wiki/Color) **Renkli** = Color( 255, 255, 255): Kutunun rengi.

### Örnek

Aradığınız konuma beyaz bir kutu çeker.

```lua
local x = Vector( 5, 5, 5 )

hook.Add( "PostDrawTranslucentRenderables", "Boxxie", function()
    local pos = LocalPlayer():GetEyeTrace().HitPos - Render kutusu konumunda

    render.SetColorMaterial() -- kolay renklendirme için beyaz malzeme.

    cam.IgnoreZ( true ) -- bir sonraki çekim çağrısını yapar derinliği görmezden gelir ve yukarıdan çeker.
    render.DrawBox( pos, angle_zero, x, -x, color_white ) - Kutuyu çeker.
    cam.IgnoreZ( false ) -- Önceki aramayı kapatır.
end )
```

**Çıkış:**

![image.png](https://gmod.tr/api/uploads/wiki/5c06405854a5cabb3d7b.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/render.DrawBox
