# GM:PostDrawHUD

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

```lua
GM:PostDrawHUD()
```

## Açıklama

[GM:PreDrawHUD](https://gmod.tr/wiki/GM:PreDrawHUD), [GM:HUDPaintBackground](https://gmod.tr/wiki/GM:HUDPaintBackground) ve [GM:HUDPaint](https://gmod.tr/wiki/GM:HUDPaint)'ten sonra, ancak [GM:DrawOverlay](https://gmod.tr/wiki/GM:DrawOverlay)'dan önce çağrılır.

[GM:HUDPaint](https://gmod.tr/wiki/GM:HUDPaint)([Background](https://gmod.tr/wiki/GM:HUDPaintBackground)) hook'larının aksine, bu hook ana menü görünür olduğunda da çağrılır. Aynı şekilde [GM:PreDrawHUD](https://gmod.tr/wiki/GM:PreDrawHUD) da çağrılacaktır.

> **NOT:** Bu, 2 boyutlu (2D) bir çizim ortamı sağlayan bir render hook'udur.

### Örnek

Ekranın sol üst köşesine şeffaf siyah bir kutu çizer.

```lua
hook.Add( "PostDrawHUD", "DrawHelloWorldBox", function()
    local w = 256
    local h = 64

	cam.Start2D() -- Eğer bunu çağırmazsanız, hook içindeki metin tuhaf bir şekilde renderlanır.
		surface.SetDrawColor( 20, 20, 20, 200 )
		surface.DrawRect( 0, 0, w, h )

        draw.SimpleText( "Hello World", "Trebuchet24", w / 2, h / 2, color_white, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
	cam.End2D()
end )
```

- [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/GM:PostDrawHUD
