OnPlayerVoiceStart

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

onPlayerVoiceStart

Compatibility alias triggered when the server accepts the start of a player's voice transmission.

Availability

This event is available in server-side scripts.

Callback signature

onPlayerVoiceStart(playerId)

Parameters

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

Examples

Handle the event:

addEventHandler("onPlayerVoiceStart", root, function(playerId)
    outputDebugString(getPlayerName(playerId) .. " started talking")
end)

Notes

  • This event mirrors onPlayerStartTalking. New resources may use either name.