Garry's Mod Wiki

GM:PlayerStartVoice

GM:PlayerStartVoice( Player ply )

Description

Called when a player starts using voice chat.

Arguments

1 Player ply
Player who started using voice chat

Example

Show Image when the player talk

local icon = Material("icon32/unmuted.png") hook.Add("PlayerStartVoice", "ImageOnVoice", function() hook.Add("HUDPaint", "ImageOnVoice", function() surface.SetDrawColor(255, 255, 255) surface.SetMaterial(icon) surface.DrawTexturedRect(200, 200, 200, 200) end) end) hook.Add("PlayerEndVoice", "ImageOnVoice", function() hook.Remove("HUDPaint", "ImageOnVoice") end)

Page Links


Special Pages


Wikis

?

Render Time: 23ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 9
Render Body 0
Render Sidebar 6