# GM:GUIMousePressed

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

```lua
GM:GUIMousePressed( number mouseCode, Vector aimVector )
```

## Açıklama

Bir oyuncu Sandbox modundaki içerik menüsünde veya [gui.EnableScreenClicker](https://gmod.tr/wiki/gui.EnableScreenClicker) tarafından kullanılan panel ve [Panel:ParentToHUD](https://gmod.tr/wiki/Panel:ParentToHUD) tarafından kullanılan panel gibi CGModBase'den türetilmiş herhangi bir panelde bir fare tuşuna bastığında çağrılır.

Tüm VGUI elemanlarında çağrılan bir hook için [GM:VGUIMousePressed](https://gmod.tr/wiki/GM:VGUIMousePressed) sayfasına bakın.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **mouseCode**: Oyuncunun [MOUSE enum](https://gmod.tr/wiki/Enums/MOUSE)'u kullanarak bastığı tuş.
2. [Vector](https://gmod.tr/wiki/Vector) **aimVector**: Kameraya göre yerel, normalleştirilmiş bir yön vektörü. Dahili olarak bu, [gui.ScreenToVector](https://gmod.tr/wiki/gui.ScreenToVector)( [gui.MousePos](https://gmod.tr/wiki/gui.MousePos)() )'dur.

- [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:GUIMousePressed
