OnClientPlayerVoiceStop: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 
		
	
No edit summary  | 
				m (This event does not work, we should let everyone know)  | 
				||
| Line 3: | Line 3: | ||
This event is triggered when a player stops talking through voice chat.  | This event is triggered when a player stops talking through voice chat.  | ||
{{Important Note|This event should only be used as a low-level function for advanced users.  For typical Voice scripting, please see the [[Resource:Voice|Voice Resource]]}}  | {{Important Note|This event should only be used as a low-level function for advanced users.  For typical Voice scripting, please see the [[Resource:Voice|Voice Resource]]}}  | ||
__NOTOC__ {{Note|This event triggers inconsistently (https://github.com/multitheftauto/mtasa-blue/issues/1700). You should use onPlayerVoiceStart and trigger a custom client-sided event to get similar results, minus the cancelEvent effect.}}  | |||
==Parameters==  | ==Parameters==  | ||
Latest revision as of 23:35, 19 July 2023
This event is triggered when a player stops talking through voice chat.
| Important Note: This event should only be used as a low-level function for advanced users. For typical Voice scripting, please see the Voice Resource | 
Parameters
No parameters.
Source
The source of this event is the player element that just stopped talking through voice chat.
Cancel effect
- If the source is the local player, the local player will not broadcast his voice chat to the server
 - If the source is a remote player, the player who started talking will not be heard.
 
Example
This example outputs to the console the player that stopped talking.
addEventHandler("onClientPlayerVoiceStop",root,function()
	outputConsole(getPlayerName(source)..." has stopped talking.")
end)
See Also
- onClientPlayerChangeNick
 - onClientPlayerChoke
 - onClientPlayerDamage
 - onClientPlayerHeliKilled
 - onClientPlayerHitByWaterCannon
 - onClientPlayerJoin
 - onClientPlayerPickupHit
 - onClientPlayerPickupLeave
 - onClientPlayerQuit
 - onClientPlayerRadioSwitch
 - onClientPlayerSpawn
 - onClientPlayerStealthKill
 - onClientPlayerStuntFinish
 - onClientPlayerStuntStart
 - onClientPlayerTarget
 - onClientPlayerVehicleEnter
 - onClientPlayerVehicleExit
 - onClientPlayerVoicePause
 - onClientPlayerVoiceResumed
 - onClientPlayerVoiceStart
 - onClientPlayerVoiceStop
 - onClientPlayerWasted
 - onClientPlayerWeaponFire
 - onClientPlayerWeaponSwitch