OnPlayerStopTalking

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 06:15, 24 August 2026 by QCherry (talk | contribs) (Document Protocol 23 voice and player presentation APIs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

onPlayerStopTalking

Triggered when an active player voice transmission ends or times out.

Availability

This event is available in server-side scripts.

Callback signature

onPlayerStopTalking(playerId)

Parameters

Name Type Description
playerId int The player that stopped transmitting voice.

Examples

Handle the event:

addEventHandler("onPlayerStopTalking", root, function(playerId)
    outputDebugString(getPlayerName(playerId) .. " stopped talking")
end)

Notes

  • This is emitted for normal release and for authoritative termination such as mute, disable, disconnect, or activity timeout.
  • The compatibility alias onPlayerVoiceStop is emitted for the same transition.