# GM:PlayerStartVoice

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

```lua
boolean GM:PlayerStartVoice( Player ply, number plyIndex = nil )
```

## Açıklama

Bir oyuncu sesli sohbet kullanmaya başladığında çağrılır.

> **NOT:** Eğer oyuncunun üstündeki simgeleri devre dışı bırakmak istiyorsanız mp_show_voice_icons'u 0 olarak ayarlayın.

## Argümanlar

1.. [Oyuncu](https://gmod.tr/wiki/Player) **Yırtıcı**: Sesli sohbet kullanmaya başlayan oyuncu.
2.. [numara](https://gmod.tr/wiki/number) **plyIndex** = hiç: Oyuncu indeksi sadece local player olmayan ilk kez konuştuğunda görünür.

## Geri dönüşler

1.. [Boolean](https://gmod.tr/wiki/boolean): Oyuncunun gizlemek için doğru ayarlayın `CHudVoiceStatus`.

### Örnek

Oyuncu konuşurken simgeyi gösterir.

```lua
local icon = Material("icon32/unmuted.png")
local function iconfunc()
	surface.SetDrawColor(255, 255, 255)
	surface.SetMaterial(icon)
	surface.DrawTexturedRect(200, 200, 200, 200)
end

hook.Add("PlayerStartVoice", "ImageOnVoice", function()
	hook.Add("HUDPaint", "ImageOnVoice", iconfunc)
end)

hook.Add("PlayerEndVoice", "ImageOnVoice", function()
	hook.Remove("HUDPaint", "ImageOnVoice")
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:PlayerStartVoice
