GetPlayerVoicePushToTalk
Jump to navigation
Jump to search
getPlayerVoicePushToTalk
Returns whether push-to-talk is required by the player's authoritative voice policy.
Syntax
bool getPlayerVoicePushToTalk(int playerId)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
int |
yes | The connected player identifier. |
Returns
Returns true when push-to-talk is required; otherwise returns false.
Examples
Inspect capture policy:
outputDebugString(tostring(getPlayerVoicePushToTalk(playerId)))
Notes
- Available only in server-side resource scripts.