# GM:HUDPaintBackground

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

```lua
GM:HUDPaintBackground()
```

## Açıklama

HUD arkaplanı çizilirken [GM:HUDPaint](https://gmod.tr/wiki/GM:HUDPaint) kancasından önce çağrılır.

Tıpkı [GM:HUDPaint](https://gmod.tr/wiki/GM:HUDPaint) gibi, bu kanca da ana menü görünür olduğunda çağrılmaz. [GM:PostDrawHUD](https://gmod.tr/wiki/GM:PostDrawHUD) bu davranışa sahip değildir.

Bu kancada işlenen şeyler, [GM:HUDPaint](https://gmod.tr/wiki/GM:HUDPaint) içinde işlenen şeylerin **her zaman** arkasında görünecektir.

> **NOT:** Bu, 2 boyutlu bir çizim ortamı sağlayan bir çizim kancasıdır.

### Örnek

Ekranın sol üst köşesine, diğer tüm HUD öğelerinin arkasına şeffaf siyah bir kutu çizer.

```lua
hook.Add( "HUDPaintBackground", "HUDPaintBackground_DrawABox", function()
	surface.SetDrawColor( 0, 0, 0, 128 )
	surface.DrawRect( 50, 50, 128, 128 )
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:HUDPaintBackground
