# GM:PreDrawHUD

- **Ortam:** İstemci
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/GM:PreDrawHUD
- **Çeviri tarihi:** 2026-02-02

```lua
GM:PreDrawHUD()
```

## Açıklama

Aradıktan kısa süre sonra .[GM:PostDrawEffects](https://gmod.tr/wiki/GM:PostDrawEffects)İçindeki herhangi bir şeyi çizmek yanlış çalışıyor gibi görünüyor.

Gördün mü ?[GM:PostDrawHUD](https://gmod.tr/wiki/GM:PostDrawHUD)Bağlantı kurmak için.

### Örnek

Diğer HUD elemanlarından önce bir şey çizmenizi sağlar.

```lua
hook.Add( "PreDrawHUD", "PreDrawExample", function()

	cam.Start2D() - Eğer bunu söylemezsen çizim düzgün çalışmaz.

		surface.SetDrawColor( 20, 20, 20, 200 )
		surface.DrawRect( 0, 0, ScrW(), ScrH() )

	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:PreDrawHUD
