IsPlayerVoiceEnabled: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
28days (talk | contribs)
No edit summary
 
Line 12: Line 12:
== Example ==
== Example ==
<syntaxhighlight lang="Lua>
<syntaxhighlight lang="Lua>
__EDIT_ME__
if IsPlayerVoiceEnabled(playerid) then
    AddPlayerChat(playerid, "You have voice chat enabled.")
end
</syntaxhighlight>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{Template:ServerFunctions}}
{{Template:VoiceFunctions}}

Latest revision as of 06:04, 23 November 2019

IsPlayerVoiceEnabled

Type: Function
Context: Server
Introduced: v1.0

Description

Check if the specified player has voice chat enabled or not.

Syntax

IsPlayerVoiceEnabled(playerid)

Parameters

  • playerid
    The player identifier.

Return Value

  • Returns true on success.

Example

if IsPlayerVoiceEnabled(playerid) then
    AddPlayerChat(playerid, "You have voice chat enabled.")
end

See also