# surface.SetTextPos

- **Ortam:** İstemci, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/surface.SetTextPos
- **Çeviri tarihi:** 2025-09-08

```lua
surface.SetTextPos( number x, number y )
```

## Açıklama

İleride çizilecek herhangi bir metnin çizileceği sol üst konumu ayarlar.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **x**: X tam sayı koordinatı.
2. [number](https://gmod.tr/wiki/number) **y**: Y tam sayı koordinatı.

### Örnek

Ekranın sol üst civarına 'Hello World' yazar.

```lua
hook.Add( "HUDPaint", "HUDPaint_DrawABox", function()
	surface.SetDrawColor( 0, 0, 0, 128 ) -- Arka plan için rengi ayarla
	surface.DrawRect( 100, 100, 128, 20 ) -- Arka planı çiz

	surface.SetTextColor( 255, 255, 255 ) -- Metin rengini ayarla
	surface.SetTextPos( 136, 104 ) -- Metin konumunu ayarla, sol üst köşe
	surface.SetFont( "Default" ) -- Yazı tipini ayarla
	surface.DrawText( "Hello World" ) -- Metni çiz
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/surface.SetTextPos
