<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Alvesvin</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Alvesvin"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Alvesvin"/>
	<updated>2026-04-24T07:27:32Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PT-BR/getSoundBPM&amp;diff=71905</id>
		<title>PT-BR/getSoundBPM</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/getSoundBPM&amp;diff=71905"/>
		<updated>2021-08-19T02:10:02Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{BR/Funcao cliente}}&lt;br /&gt;
&lt;br /&gt;
{{New feature/item|3.0131|1.3.0|4145|&lt;br /&gt;
Essa função obtém as batidas por minuto de um elemento de [[sound|áudio]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Aviso|Essa é uma função pesada e travará o cliente por cerca de 1-3 segundos. Para evitar essa travada, você precisará chamar essa função dentro de um [[PT-BR/SetTimer|setTimer]].}}&lt;br /&gt;
&lt;br /&gt;
==Sintaxe== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getSoundBPM ( element audio )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BR/OOP||[[sound|audio]]:getBPM}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos necessários=== &lt;br /&gt;
*'''audio:''' um elemento de áudio criado por [[playSound]] ou [[playSound3D]]&lt;br /&gt;
&lt;br /&gt;
===Retorno===&lt;br /&gt;
Retorna as batidas por minuto de um determinado áudio.&lt;br /&gt;
&lt;br /&gt;
==Exemplo== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function bpm ()&lt;br /&gt;
    -- Versão extendida (para facilitar o entendimento)&lt;br /&gt;
    audio = playSound ( &amp;quot;song.mp3&amp;quot; ) -- Toca o áudio&lt;br /&gt;
    batidas = getSoundBPM ( audio ) -- Obtém as batidas por minuto de 'audio'&lt;br /&gt;
    outputChatBox ( &amp;quot;Batidas por minuto: &amp;quot; .. batidas ) -- Exibe as BPM no chat&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;bpm&amp;quot;, bpm )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requisitos==&lt;br /&gt;
{{Requirements|n/a|1.3.0-9.04162|}}&lt;br /&gt;
&lt;br /&gt;
==Veja também==&lt;br /&gt;
{{PT-BR/Funcoes_audio_client}}&lt;br /&gt;
&lt;br /&gt;
[[en:getSoundBPM]]&lt;br /&gt;
[[hu:GetSoundBPM]]&lt;br /&gt;
[[ru:getSoundBPM]]&lt;br /&gt;
[[ar:getSoundBPM]]&lt;br /&gt;
[[RO:getSoundBPM]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71904</id>
		<title>Template:PT-BR/Funcoes audio client</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71904"/>
		<updated>2021-08-19T02:07:51Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannel|getRadioChannel]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannelName|getRadioChannelName]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSFXStatus|getSFXStatus]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBPM|getSoundBPM]]&lt;br /&gt;
{{New items|3.0157|1.5.6|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBufferLength|getSoundBufferLength]]&lt;br /&gt;
|16216}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffects|getSoundEffects]]&lt;br /&gt;
{{New items|3.0159|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffectParameters|getSoundEffectParameters]]&lt;br /&gt;
|20914}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundFFTData|getSoundFFTData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLength|getSoundLength]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLevelData|getSoundLevelData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMaxDistance|getSoundMaxDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMetaTags|getSoundMetaTags]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMinDistance|getSoundMinDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPan|getSoundPan]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPosition|getSoundPosition]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundProperties|getSoundProperties]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundSpeed|getSoundSpeed]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundVolume|getSoundVolume]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundWaveData|getSoundWaveData]]&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundLooped|isSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPanningEnabled|isSoundPanningEnabled]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPaused|isSoundPaused]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX|playSFX]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX3D|playSFX3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound|playSound]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound3D|playSound3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSoundFrontEnd|playSoundFrontEnd]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setRadioChannel|setRadioChannel]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setSoundEffectEnabled|setSoundEffectEnabled]]&lt;br /&gt;
{{New items|3.0159|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setSoundEffectParameter|setSoundEffectParameter]]&lt;br /&gt;
|20914}}&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setSoundLooped|setSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setSoundMaxDistance|setSoundMaxDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setSoundMinDistance|setSoundMinDistance]]&lt;br /&gt;
*[[setSoundPan]]&lt;br /&gt;
*[[setSoundPanningEnabled]]&lt;br /&gt;
*[[setSoundPaused]]&lt;br /&gt;
*[[setSoundPosition]]&lt;br /&gt;
*[[setSoundProperties]]&lt;br /&gt;
*[[setSoundSpeed]]&lt;br /&gt;
*[[setSoundVolume]]&lt;br /&gt;
*[[stopSound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundMinDistance&amp;diff=71903</id>
		<title>AR/setSoundMinDistance</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundMinDistance&amp;diff=71903"/>
		<updated>2021-08-19T02:07:26Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Sets a custom [[sound]] Minimum distance at which the sound stops getting louder.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundMinDistance ( element sound, int distance )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' a [[sound]] element.&lt;br /&gt;
*'''distance:''' an integer representing the distance the sound stops getting louder. the default value for this is 1&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''true'' if the minimum distance was set, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local sound = playSound3D(&amp;quot;sounds/song.mp3&amp;quot;, 373.14, -125.21, 1001, true)&lt;br /&gt;
&lt;br /&gt;
function distanceFunc(command, param)&lt;br /&gt;
  setSoundMinDistance(sound, tonumber(param))&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;setdistance&amp;quot;, distanceFunc)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[PT-BR:setSoundMinDistance]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HU/setSoundMinDistance&amp;diff=71902</id>
		<title>HU/setSoundMinDistance</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/setSoundMinDistance&amp;diff=71902"/>
		<updated>2021-08-19T02:07:08Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function hu}}&lt;br /&gt;
Beállítja a legkisebb távolságát az egyéni [[sound|hang]]nak, ahol az már nem lesz hangosabb.&lt;br /&gt;
&lt;br /&gt;
==Szintaxis== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundMinDistance ( element sound, int distance )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[sound]]:setMinDistance|minDistance|getSoundMinDistance}}&lt;br /&gt;
===Kötelező argumentumok=== &lt;br /&gt;
*'''sound:''' egy [[sound|hand]] elem.&lt;br /&gt;
*'''distance:''' egy integer értéked ad vissza, azt a távolságot ahol a hang már nem lesz hangosabb. Az alapértelmezett érték 5&lt;br /&gt;
===Visszaadott érték===&lt;br /&gt;
Visszaad egy ''true'' értéket, ha a legkisebb távolság be lett állítva, egyébként ''false''.&lt;br /&gt;
&lt;br /&gt;
==Példa== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local sound = playSound3D(&amp;quot;sounds/song.mp3&amp;quot;, 373.14, -125.21, 1001, true)&lt;br /&gt;
&lt;br /&gt;
function distanceFunc(command, param)&lt;br /&gt;
  setSoundMinDistance(sound, tonumber(param))&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;setdistance&amp;quot;, distanceFunc)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Lásd még==&lt;br /&gt;
{{Client_audio_functions hu}}&lt;br /&gt;
&lt;br /&gt;
[[EN:setSoundMinDistance]]&lt;br /&gt;
[[AR:setSoundMinDistance]]&lt;br /&gt;
[[PT-BR:setSoundMinDistance]]&lt;br /&gt;
&lt;br /&gt;
==Fordította==&lt;br /&gt;
* '''''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''''&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetSoundMinDistance&amp;diff=71901</id>
		<title>SetSoundMinDistance</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetSoundMinDistance&amp;diff=71901"/>
		<updated>2021-08-19T02:06:56Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Sets a custom [[sound]] Minimum distance at which the sound stops getting louder.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundMinDistance ( element sound, int distance )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[sound]]:setMinDistance|minDistance|getSoundMinDistance}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' a [[sound]] element.&lt;br /&gt;
*'''distance:''' an integer representing the distance the sound stops getting louder. the default value for this is 5&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''true'' if the minimum distance was set, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local sound = playSound3D(&amp;quot;sounds/song.mp3&amp;quot;, 373.14, -125.21, 1001, true)&lt;br /&gt;
&lt;br /&gt;
function distanceFunc(command, param)&lt;br /&gt;
  setSoundMinDistance(sound, tonumber(param))&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;setdistance&amp;quot;, distanceFunc)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[PT-BR:setSoundMinDistance]]&lt;br /&gt;
[[HU:setSoundMinDistance]]&lt;br /&gt;
[[AR:setSoundMinDistance]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PT-BR/setSoundMinDistance&amp;diff=71900</id>
		<title>PT-BR/setSoundMinDistance</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/setSoundMinDistance&amp;diff=71900"/>
		<updated>2021-08-19T02:06:38Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: Created page with &amp;quot;__NOTOC__  {{BR/Funcao cliente}} Defini a distância mínima ao qual um áudio para de ficar mais alto.  ==Sintaxe==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundMinDis...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{BR/Funcao cliente}}&lt;br /&gt;
Defini a distância mínima ao qual um [[sound|áudio]] para de ficar mais alto.&lt;br /&gt;
&lt;br /&gt;
==Sintaxe== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundMinDistance ( element audio, int distancia )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
{{BR/OOP||[[sound|audio]]:setMinDistance|minDistance|getSoundMinDistance}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos necessários=== &lt;br /&gt;
*'''audio:''' um elemento de [[sound|áudio]].&lt;br /&gt;
*'''distancia:''' um [[int]] representando a distância ao qual o [[sound|áudio]] para de ficar mais alto. O valor padrão é 5.&lt;br /&gt;
&lt;br /&gt;
===Retorno===&lt;br /&gt;
Retorna ''true'' se a distância mínima foi definida com sucesso, do contrário retorna ''false''.&lt;br /&gt;
&lt;br /&gt;
==Exemplo== &lt;br /&gt;
Este exemplo cria um áudio 3D e adiciona um comando para a troca da distância mínima.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local audio = playSound3D(&amp;quot;audio.mp3&amp;quot;, 373.14, -125.21, 1001, true)&lt;br /&gt;
&lt;br /&gt;
function definiDistanciaMinima(comando, distancia)&lt;br /&gt;
  setSoundMinDistance(audio, tonumber(distancia))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;distanciamin&amp;quot;, definiDistanciaMinima)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{PT-BR/Funcoes_audio_client}}&lt;br /&gt;
&lt;br /&gt;
[[EN:setSoundMinDistance]]&lt;br /&gt;
[[HU:setSoundMinDistance]]&lt;br /&gt;
[[AR:setSoundMinDistance]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71899</id>
		<title>Template:PT-BR/Funcoes audio client</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71899"/>
		<updated>2021-08-19T02:00:33Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannel|getRadioChannel]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannelName|getRadioChannelName]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSFXStatus|getSFXStatus]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBPM|getSoundBPM]]&lt;br /&gt;
{{New items|3.0157|1.5.6|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBufferLength|getSoundBufferLength]]&lt;br /&gt;
|16216}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffects|getSoundEffects]]&lt;br /&gt;
{{New items|3.0159|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffectParameters|getSoundEffectParameters]]&lt;br /&gt;
|20914}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundFFTData|getSoundFFTData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLength|getSoundLength]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLevelData|getSoundLevelData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMaxDistance|getSoundMaxDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMetaTags|getSoundMetaTags]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMinDistance|getSoundMinDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPan|getSoundPan]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPosition|getSoundPosition]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundProperties|getSoundProperties]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundSpeed|getSoundSpeed]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundVolume|getSoundVolume]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundWaveData|getSoundWaveData]]&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundLooped|isSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPanningEnabled|isSoundPanningEnabled]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPaused|isSoundPaused]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX|playSFX]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX3D|playSFX3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound|playSound]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound3D|playSound3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSoundFrontEnd|playSoundFrontEnd]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setRadioChannel|setRadioChannel]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setSoundEffectEnabled|setSoundEffectEnabled]]&lt;br /&gt;
{{New items|3.0159|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setSoundEffectParameter|setSoundEffectParameter]]&lt;br /&gt;
|20914}}&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setSoundLooped|setSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setSoundMaxDistance|setSoundMaxDistance]]&lt;br /&gt;
*[[setSoundMinDistance]]&lt;br /&gt;
*[[setSoundPan]]&lt;br /&gt;
*[[setSoundPanningEnabled]]&lt;br /&gt;
*[[setSoundPaused]]&lt;br /&gt;
*[[setSoundPosition]]&lt;br /&gt;
*[[setSoundProperties]]&lt;br /&gt;
*[[setSoundSpeed]]&lt;br /&gt;
*[[setSoundVolume]]&lt;br /&gt;
*[[stopSound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundMaxDistance&amp;diff=71898</id>
		<title>AR/setSoundMaxDistance</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundMaxDistance&amp;diff=71898"/>
		<updated>2021-08-19T02:00:09Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Sets a custom [[sound]] max distance at which the sound stops.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundMaxDistance ( element sound, int distance )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' a [[sound]] element.&lt;br /&gt;
*'''distance:''' the default value for this is 10&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''true'' if the max distance was set, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local sound = playSound3D(&amp;quot;sounds/song.mp3&amp;quot;, 373.14, -125.21, 1001, true)&lt;br /&gt;
&lt;br /&gt;
function maxdistanceFunc(command, param)&lt;br /&gt;
  setSoundMaxDistance(sound, tonumber(param))&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;setmaxdistance&amp;quot;, maxdistanceFunc)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[pt-br:setSoundMaxDistance]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HU/setSoundMaxDistance&amp;diff=71897</id>
		<title>HU/setSoundMaxDistance</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/setSoundMaxDistance&amp;diff=71897"/>
		<updated>2021-08-19T01:59:57Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function hu}}&lt;br /&gt;
Beállítja az egyéni [[sound|hang]] maximális távolságát, ahol a hang megáll.&lt;br /&gt;
&lt;br /&gt;
==Szintaxis== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundMaxDistance ( element sound, int distance )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[sound]]:setMaxDistance|maxDistance|getSoundMaxDistance}}&lt;br /&gt;
===Kötelező argumentumok=== &lt;br /&gt;
*'''sound:''' egy [[sound|hang]] elem.&lt;br /&gt;
*'''distance:''' az alapértelmezett érték 20&lt;br /&gt;
&lt;br /&gt;
===Visszaadott érték===&lt;br /&gt;
Visszaad egy ''true'' értéket, ha a maximális távolság be lett állítva, egyébként ''false''.&lt;br /&gt;
&lt;br /&gt;
==Példa== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local sound = playSound3D(&amp;quot;sounds/song.mp3&amp;quot;, 373.14, -125.21, 1001, true)&lt;br /&gt;
&lt;br /&gt;
function maxdistanceFunc(command, param)&lt;br /&gt;
  setSoundMaxDistance(sound, tonumber(param))&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;setmaxdistance&amp;quot;, maxdistanceFunc)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Lásd még==&lt;br /&gt;
{{Client_audio_functions hu}}&lt;br /&gt;
&lt;br /&gt;
[[en:setSoundMaxDistance]]&lt;br /&gt;
[[ar:setSoundMaxDistance]]&lt;br /&gt;
[[pt-br:setSoundMaxDistance]]&lt;br /&gt;
&lt;br /&gt;
==Fordította==&lt;br /&gt;
* '''''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''''&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetSoundMaxDistance&amp;diff=71896</id>
		<title>SetSoundMaxDistance</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetSoundMaxDistance&amp;diff=71896"/>
		<updated>2021-08-19T01:59:50Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Sets a custom [[sound]] max distance at which the sound stops.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundMaxDistance ( element sound, int distance )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[sound]]:setMaxDistance|maxDistance|getSoundMaxDistance}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' a [[sound]] element.&lt;br /&gt;
*'''distance:''' the default value for this is 20&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''true'' if the max distance was set, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local sound = playSound3D(&amp;quot;sounds/song.mp3&amp;quot;, 373.14, -125.21, 1001, true)&lt;br /&gt;
&lt;br /&gt;
function maxdistanceFunc(command, param)&lt;br /&gt;
  setSoundMaxDistance(sound, tonumber(param))&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;setmaxdistance&amp;quot;, maxdistanceFunc)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:setSoundMaxDistance]]&lt;br /&gt;
[[ar:setSoundMaxDistance]]&lt;br /&gt;
[[pt-br:setSoundMaxDistance]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PT-BR/setSoundMaxDistance&amp;diff=71895</id>
		<title>PT-BR/setSoundMaxDistance</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/setSoundMaxDistance&amp;diff=71895"/>
		<updated>2021-08-19T01:59:29Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: Created page with &amp;quot;__NOTOC__  {{BR/Funcao cliente}} Essa função defini a distância máxima em que um áudio pode ser ouvido.  ==Sintaxe==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundM...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{BR/Funcao cliente}}&lt;br /&gt;
Essa função defini a distância máxima em que um [[sound|áudio]] pode ser ouvido.&lt;br /&gt;
&lt;br /&gt;
==Sintaxe== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundMaxDistance ( element audio, int distancia )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
{{BR/OOP||[[sound|audio]]:setMaxDistance|maxDistance|getSoundMaxDistance}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos necessários=== &lt;br /&gt;
*'''audio:''' o elemento de [[sound|áudio]].&lt;br /&gt;
*'''distancia:''' a distância máxima. O valor padrão é 20.&lt;br /&gt;
&lt;br /&gt;
===Retorno===&lt;br /&gt;
Retorna ''true'' se a distância máxima foi mudada com sucesso, do contrário retorna ''false''.&lt;br /&gt;
&lt;br /&gt;
==Exemplo== &lt;br /&gt;
Esse exemplo cria um áudio no mundo e te permite mudar sua distância máxima usando o comando '/distancia &amp;lt;int&amp;gt;'&lt;br /&gt;
&amp;lt;section name=&amp;quot;Cliente&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local audio = playSound3D(&amp;quot;audio.mp3&amp;quot;, 373.14, -125.21, 1001, true)&lt;br /&gt;
&lt;br /&gt;
function definiDistancia(comando, distancia)&lt;br /&gt;
  setSoundMaxDistance(audio, tonumber(distancia))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;distancia&amp;quot;, definiDistancia)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Veja também==&lt;br /&gt;
{{PT-BR/Funcoes_audio_client}}&lt;br /&gt;
&lt;br /&gt;
[[en:setSoundMaxDistance]]&lt;br /&gt;
[[hu:setSoundMaxDistance]]&lt;br /&gt;
[[ar:setSoundMaxDistance]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71894</id>
		<title>Template:PT-BR/Funcoes audio client</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71894"/>
		<updated>2021-08-19T01:54:14Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannel|getRadioChannel]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannelName|getRadioChannelName]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSFXStatus|getSFXStatus]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBPM|getSoundBPM]]&lt;br /&gt;
{{New items|3.0157|1.5.6|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBufferLength|getSoundBufferLength]]&lt;br /&gt;
|16216}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffects|getSoundEffects]]&lt;br /&gt;
{{New items|3.0159|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffectParameters|getSoundEffectParameters]]&lt;br /&gt;
|20914}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundFFTData|getSoundFFTData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLength|getSoundLength]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLevelData|getSoundLevelData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMaxDistance|getSoundMaxDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMetaTags|getSoundMetaTags]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMinDistance|getSoundMinDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPan|getSoundPan]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPosition|getSoundPosition]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundProperties|getSoundProperties]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundSpeed|getSoundSpeed]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundVolume|getSoundVolume]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundWaveData|getSoundWaveData]]&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundLooped|isSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPanningEnabled|isSoundPanningEnabled]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPaused|isSoundPaused]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX|playSFX]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX3D|playSFX3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound|playSound]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound3D|playSound3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSoundFrontEnd|playSoundFrontEnd]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setRadioChannel|setRadioChannel]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setSoundEffectEnabled|setSoundEffectEnabled]]&lt;br /&gt;
{{New items|3.0159|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setSoundEffectParameter|setSoundEffectParameter]]&lt;br /&gt;
|20914}}&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setSoundLooped|setSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[setSoundMaxDistance]]&lt;br /&gt;
*[[setSoundMinDistance]]&lt;br /&gt;
*[[setSoundPan]]&lt;br /&gt;
*[[setSoundPanningEnabled]]&lt;br /&gt;
*[[setSoundPaused]]&lt;br /&gt;
*[[setSoundPosition]]&lt;br /&gt;
*[[setSoundProperties]]&lt;br /&gt;
*[[setSoundSpeed]]&lt;br /&gt;
*[[setSoundVolume]]&lt;br /&gt;
*[[stopSound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetSoundLooped&amp;diff=71893</id>
		<title>SetSoundLooped</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetSoundLooped&amp;diff=71893"/>
		<updated>2021-08-19T01:53:39Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0159|1.5.8|20785|This function is used to change the loop option of the [[sound]] [[element]].}}&lt;br /&gt;
{{Note|If the [[sound]] [[element]] is destroyed by [[destroyElement]] the loop will not happen.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundLooped ( element theSound, bool loop )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[sound]]:setLooped||isSoundLooped}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theSound:''' The [[sound]] [[element]] to set the loop.&lt;br /&gt;
*'''bool:''' A [[boolean]] representing whether the sound will be looped. &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the [[sound]] [[element]] loop was successfully changed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
This example creates a sound element and turn on its looping&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local mySound = playSound('sound.mp3')&lt;br /&gt;
setSoundLooped(mySound, true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[PT-BR:setSoundLooped]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PT-BR/setSoundLooped&amp;diff=71892</id>
		<title>PT-BR/setSoundLooped</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/setSoundLooped&amp;diff=71892"/>
		<updated>2021-08-19T01:51:31Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: Created page with &amp;quot;__NOTOC__  {{BR/Funcao cliente}} {{New feature/item|3.0159|1.5.8|20785|Essa função é usada para mudar o estado de repetição de um elemento de áudio.}} {{Note|S...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{BR/Funcao cliente}}&lt;br /&gt;
{{New feature/item|3.0159|1.5.8|20785|Essa função é usada para mudar o estado de repetição de um elemento de [[sound|áudio]].}}&lt;br /&gt;
{{Note|Se o elemento de [[sound|áudio]] foi destruído por [[destroyElement]] a repetição não acontecerá.}}&lt;br /&gt;
&lt;br /&gt;
==Sintaxe== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundLooped ( element audio, bool repetir )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
{{BR/OOP||[[sound|audio]]:setLooped||isSoundLooped}}&lt;br /&gt;
&lt;br /&gt;
===Parâmetros necessários=== &lt;br /&gt;
*'''audio:''' o elemento de [[sound|áudio]].&lt;br /&gt;
*'''repetir:''' Um [[boolean]] representando se o áudio deve repetir-se ou não. &lt;br /&gt;
&lt;br /&gt;
===Retorno===&lt;br /&gt;
Retorna ''true'' se o estado de repetição do elemento de [[sound|áudio]] foi mudado corretamente, do contrário retorna ''false''.&lt;br /&gt;
&lt;br /&gt;
===Exemplo===&lt;br /&gt;
Este exemplo cria um áudio e ativa sua repetição.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Cliente&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local audio = playSound(&amp;quot;audio.mp3&amp;quot;)&lt;br /&gt;
setSoundLooped(audio, true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Veja também==&lt;br /&gt;
{{PT-BR/Funcoes_audio_client}}&lt;br /&gt;
&lt;br /&gt;
[[EN:setSoundLooped]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71891</id>
		<title>Template:PT-BR/Funcoes audio client</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71891"/>
		<updated>2021-08-19T01:45:43Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannel|getRadioChannel]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannelName|getRadioChannelName]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSFXStatus|getSFXStatus]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBPM|getSoundBPM]]&lt;br /&gt;
{{New items|3.0157|1.5.6|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBufferLength|getSoundBufferLength]]&lt;br /&gt;
|16216}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffects|getSoundEffects]]&lt;br /&gt;
{{New items|3.0159|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffectParameters|getSoundEffectParameters]]&lt;br /&gt;
|20914}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundFFTData|getSoundFFTData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLength|getSoundLength]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLevelData|getSoundLevelData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMaxDistance|getSoundMaxDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMetaTags|getSoundMetaTags]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMinDistance|getSoundMinDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPan|getSoundPan]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPosition|getSoundPosition]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundProperties|getSoundProperties]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundSpeed|getSoundSpeed]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundVolume|getSoundVolume]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundWaveData|getSoundWaveData]]&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundLooped|isSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPanningEnabled|isSoundPanningEnabled]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPaused|isSoundPaused]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX|playSFX]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX3D|playSFX3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound|playSound]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound3D|playSound3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSoundFrontEnd|playSoundFrontEnd]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setRadioChannel|setRadioChannel]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setSoundEffectEnabled|setSoundEffectEnabled]]&lt;br /&gt;
{{New items|3.0159|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setSoundEffectParameter|setSoundEffectParameter]]&lt;br /&gt;
|20914}}&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[setSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[setSoundMaxDistance]]&lt;br /&gt;
*[[setSoundMinDistance]]&lt;br /&gt;
*[[setSoundPan]]&lt;br /&gt;
*[[setSoundPanningEnabled]]&lt;br /&gt;
*[[setSoundPaused]]&lt;br /&gt;
*[[setSoundPosition]]&lt;br /&gt;
*[[setSoundProperties]]&lt;br /&gt;
*[[setSoundSpeed]]&lt;br /&gt;
*[[setSoundVolume]]&lt;br /&gt;
*[[stopSound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetSoundEffectParameter&amp;diff=71890</id>
		<title>SetSoundEffectParameter</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetSoundEffectParameter&amp;diff=71890"/>
		<updated>2021-08-19T01:45:12Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0159|1.5.8|20914|This function sets the parameter of a sound effect.}}&lt;br /&gt;
{{Note|Using this function on a player voice sound element is not supported at this time.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundEffectParameter ( element sound, string effectName, string effectParam, var paramValue )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[sound]]:setEffectParameter}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''sound''': the [[sound]] element.&lt;br /&gt;
*'''effectName''': the name of the effect whose parameter you want to change.&lt;br /&gt;
{{Sound_Effects}}&lt;br /&gt;
*'''effectParam''': the parameter [[#Effects Parameters|name]].&lt;br /&gt;
*'''paramValue''': the parameter [[#Effects Parameters|value]].&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns '''true''' if everything went well, error is raised otherwise.&lt;br /&gt;
&lt;br /&gt;
===Effects Parameters===&lt;br /&gt;
{{Sound_Effects_Parameters}}&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20914|}}&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local sound = playSound3D(&amp;quot;music.mp3&amp;quot;, 0, 0, 10)&lt;br /&gt;
setSoundEffectEnabled(sound, &amp;quot;echo&amp;quot;, true)&lt;br /&gt;
setSoundEffectParameter(sound, &amp;quot;echo&amp;quot;, &amp;quot;wetDryMix&amp;quot;, 80)&lt;br /&gt;
setSoundEffectParameter(sound, &amp;quot;echo&amp;quot;, &amp;quot;feedback&amp;quot;, 30)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[PT-BR:setSoundEffectParameter]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PT-BR/setSoundEffectParameter&amp;diff=71889</id>
		<title>PT-BR/setSoundEffectParameter</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/setSoundEffectParameter&amp;diff=71889"/>
		<updated>2021-08-19T01:44:55Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: Created page with &amp;quot;__NOTOC__  {{BR/Funcao cliente}} {{New feature/item|3.0159|1.5.8|20914|Essa função defini um parâmetro de um efeito sonoro.}} {{Note|Usar essa função com a voz do playe...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{BR/Funcao cliente}}&lt;br /&gt;
{{New feature/item|3.0159|1.5.8|20914|Essa função defini um parâmetro de um efeito sonoro.}}&lt;br /&gt;
{{Note|Usar essa função com a voz do [[player|jogador]] ainda não é suportado.}}&lt;br /&gt;
&lt;br /&gt;
==Sintaxe== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundEffectParameter ( element audio, string efeito, string parametro, var valor )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{BR/OOP||[[sound|audio]]:setEffectParameter}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos necessários===&lt;br /&gt;
*'''audio''': o elemento de [[sound|áudio]].&lt;br /&gt;
*'''efeito''': o nome do efeito ao qual você deseja mudar o parâmetro. Valores possíveis são:&lt;br /&gt;
{{Sound_Effects}}&lt;br /&gt;
*'''parametro''': o [[#Effects Parameters|nome do parâmetro]].&lt;br /&gt;
*'''valor''': o [[#Effects Parameters|valor do parâmetro]].&lt;br /&gt;
&lt;br /&gt;
===Retorno===&lt;br /&gt;
Retorna ''true'' se tudo deu carto, do contrário retorna ''false''.&lt;br /&gt;
&lt;br /&gt;
===Parâmetros de efeitos sonoros===&lt;br /&gt;
{{Sound_Effects_Parameters}}&lt;br /&gt;
&lt;br /&gt;
==Requisitos==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20914|}}&lt;br /&gt;
&lt;br /&gt;
==Exemplo== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local audio = playSound3D(&amp;quot;audio.mp3&amp;quot;, 0, 0, 10)&lt;br /&gt;
setSoundEffectEnabled(audio, &amp;quot;echo&amp;quot;, true)&lt;br /&gt;
setSoundEffectParameter(audio, &amp;quot;echo&amp;quot;, &amp;quot;wetDryMix&amp;quot;, 80)&lt;br /&gt;
setSoundEffectParameter(audio, &amp;quot;echo&amp;quot;, &amp;quot;feedback&amp;quot;, 30)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Veja também==&lt;br /&gt;
{{PT-BR/Funcoes_audio_client}}&lt;br /&gt;
&lt;br /&gt;
[[EN:setSoundEffectParameter]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71888</id>
		<title>Template:PT-BR/Funcoes audio client</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71888"/>
		<updated>2021-08-19T01:34:10Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannel|getRadioChannel]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannelName|getRadioChannelName]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSFXStatus|getSFXStatus]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBPM|getSoundBPM]]&lt;br /&gt;
{{New items|3.0157|1.5.6|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBufferLength|getSoundBufferLength]]&lt;br /&gt;
|16216}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffects|getSoundEffects]]&lt;br /&gt;
{{New items|3.0159|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffectParameters|getSoundEffectParameters]]&lt;br /&gt;
|20914}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundFFTData|getSoundFFTData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLength|getSoundLength]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLevelData|getSoundLevelData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMaxDistance|getSoundMaxDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMetaTags|getSoundMetaTags]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMinDistance|getSoundMinDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPan|getSoundPan]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPosition|getSoundPosition]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundProperties|getSoundProperties]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundSpeed|getSoundSpeed]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundVolume|getSoundVolume]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundWaveData|getSoundWaveData]]&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundLooped|isSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPanningEnabled|isSoundPanningEnabled]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPaused|isSoundPaused]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX|playSFX]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX3D|playSFX3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound|playSound]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound3D|playSound3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSoundFrontEnd|playSoundFrontEnd]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setRadioChannel|setRadioChannel]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setSoundEffectEnabled|setSoundEffectEnabled]]&lt;br /&gt;
{{New items|3.0159|1.5.8|&lt;br /&gt;
*[[setSoundEffectParameter]]&lt;br /&gt;
|20914}}&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[setSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[setSoundMaxDistance]]&lt;br /&gt;
*[[setSoundMinDistance]]&lt;br /&gt;
*[[setSoundPan]]&lt;br /&gt;
*[[setSoundPanningEnabled]]&lt;br /&gt;
*[[setSoundPaused]]&lt;br /&gt;
*[[setSoundPosition]]&lt;br /&gt;
*[[setSoundProperties]]&lt;br /&gt;
*[[setSoundSpeed]]&lt;br /&gt;
*[[setSoundVolume]]&lt;br /&gt;
*[[stopSound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71887</id>
		<title>Template:PT-BR/Funcoes audio client</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71887"/>
		<updated>2021-08-19T01:32:56Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannel|getRadioChannel]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannelName|getRadioChannelName]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSFXStatus|getSFXStatus]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBPM|getSoundBPM]]&lt;br /&gt;
{{New items|3.0157|1.5.6|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBufferLength|getSoundBufferLength]]&lt;br /&gt;
|16216}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffects|getSoundEffects]]&lt;br /&gt;
{{New items|3.0159|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffectParameters|getSoundEffectParameters]]&lt;br /&gt;
|20914}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundFFTData|getSoundFFTData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLength|getSoundLength]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLevelData|getSoundLevelData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMaxDistance|getSoundMaxDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMetaTags|getSoundMetaTags]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMinDistance|getSoundMinDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPan|getSoundPan]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPosition|getSoundPosition]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundProperties|getSoundProperties]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundSpeed|getSoundSpeed]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundVolume|getSoundVolume]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundWaveData|getSoundWaveData]]&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundLooped|isSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPanningEnabled|isSoundPanningEnabled]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPaused|isSoundPaused]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX|playSFX]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX3D|playSFX3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound|playSound]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound3D|playSound3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSoundFrontEnd|playSoundFrontEnd]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setRadioChannel|setRadioChannel]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setSoundEffectEnabled|setSoundEffectEnabled]]&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[setSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[setSoundMaxDistance]]&lt;br /&gt;
*[[setSoundMinDistance]]&lt;br /&gt;
*[[setSoundPan]]&lt;br /&gt;
*[[setSoundPanningEnabled]]&lt;br /&gt;
*[[setSoundPaused]]&lt;br /&gt;
*[[setSoundPosition]]&lt;br /&gt;
*[[setSoundProperties]]&lt;br /&gt;
*[[setSoundSpeed]]&lt;br /&gt;
*[[setSoundVolume]]&lt;br /&gt;
*[[stopSound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RO/setSoundEffectEnabled&amp;diff=71886</id>
		<title>RO/setSoundEffectEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/setSoundEffectEnabled&amp;diff=71886"/>
		<updated>2021-08-19T01:32:35Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{RO/Funcție client}}&lt;br /&gt;
Utilizat pentru a activa sau dezactiva efecte de tip [[sound]].&lt;br /&gt;
{{New feature/item|3.0132|1.3.2||&lt;br /&gt;
Utilizați elementul de tip [[player]] pentru a controla vocea unui jucător.&lt;br /&gt;
}}&lt;br /&gt;
==Sintaxă== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundEffectEnabled (element sound, string effectName, bool bEnable)&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[sound]]:setEffectEnabled}}&lt;br /&gt;
===Argumente Necesare=== &lt;br /&gt;
*'''sound:''' un [[element]] de tip [[sound]].&lt;br /&gt;
*'''effectName:''' efectul pe care doriți să îl activați sau dezactivați&lt;br /&gt;
{{Sound_Effects}}&lt;br /&gt;
*'''bEnable:''' ''true'' dacă doriți să activați efectul, ''false'' dacă doriți să dezactivați efectul.&lt;br /&gt;
&lt;br /&gt;
===Redare===&lt;br /&gt;
Redă ''true'' dacă efectul a fost setat cu succes. În caz contrar, ''false''.&lt;br /&gt;
&lt;br /&gt;
==Exemplu== &lt;br /&gt;
Acest exemplu adaugă un sunet și setează efectul sunetului la flanger.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addCommandHandler(&amp;quot;flanger&amp;quot;, function(cmd, enabled)&lt;br /&gt;
	if (isElement(waterSplashes)) then&lt;br /&gt;
		setSoundEffectEnabled(waterSplashes, cmd, enabled)&lt;br /&gt;
	else&lt;br /&gt;
		waterSplashes = playSound(&amp;quot;splashes.mp3&amp;quot;, true)&lt;br /&gt;
		setSoundEffectEnabled(waterSplashes, cmd, enabled)&lt;br /&gt;
	end&lt;br /&gt;
end, true) -- Folosim true pentru a obliga executarea comenzii doar atunci când este scrisă corect deoarece vom folosi denumirea comenzii în argumentul effectName din setSoundEffectEnabled.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{RO/ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|Adăugat elementul 'jucător' pentru a utiliza vocea jucătorului}}&lt;br /&gt;
&lt;br /&gt;
==Vizualizați de asemenea==&lt;br /&gt;
{{RO/Funcții_audio_client}}&lt;br /&gt;
&lt;br /&gt;
[[EN:setSoundEffectEnabled]]&lt;br /&gt;
[[hu:setSoundEffectEnabled]]&lt;br /&gt;
[[ar:setSoundEffectEnabled]]&lt;br /&gt;
[[pt-br:setSoundEffectEnabled]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundEffectEnabled&amp;diff=71885</id>
		<title>AR/setSoundEffectEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundEffectEnabled&amp;diff=71885"/>
		<updated>2021-08-19T01:32:27Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Used to enable or disable specific sound effects.&lt;br /&gt;
{{New_feature|3.0139|1.3.2|&lt;br /&gt;
Use a player element to control a players voice with this function.&lt;br /&gt;
}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundEffectEnabled ( element sound, string effectName, bool bEnable )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' a [[sound]] element.&lt;br /&gt;
*'''effectName:''' the effect you want to enable or disable&lt;br /&gt;
{{Sound_Effects}}&lt;br /&gt;
*'''bEnable:''' ''true'' if you want to enable the effect, ''false'' if you want to disable it.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the effect was set successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==مثال== &lt;br /&gt;
This example creates a sound and set's the flanger sound effect enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addCommandHandler(&amp;quot;flanger&amp;quot;,function(cmd,enabled)&lt;br /&gt;
	if(isElement(waterSplashes))then&lt;br /&gt;
		setSoundEffectEnabled(waterSplashes,cmd,enabled)&lt;br /&gt;
	else&lt;br /&gt;
		waterSplashes = playSound(&amp;quot;splashes.mp3&amp;quot;,true)&lt;br /&gt;
		setSoundEffectEnabled(waterSplashes,cmd,enabled)&lt;br /&gt;
	end&lt;br /&gt;
end,true) --set it case sensitive as we are going to get the command name and use it in the setSoundEffectEnabled&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|Added player element for voice control}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[pt-br:setSoundEffectEnabled]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HU/setSoundEffectEnabled&amp;diff=71884</id>
		<title>HU/setSoundEffectEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/setSoundEffectEnabled&amp;diff=71884"/>
		<updated>2021-08-19T01:32:11Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function hu}}&lt;br /&gt;
Speciális hangeffektek engedélyezéséhez, vagy letiltásához használják.&lt;br /&gt;
{{New feature/item|3.0132|1.3.2||&lt;br /&gt;
Használja a [[player|játékos]] elemet, hogy szabályozza a játékosok hangját ezzel a funkcióval.&lt;br /&gt;
}}&lt;br /&gt;
==Szintaxis== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundEffectEnabled ( element sound, string effectName, bool bEnable )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[sound]]:setEffectEnabled}}&lt;br /&gt;
===Kötelező Argumentumok=== &lt;br /&gt;
*'''sound:''' egy [[sound|hang]][[element|elem]].&lt;br /&gt;
*'''effectName:''' az effekt melyet engedélyezni, vagy letiltani szeretne&lt;br /&gt;
{{Sound_Effects}}&lt;br /&gt;
*'''bEnable:''' ''true'' ha engedélyezni szeretné az effektet, ''false'' ha letiltani szeretné.&lt;br /&gt;
&lt;br /&gt;
===Visszaadott érték===&lt;br /&gt;
''true'' értéket ad vissza, ha sikeresen be lett állítva az effekt, egyébként ''false''.&lt;br /&gt;
&lt;br /&gt;
==Példa== &lt;br /&gt;
Ez a példa létrehoz egy hangot, és engedélyezi flanger hanghatását.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addCommandHandler(&amp;quot;flanger&amp;quot;,function(cmd,enabled)&lt;br /&gt;
	if(isElement(waterSplashes))then&lt;br /&gt;
		setSoundEffectEnabled(waterSplashes,cmd,enabled)&lt;br /&gt;
	else&lt;br /&gt;
		waterSplashes = playSound(&amp;quot;splashes.mp3&amp;quot;,true)&lt;br /&gt;
		setSoundEffectEnabled(waterSplashes,cmd,enabled)&lt;br /&gt;
	end&lt;br /&gt;
end,true) --set it case sensitive as we are going to get the command name and use it in the setSoundEffectEnabled&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|Added player element for voice control}}&lt;br /&gt;
&lt;br /&gt;
==Lásd még==&lt;br /&gt;
{{Client_audio_functions hu}}&lt;br /&gt;
&lt;br /&gt;
[[en:setSoundEffectEnabled]]&lt;br /&gt;
[[ar:setSoundEffectEnabled]]&lt;br /&gt;
[[pt-br:setSoundEffectEnabled]]&lt;br /&gt;
&lt;br /&gt;
==Fordította==&lt;br /&gt;
* '''''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''''&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetSoundEffectEnabled&amp;diff=71883</id>
		<title>SetSoundEffectEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetSoundEffectEnabled&amp;diff=71883"/>
		<updated>2021-08-19T01:32:03Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Used to enable or disable specific [[sound]] effects.&lt;br /&gt;
{{New feature/item|3.0132|1.3.2||&lt;br /&gt;
Use a [[player]] element to control a players voice with this function.&lt;br /&gt;
}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundEffectEnabled ( element theSound/thePlayer, string effectName, bool bEnable )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[sound]]:setEffectEnabled}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' a [[sound]] element or a [[player]] element which will affect the [[Resource:Voice|voice]] broadcast.&lt;br /&gt;
*'''effectName:''' the effect you want to enable or disable&lt;br /&gt;
{{Sound_Effects}}&lt;br /&gt;
*'''bEnable:''' ''true'' if you want to enable the effect, ''false'' if you want to disable it.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the effect was set successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a sound and set's the flanger sound effect enabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;flanger&amp;quot;, function(cmd, enabled)&lt;br /&gt;
	if isElement(waterSplashes) then&lt;br /&gt;
		setSoundEffectEnabled(waterSplashes, cmd, enabled)&lt;br /&gt;
	else&lt;br /&gt;
		waterSplashes = playSound(&amp;quot;splashes.mp3&amp;quot;, true)&lt;br /&gt;
		setSoundEffectEnabled(waterSplashes, cmd, enabled)&lt;br /&gt;
	end&lt;br /&gt;
end, true) --set it case sensitive as we are going to get the command name and use it in the setSoundEffectEnabled&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|Added player element for voice control}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:setSoundEffectEnabled]]&lt;br /&gt;
[[ar:setSoundEffectEnabled]]&lt;br /&gt;
[[RO:setSoundEffectEnabled]]&lt;br /&gt;
[[pt-br:setSoundEffectEnabled]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PT-BR/setSoundEffectEnabled&amp;diff=71882</id>
		<title>PT-BR/setSoundEffectEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/setSoundEffectEnabled&amp;diff=71882"/>
		<updated>2021-08-19T01:31:35Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: Created page with &amp;quot;__NOTOC__  {{BR/Funcao cliente}} Usado para habilitar ou desabilitar um efeito sonoro. {{New feature/item|3.0132|1.3.2|| Utilize um elemento de jogador no...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{BR/Funcao cliente}}&lt;br /&gt;
Usado para habilitar ou desabilitar um efeito [[sound|sonoro]].&lt;br /&gt;
{{New feature/item|3.0132|1.3.2||&lt;br /&gt;
Utilize um elemento de [[player|jogador]] no primeiro argumento para controlar a transmissão de sua [[Resource:Voice|voz]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Sintaxe== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundEffectEnabled ( element audio/jogador, string efeito, bool habilitado )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
{{BR/OOP||[[sound|audio]]:setEffectEnabled}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos necessários=== &lt;br /&gt;
*'''audio/jogador:''' um elemento de [[sound|áudio]] ou [[player|jogador]].&lt;br /&gt;
*'''efeito:''' o nome do efeito que você quer habilitar ou desabilitar. Valores possíveis são:&lt;br /&gt;
{{Sound_Effects}}&lt;br /&gt;
&lt;br /&gt;
*'''habilitado:''' ''true'' se você quer habilitar, ''false'' se quer desabilitar.&lt;br /&gt;
&lt;br /&gt;
===Retorno===&lt;br /&gt;
Retorna ''true'' se o estado do efeito sonoro foi mudado com sucesso, do contrário retorna ''false''.&lt;br /&gt;
&lt;br /&gt;
==Exemplo== &lt;br /&gt;
Este exemplo cria um áudio e adiciona o efeito 'echo' à ele.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Cliente&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local audio = playSound(&amp;quot;audio.mp3&amp;quot;)&lt;br /&gt;
setSoundEffectEnabled(audio, &amp;quot;echo&amp;quot;, true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|Added player element for voice control}}&lt;br /&gt;
&lt;br /&gt;
==Veja também==&lt;br /&gt;
{{PT-BR/Funcoes_audio_client}}&lt;br /&gt;
&lt;br /&gt;
[[EN:setSoundEffectEnabled]]&lt;br /&gt;
[[HU:setSoundEffectEnabled]]&lt;br /&gt;
[[AR:setSoundEffectEnabled]]&lt;br /&gt;
[[RO:setSoundEffectEnabled]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71881</id>
		<title>Template:PT-BR/Funcoes audio client</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71881"/>
		<updated>2021-08-18T23:14:36Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannel|getRadioChannel]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannelName|getRadioChannelName]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSFXStatus|getSFXStatus]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBPM|getSoundBPM]]&lt;br /&gt;
{{New items|3.0157|1.5.6|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBufferLength|getSoundBufferLength]]&lt;br /&gt;
|16216}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffects|getSoundEffects]]&lt;br /&gt;
{{New items|3.0159|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffectParameters|getSoundEffectParameters]]&lt;br /&gt;
|20914}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundFFTData|getSoundFFTData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLength|getSoundLength]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLevelData|getSoundLevelData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMaxDistance|getSoundMaxDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMetaTags|getSoundMetaTags]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMinDistance|getSoundMinDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPan|getSoundPan]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPosition|getSoundPosition]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundProperties|getSoundProperties]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundSpeed|getSoundSpeed]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundVolume|getSoundVolume]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundWaveData|getSoundWaveData]]&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundLooped|isSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPanningEnabled|isSoundPanningEnabled]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPaused|isSoundPaused]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX|playSFX]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX3D|playSFX3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound|playSound]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound3D|playSound3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSoundFrontEnd|playSoundFrontEnd]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/setRadioChannel|setRadioChannel]]&lt;br /&gt;
*[[setSoundEffectEnabled]]&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[setSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[setSoundMaxDistance]]&lt;br /&gt;
*[[setSoundMinDistance]]&lt;br /&gt;
*[[setSoundPan]]&lt;br /&gt;
*[[setSoundPanningEnabled]]&lt;br /&gt;
*[[setSoundPaused]]&lt;br /&gt;
*[[setSoundPosition]]&lt;br /&gt;
*[[setSoundProperties]]&lt;br /&gt;
*[[setSoundSpeed]]&lt;br /&gt;
*[[setSoundVolume]]&lt;br /&gt;
*[[stopSound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RO/SetRadioChannel&amp;diff=71880</id>
		<title>RO/SetRadioChannel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/SetRadioChannel&amp;diff=71880"/>
		<updated>2021-08-18T23:14:09Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{RO/Funcție client}}&lt;br /&gt;
Această funcție setează stația radio curentă, chiar și atunci când nu ești într-un vehicul.&lt;br /&gt;
{{RO/Observații|Uneori această funcție nu funcționează atunci când stația radio este schimbată din motive necunoscute. Dacă întâmpinați această problemă, adăugați setRadiOChannel(0) la începutul script-ului, în afara oricărei alte funcții.}}&lt;br /&gt;
&lt;br /&gt;
==Sintaxă== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setRadioChannel (int ID)             &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumente Necesare=== &lt;br /&gt;
*'''ID:''' ID-ul stației radio pe care doriți să o redați.&lt;br /&gt;
&lt;br /&gt;
{{RO/ID_Stații_Radio}}&lt;br /&gt;
&lt;br /&gt;
===Redare===&lt;br /&gt;
Redă ''true'' dacă stația radio a fost setată cu succes. În caz contrar, ''false''.&lt;br /&gt;
&lt;br /&gt;
==Exemplu==&lt;br /&gt;
Acest exemplu adaugă comanda ''setradio'' care permite schimbarea stației radio curente prin introducerea noului ID.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;setradio&amp;quot;,&lt;br /&gt;
    function (command, stationID)&lt;br /&gt;
        local result = setRadioChannel(tonumber(stationID))&lt;br /&gt;
        if (result) then -- Verificăm dacă ID-ul introdus este unul valid;&lt;br /&gt;
            outputChatBox(&amp;quot;Stația radio a fost schimbată la ID: &amp;quot; .. getRadioChannelName(tonumber(stationID)) .. &amp;quot;!&amp;quot; )&lt;br /&gt;
        else&lt;br /&gt;
            outputChatBox(&amp;quot;ID stație radio nevalid. ID-urile valide sunt cuprinse între 0-12.&amp;quot; )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Probleme ==&lt;br /&gt;
{{RO/Issues|&lt;br /&gt;
{{RO/Issue|423|Uneori setRadioChannel nu funcționează atunci când nu ești într-un vehicul.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Vizualizați de asemenea==&lt;br /&gt;
&lt;br /&gt;
{{RO/Funcții_audio_client}}&lt;br /&gt;
&lt;br /&gt;
[[EN:setRadioChannel]]&lt;br /&gt;
[[hu:setRadioChannel]]&lt;br /&gt;
[[AR:setRadioChannel]]&lt;br /&gt;
[[PT-BR:setRadioChannel]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setRadioChannel&amp;diff=71879</id>
		<title>AR/setRadioChannel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setRadioChannel&amp;diff=71879"/>
		<updated>2021-08-18T23:14:01Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function sets the currently active radio channel.&lt;br /&gt;
&lt;br /&gt;
This function also works while not in a vehicle.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setRadioChannel ( int ID )             &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''ID:''' .ايدي الراديو الذي تريد تشغيله&lt;br /&gt;
&lt;br /&gt;
{{SoundID}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;quot;true&amp;quot; اذا تم تعين محطة راديو بنجاح&lt;br /&gt;
&amp;quot;false&amp;quot; اذا لم يتم تعين محطة راديو&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
هذا المثال يقوم بأضافة امر &amp;quot;setradio &amp;quot; لتغير قناة الراديو الحالية عبر الايدي&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler ( &amp;quot;setradio&amp;quot;, -- &amp;quot;setradio&amp;quot; اضافة امر &lt;br /&gt;
    function ( command, stationID ) -- تعريف&lt;br /&gt;
        local result = setRadioChannel ( tonumber( stationID ) ) -- وضع قناة الراديو عبر الايدي&lt;br /&gt;
        if result then -- if we had a valid ID&lt;br /&gt;
            outputChatBox ( &amp;quot;Changed your radio station to &amp;quot; .. getRadioChannelName ( tonumber ( stationID ) ) .. &amp;quot;!&amp;quot; ) -- اضهار نص في الشات&lt;br /&gt;
        else&lt;br /&gt;
            outputChatBox ( &amp;quot;Invalid radio station ID, valid ones are 0-12.&amp;quot; ) -- اضهار نص في الشات&lt;br /&gt;
        end&lt;br /&gt;
    end &lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
&lt;br /&gt;
{{AR/Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[PT-BR:setRadioChannel]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HU/setRadioChannel&amp;diff=71878</id>
		<title>HU/setRadioChannel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/setRadioChannel&amp;diff=71878"/>
		<updated>2021-08-18T23:13:39Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function hu}}&lt;br /&gt;
Ez a funkció a rádiócsatornát állítja be, még akkor is, ha nincs a járműben.&lt;br /&gt;
{{Note_hu|Ez a funkció ismeretlen okokból néha nem működük, ha a rádiót egy másik csatornára állítjuk be, mint a jelenlegi. Ha ezt a problémát tapasztalja, egyszerűen csak adja hozzá a setRadioChannel(0)-t a szkript legelején, bármelyik funkción kívül.}}&lt;br /&gt;
&lt;br /&gt;
==Szintaxis== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setRadioChannel ( int ID )             &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Kötelező Argumentumo=== &lt;br /&gt;
*'''ID:''' A lejátszani kívánt rádióállomás ID-je.&lt;br /&gt;
&lt;br /&gt;
{{SoundID}}&lt;br /&gt;
&lt;br /&gt;
===Visszaadott érték===&lt;br /&gt;
''true'' értéket ad vissza, ha sikeresen be lett állítva a csatorna, egyébként ''false''.&lt;br /&gt;
&lt;br /&gt;
==Példa==&lt;br /&gt;
Ez a pálda hozzáad egy ''setradio'' parancsot, amely az aktuális rádióállomás megváltoztatására szolgál az ID-k használatával.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler ( &amp;quot;setradio&amp;quot;,&lt;br /&gt;
    function ( command, stationID )&lt;br /&gt;
        local result = setRadioChannel ( tonumber( stationID ) )&lt;br /&gt;
        if result then -- ha volt egy érvényes ID-nk&lt;br /&gt;
            outputChatBox ( &amp;quot;Changed your radio station to &amp;quot; .. getRadioChannelName ( tonumber ( stationID ) ) .. &amp;quot;!&amp;quot; )&lt;br /&gt;
        else&lt;br /&gt;
            outputChatBox ( &amp;quot;Invalid radio station ID, valid ones are 0-12.&amp;quot; )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Issues ==&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|8908|setRadioChannel néha nem működik, ha a járművön kívül vagyunk}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Lásd még==&lt;br /&gt;
&lt;br /&gt;
{{Client_audio_functions hu}}&lt;br /&gt;
&lt;br /&gt;
[[en:setRadioChannel]]&lt;br /&gt;
[[AR:setRadioChannel]]&lt;br /&gt;
[[PT-BR:setRadioChannel]]&lt;br /&gt;
&lt;br /&gt;
==Fordította==&lt;br /&gt;
* '''''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''''&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetRadioChannel&amp;diff=71877</id>
		<title>SetRadioChannel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetRadioChannel&amp;diff=71877"/>
		<updated>2021-08-18T23:13:30Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function sets the heard radio channel, even while not in a vehicle.&lt;br /&gt;
{{Note|This function sometimes doesn't work when setting the radio channel to another different from the current one due to unknown reasons. If you experience this issue, simply add setRadioChannel(0) at the beginning of the script, outside any function.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setRadioChannel ( int ID )             &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''ID:''' The ID of the radio station you want to play.&lt;br /&gt;
&lt;br /&gt;
{{SoundID}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if channel was set successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example adds a command ''setradio'' which can be used to change the current radio station by ID.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler ( &amp;quot;setradio&amp;quot;,&lt;br /&gt;
    function ( command, stationID )&lt;br /&gt;
        local result = setRadioChannel ( tonumber( stationID ) )&lt;br /&gt;
        if result then -- if we had a valid ID&lt;br /&gt;
            outputChatBox ( &amp;quot;Changed your radio station to &amp;quot; .. getRadioChannelName ( tonumber ( stationID ) ) .. &amp;quot;!&amp;quot; )&lt;br /&gt;
        else&lt;br /&gt;
            outputChatBox ( &amp;quot;Invalid radio station ID, valid ones are 0-12.&amp;quot; )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Issues ==&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|8908|setRadioChannel sometimes doesn't work when outside a vehicle}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:setRadioChannel]]&lt;br /&gt;
[[AR:setRadioChannel]]&lt;br /&gt;
[[RO:SetRadioChannel]]&lt;br /&gt;
[[PT-BR:setRadioChannel]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PT-BR/setRadioChannel&amp;diff=71876</id>
		<title>PT-BR/setRadioChannel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/setRadioChannel&amp;diff=71876"/>
		<updated>2021-08-18T23:13:07Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: Created page with &amp;quot;__NOTOC__  {{BR/Funcao cliente}} Essa função defini a estação de rádio atual mesmo se o jogador estiver fora de um veículo.  {{Note|As vezes essa função nã...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{BR/Funcao cliente}}&lt;br /&gt;
Essa função defini a estação de rádio atual mesmo se o [[player|jogador]] estiver fora de um veículo.&lt;br /&gt;
&lt;br /&gt;
{{Note|As vezes essa função não funciona ao definir uma estação de rádio diferente da automaticamente selecionada quando o script é iniciado. Se você experienciar esse tipo de problema, simplesmente adicione '''setRadioChannel(0)''' no início do script, fora de qualquer função.}}&lt;br /&gt;
&lt;br /&gt;
==Sintaxe== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setRadioChannel ( int id )             &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''id:''' o id da estação de rádio que você quer reproduzir. Valores possíveis são:&lt;br /&gt;
&lt;br /&gt;
{{SoundID}}&lt;br /&gt;
&lt;br /&gt;
===Retorno===&lt;br /&gt;
Retorna ''true'' se a estação de rádio foi definida com sucesso, do contrário retorna ''false''.&lt;br /&gt;
&lt;br /&gt;
==Exemplo==&lt;br /&gt;
Este exemplo permite mudar a estação de rádio usando o comando '/estacao &amp;lt;id&amp;gt;'.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler ( &amp;quot;estacao&amp;quot;,&lt;br /&gt;
    function ( comando, id )&lt;br /&gt;
        local result = setRadioChannel ( tonumber( id ) )&lt;br /&gt;
        if result then -- se foi selecionada com sucesso&lt;br /&gt;
            outputChatBox ( &amp;quot;Você está agora ouvindo à &amp;quot; .. getRadioChannelName ( tonumber ( id ) ) .. &amp;quot;!&amp;quot; )&lt;br /&gt;
        else&lt;br /&gt;
            outputChatBox ( &amp;quot;ID da estação de rádio inválido. Valores possíveis são 0-12.&amp;quot; )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Problemas==&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|8908|setRadioChannel as vezes não funciona fora de um veículo}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Veja também==&lt;br /&gt;
{{PT-BR/Funcoes_audio_client}}&lt;br /&gt;
&lt;br /&gt;
[[EN:setRadioChannel]]&lt;br /&gt;
[[HU:setRadioChannel]]&lt;br /&gt;
[[AR:setRadioChannel]]&lt;br /&gt;
[[RO:SetRadioChannel]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71875</id>
		<title>Template:PT-BR/Funcoes audio client</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71875"/>
		<updated>2021-08-18T22:59:33Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannel|getRadioChannel]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannelName|getRadioChannelName]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSFXStatus|getSFXStatus]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBPM|getSoundBPM]]&lt;br /&gt;
{{New items|3.0157|1.5.6|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBufferLength|getSoundBufferLength]]&lt;br /&gt;
|16216}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffects|getSoundEffects]]&lt;br /&gt;
{{New items|3.0159|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffectParameters|getSoundEffectParameters]]&lt;br /&gt;
|20914}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundFFTData|getSoundFFTData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLength|getSoundLength]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLevelData|getSoundLevelData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMaxDistance|getSoundMaxDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMetaTags|getSoundMetaTags]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMinDistance|getSoundMinDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPan|getSoundPan]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPosition|getSoundPosition]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundProperties|getSoundProperties]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundSpeed|getSoundSpeed]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundVolume|getSoundVolume]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundWaveData|getSoundWaveData]]&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundLooped|isSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPanningEnabled|isSoundPanningEnabled]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPaused|isSoundPaused]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX|playSFX]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX3D|playSFX3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound|playSound]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound3D|playSound3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSoundFrontEnd|playSoundFrontEnd]]&lt;br /&gt;
*[[setRadioChannel]]&lt;br /&gt;
*[[setSoundEffectEnabled]]&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[setSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[setSoundMaxDistance]]&lt;br /&gt;
*[[setSoundMinDistance]]&lt;br /&gt;
*[[setSoundPan]]&lt;br /&gt;
*[[setSoundPanningEnabled]]&lt;br /&gt;
*[[setSoundPaused]]&lt;br /&gt;
*[[setSoundPosition]]&lt;br /&gt;
*[[setSoundProperties]]&lt;br /&gt;
*[[setSoundSpeed]]&lt;br /&gt;
*[[setSoundVolume]]&lt;br /&gt;
*[[stopSound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/playSoundFrontEnd&amp;diff=71874</id>
		<title>AR/playSoundFrontEnd</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/playSoundFrontEnd&amp;diff=71874"/>
		<updated>2021-08-18T22:58:50Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
هذه الوظيفة تقوم بتشغيل صوت من اصوات اللعبة الافتراضية مثل صوت الرصاص والخ..&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool playSoundFrontEnd ( player thePlayer, int sound )   &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===الارقومنتات المطلوبه=== &lt;br /&gt;
*'''thePlayer:''' [[player]] انت تريد الصوت يشتغل الى ؟.&lt;br /&gt;
*'''sound:''' [[int]]  تحديد ايدي الصوت للتشغيل :&lt;br /&gt;
{{Sounds}}&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool playSoundFrontEnd ( int sound )   &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===الارقومنتات المطلوبه=== &lt;br /&gt;
*'''sound:''' [[int]]  تحديد الاي دي الصوت للتشغيل :&lt;br /&gt;
{{Sounds}}&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' = اذا تم تشغيل الصوت بنجاح, ''false'' = اذا لم يتم تشغيله.&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
&amp;lt;section name=&amp;quot;server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
هذا المثال يشغل الصوت عند السباون &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerSpawn ( theSpawnpoint, theTeam )&lt;br /&gt;
    playSoundFrontEnd ( source, 16 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerSpawn&amp;quot;, getRootElement(), onPlayerSpawn ) --- الحدث عند السباون&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'/sound'  هذا المثال عندما الاعب يكتب في الشات&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onSoundEvent ( )&lt;br /&gt;
    playSoundFrontEnd ( 16 )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;sound&amp;quot;, onSoundEvent)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[de:playSoundFrontEnd]]&lt;br /&gt;
[[pt-br:playSoundFrontEnd]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DE/playSoundFrontEnd&amp;diff=71873</id>
		<title>DE/playSoundFrontEnd</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/playSoundFrontEnd&amp;diff=71873"/>
		<updated>2021-08-18T22:58:42Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DE/Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Diese Funktion spielt einen bestimmten Sound für einen [[DE/Element/Player|Spieler]] ab.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool playSoundFrontEnd ( spieler thePlayer, int sound )   &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Benötigte Argumente=== &lt;br /&gt;
*'''thePlayer:''' Der [[DE/Element/Player|Spieler]], der den Sound hören soll&lt;br /&gt;
*'''sound:''' Ein [[DE/Int|int]] der für den Sound steht. Mögliche IDs sind:&lt;br /&gt;
{{DE/Sounds}}&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool playSoundFrontEnd ( int sound )   &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Benötigte Argumente=== &lt;br /&gt;
*'''sound:''' Ein [[DE/Int|int]] der für den Sound steht. Mögliche IDs sind:&lt;br /&gt;
{{Sounds}}&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Rückgaben===&lt;br /&gt;
Gibt ''true'' zurück, wenn der Sound erfolgreich abgespielt wurde. ''false'', wenn nicht.&lt;br /&gt;
&lt;br /&gt;
==Beispiel==&lt;br /&gt;
&amp;lt;section name=&amp;quot;server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Dieses Beispiel spielt einen Sound ab, wenn der [[DE/Element/Player|Spieler]] spawnt.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerSpawn ( theSpawnpoint, theTeam )&lt;br /&gt;
    playSoundFrontEnd ( source, 16 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerSpawn&amp;quot;, getRootElement(), onPlayerSpawn )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Dieses Beispiel spielt einen Sound ab, wenn der [[DE/Element/Player|Spieler]] den Befehl '/sound' eintippt.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onSoundEvent ( )&lt;br /&gt;
    playSoundFrontEnd ( 16 )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;sound&amp;quot;, onSoundEvent)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Siehe auch==&lt;br /&gt;
{{DE/Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:playSoundFrontEnd]]&lt;br /&gt;
[[pt-br:playSoundFrontEnd]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HU/playSoundFrontEnd&amp;diff=71872</id>
		<title>HU/playSoundFrontEnd</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/playSoundFrontEnd&amp;diff=71872"/>
		<updated>2021-08-18T22:58:25Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function }}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Ez a funkció egy elülső hangot játszik le a megadott játékosnak.&lt;br /&gt;
{{Note_hu|Ezeket a hangokat kilehet kapcsolni a [[setWorldSoundEnabled]]-el, tehát ha ezek a hangok nem működnek, ellenőriznie kell, hogy nincsenek-e kikapcsolva.}}&lt;br /&gt;
&lt;br /&gt;
==Szintaxis== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool playSoundFrontEnd ( player thePlayer, int sound )   &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{New feature/item|3.0141|1.4.0|6987|{{OOP||[[player]]:playSoundFrontEnd}}}}&lt;br /&gt;
&lt;br /&gt;
===Kötelező Argumentumok=== &lt;br /&gt;
*'''thePlayer:''' a [[player|játékos]], akinek szeretné, hogy lejátsza a hangot.&lt;br /&gt;
*'''sound:''' egy egész [[int]], amely meghatározza a hang idét a lejátszáshoz. Érvényes értékek:&lt;br /&gt;
{{Sounds}}&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool playSoundFrontEnd ( int sound )   &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{New feature/item|3.0141|1.4.0|6987|{{OOP||[[Sound]].playFrontEnd}}}}&lt;br /&gt;
&lt;br /&gt;
===Kötelező Argumentumok=== &lt;br /&gt;
*'''sound:''' egy egész [[int]], amely meghatározza a hang idét a lejátszáshoz. Érvényes értékek:&lt;br /&gt;
{{Sounds}}&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Visszaadott érték===&lt;br /&gt;
Visszaad egy ''igaz'' értéket, ha a hang sikeresen létre lett hozva, egyébként ''hamis''.&lt;br /&gt;
&lt;br /&gt;
==Példa==&lt;br /&gt;
&amp;lt;section name=&amp;quot;server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Ez a példa egy hangot játszik le mikor egy játékos lerakott.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerSpawn ( theSpawnpoint, theTeam )&lt;br /&gt;
    playSoundFrontEnd ( source, 16 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerSpawn&amp;quot;, root, onPlayerSpawn )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Ez a példa egy hangot játszik le amikor egy játékos beírja a '/sound' parancsot.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onSoundEvent ( )&lt;br /&gt;
    playSoundFrontEnd ( 16 )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;sound&amp;quot;, onSoundEvent)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Lásd még==&lt;br /&gt;
{{Client_audio_functions hu}}&lt;br /&gt;
&lt;br /&gt;
[[en:playSoundFrontEnd]]&lt;br /&gt;
[[de:playSoundFrontEnd]]&lt;br /&gt;
[[ar:playSoundFrontEnd]]&lt;br /&gt;
[[pt-br:playSoundFrontEnd]]&lt;br /&gt;
&lt;br /&gt;
==Fordította==&lt;br /&gt;
* '''''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''''&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PlaySoundFrontEnd&amp;diff=71871</id>
		<title>PlaySoundFrontEnd</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PlaySoundFrontEnd&amp;diff=71871"/>
		<updated>2021-08-18T22:58:17Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function plays a frontend sound for the specified player.&lt;br /&gt;
{{Note|These sounds can be disabled with [[setWorldSoundEnabled]] so if these sounds stop working you should check if you're disabling the sounds.}}&lt;br /&gt;
{{Note|These sounds don't work when [[fadeCamera]] has been used to make the screen black.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool playSoundFrontEnd ( player thePlayer, int sound )   &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{New feature/item|3.0141|1.4.0|6987|{{OOP||[[player]]:playSoundFrontEnd}}}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' the [[player]] you want the sound to play for.&lt;br /&gt;
*'''sound:''' a whole [[int]] specifying the sound id to play. Valid values are:&lt;br /&gt;
{{Sounds}}&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool playSoundFrontEnd ( int sound )   &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{New feature/item|3.0141|1.4.0|6987|{{OOP||[[Sound]].playFrontEnd}}}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''sound:''' a whole [[int]] specifying the sound id to play. Valid values are:&lt;br /&gt;
{{Sounds}}&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the sound was successfully played, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example plays a sound when a player spawns.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerSpawn ( theSpawnpoint, theTeam )&lt;br /&gt;
    playSoundFrontEnd ( source, 16 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerSpawn&amp;quot;, root, onPlayerSpawn )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example plays a sound when the player types the command '/sound'.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onSoundEvent ( )&lt;br /&gt;
    playSoundFrontEnd ( 16 )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;sound&amp;quot;, onSoundEvent)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:playSoundFrontEnd]]&lt;br /&gt;
[[de:playSoundFrontEnd]]&lt;br /&gt;
[[ar:playSoundFrontEnd]]&lt;br /&gt;
[[pt-br:playSoundFrontEnd]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PT-BR/playSoundFrontEnd&amp;diff=71870</id>
		<title>PT-BR/playSoundFrontEnd</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/playSoundFrontEnd&amp;diff=71870"/>
		<updated>2021-08-18T22:57:57Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: Created page with &amp;quot;{{BR/Funcao compartilhada}} __NOTOC__ Essa função reproduz alguns efeitos sonoros da interface do GTA:SA para o jogador especificado.  {{Note|Esses efeitos sonoros podem ser...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BR/Funcao compartilhada}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Essa função reproduz alguns efeitos sonoros da interface do GTA:SA para o jogador especificado.&lt;br /&gt;
&lt;br /&gt;
{{Note|Esses efeitos sonoros podem ser desabilitados utilizando a função [[setWorldSoundEnabled]], portanto, se esses sons pararem de funcionar, verifique se você não está desabilitando-os.}}&lt;br /&gt;
{{Note|Esses efeitos sonoros não funcionarão com a camera apagada (quando você usa [[fadeCamera]] passando ''false'').}}&lt;br /&gt;
&lt;br /&gt;
==Sintaxe== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool playSoundFrontEnd ( player jogador, int idAudio )   &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{New feature/item|3.0141|1.4.0|6987|{{BR/OOP||[[player|jogador]]:playSoundFrontEnd}}}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos necessários=== &lt;br /&gt;
*'''jogador:''' o [[player|jogador]] que você deseja reproduzir o áudio.&lt;br /&gt;
*'''idAudio:''' um [[int]] especificando o ID do áudio. Valores válidos são:&lt;br /&gt;
{{Sounds}}&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool playSoundFrontEnd ( int idAudio )   &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{New feature/item|3.0141|1.4.0|6987|{{BR/OOP||[[Sound]].playFrontEnd}}}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos necessários=== &lt;br /&gt;
*'''idAudio:''' um [[int]] especificando o ID do áudio. Valores válidos são:&lt;br /&gt;
{{Sounds}}&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Retorno===&lt;br /&gt;
Retorna ''true'' se o áudio começou a reproduzir com sucesso, do contrário retorna ''false''.&lt;br /&gt;
&lt;br /&gt;
==Exemplo==&lt;br /&gt;
&amp;lt;section name=&amp;quot;server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Este exemplo reproduz um áudio assim que o player spawnar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerSpawn ( theSpawnpoint, theTeam )&lt;br /&gt;
    playSoundFrontEnd ( source, 16 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerSpawn&amp;quot;, root, onPlayerSpawn )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Este exemplo reproduz um áudio ao executar o comando '/audio'.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onSoundEvent ( )&lt;br /&gt;
    playSoundFrontEnd ( 16 )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;audio&amp;quot;, onSoundEvent)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Veja também==&lt;br /&gt;
{{PT-BR/Funcoes_audio_client}}&lt;br /&gt;
&lt;br /&gt;
[[en:playSoundFrontEnd]]&lt;br /&gt;
[[hu:playSoundFrontEnd]]&lt;br /&gt;
[[de:playSoundFrontEnd]]&lt;br /&gt;
[[ar:playSoundFrontEnd]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71869</id>
		<title>Template:PT-BR/Funcoes audio client</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71869"/>
		<updated>2021-08-18T22:11:07Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannel|getRadioChannel]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannelName|getRadioChannelName]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSFXStatus|getSFXStatus]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBPM|getSoundBPM]]&lt;br /&gt;
{{New items|3.0157|1.5.6|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBufferLength|getSoundBufferLength]]&lt;br /&gt;
|16216}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffects|getSoundEffects]]&lt;br /&gt;
{{New items|3.0159|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffectParameters|getSoundEffectParameters]]&lt;br /&gt;
|20914}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundFFTData|getSoundFFTData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLength|getSoundLength]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLevelData|getSoundLevelData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMaxDistance|getSoundMaxDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMetaTags|getSoundMetaTags]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMinDistance|getSoundMinDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPan|getSoundPan]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPosition|getSoundPosition]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundProperties|getSoundProperties]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundSpeed|getSoundSpeed]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundVolume|getSoundVolume]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundWaveData|getSoundWaveData]]&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundLooped|isSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPanningEnabled|isSoundPanningEnabled]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPaused|isSoundPaused]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX|playSFX]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX3D|playSFX3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound|playSound]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound3D|playSound3D]]&lt;br /&gt;
*[[playSoundFrontEnd]]&lt;br /&gt;
*[[setRadioChannel]]&lt;br /&gt;
*[[setSoundEffectEnabled]]&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[setSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[setSoundMaxDistance]]&lt;br /&gt;
*[[setSoundMinDistance]]&lt;br /&gt;
*[[setSoundPan]]&lt;br /&gt;
*[[setSoundPanningEnabled]]&lt;br /&gt;
*[[setSoundPaused]]&lt;br /&gt;
*[[setSoundPosition]]&lt;br /&gt;
*[[setSoundProperties]]&lt;br /&gt;
*[[setSoundSpeed]]&lt;br /&gt;
*[[setSoundVolume]]&lt;br /&gt;
*[[stopSound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/playSound3D&amp;diff=71868</id>
		<title>RU/playSound3D</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/playSound3D&amp;diff=71868"/>
		<updated>2021-08-18T22:10:44Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{RU/Client function}}&lt;br /&gt;
Создаёт [[звук|элемент звука]] в мире GTA и воспроизводит его для локального игрока сразу после создания. Для изменения позиции [[звук|элемента звука]] можно использовать [[RU/setElementPosition|setElementPosition]]. Не забывайте использовать [[RU/setElementDimension|setElementDimension]] после создания звука, чтобы воспроизвести его в другом измерении (по-умолчанию 0).&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
{{Примечание|&lt;br /&gt;
*Эта функция поддерживает только следующие форматы: MP3, WAV, OGG, RIFF, MOD, XM, IT и S3M.&lt;br /&gt;
*Для повышения производительности при использовании playSound3D для эффектов, которые будут воспроизведены много раз (например, выстрелы оружия), рекомендуется конвертировать аудио-файл в одноканальный (моно) WAV с частотой дискретизации 22050 Гц или менее. Кроме того, рекомендуется добавлять ограничение на частоту проигрывания эффекта, например один раз каждые 50 мс.}}&lt;br /&gt;
==Синтаксис== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound3D ( string soundPath, float x, float y, float z, [ bool looped = false ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound3D ( string soundURL, float x, float y, float z, [ bool looped = false, bool throttled = true ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{RU/OOP||[[Sound|Sound3D]]}}&lt;br /&gt;
===Обязательные аргументы===&lt;br /&gt;
*'''soundPath:''' [[Путь к файлу|путь к файлу]], который нужно воспроизвести. Файл должен быть указан в [[RU/Meta.xml|meta.xml]] в теге ''&amp;lt;file /&amp;gt;''.&lt;br /&gt;
*'''soundURL:''' URL адрес. В этом случае файл не нужно указывать в [[RU/Meta.xml|meta.xml]].&lt;br /&gt;
*'''x:''' Координата X в пространстве мира.&lt;br /&gt;
*'''y:''' Координата Y в пространстве мира.&lt;br /&gt;
*'''z:''' Координата Z в пространстве мира.&lt;br /&gt;
&lt;br /&gt;
===Дополнительные Аргументы===&lt;br /&gt;
{{RU/OptionalArg}} &lt;br /&gt;
*'''looped:''' Значения типа [[boolean]], указывающее повторять ли воспроизведения после его окончания. Чтобы включить повторение,  используйте ''true''.&lt;br /&gt;
*'''throttled:''' Значение типа [[boolean]], указывающее будет ли качество звука сжиматься (тем самым давать более быструю загрузку). Чтобы включить сжатие качества, используйте ''true''.&lt;br /&gt;
&lt;br /&gt;
===Возвращает===&lt;br /&gt;
Возвращает [[звук|элемент звука]], если он был успешно создан, в противном случае ''false''.&lt;br /&gt;
&lt;br /&gt;
==Пример== &lt;br /&gt;
В этом примере создаётся повторяющийся звук внутри пиццерии. Она находится в San Fierro около пирса 69.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onResourceStart()&lt;br /&gt;
	local sound = playSound3D(&amp;quot;sounds/song.mp3&amp;quot;, 373.14, -125.21, 1001, true) &lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, onResourceStart)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
В этом примере создаётся поток интернет радио на Grove Street.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 2&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot,&lt;br /&gt;
	function( )&lt;br /&gt;
		local uSound = playSound3D(&amp;quot;http://193.34.51.25:80&amp;quot;, 2498, -1659, 12) &lt;br /&gt;
		setSoundMaxDistance(uSound, 100)&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==См. Также==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
[[AR:playSound3D]]&lt;br /&gt;
[[DE:playSound3D]]&lt;br /&gt;
[[EN:playSound3D]]&lt;br /&gt;
[[PT-BR:playSound3D]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DE/playSound3D&amp;diff=71867</id>
		<title>DE/playSound3D</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/playSound3D&amp;diff=71867"/>
		<updated>2021-08-18T22:10:33Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{DE/Client function}}&lt;br /&gt;
Erstellt ein [[Sound]] [[Element]] in der GTA Welt spielt ihn sofort ab für den lokalen Spieler. [[setElementPosition]] kann genutzt werden zum Positionieren des [[Sound]] Elements nachdem es erstellt wurde. Vergiss nicht [[setElementDimension]] nach der Erstellung zu benutzen, um es außerhalb in der Dimension 0 zu spielen.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
{{DE/Note|&lt;br /&gt;
*Die unterstützten Audio-Formate sind MP3, WAV, OGG, RIFF, MOD, XM, IT und S3M.&lt;br /&gt;
*Aus Performance Gründen wird empfohlen, wenn playSound3D für Effekte genutzt wird, die Audio Datei in einen Kanal (Mono) WAV zu konvertieren mit einer Beispielrate von 22050 Hz oder weniger. Bedenke auch ein Limit hinzuzufügen wie oft der Effekt abgespielt werden kann, z.B. alle 50ms}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound3D ( string soundPath, float x, float y, float z, [ bool looped = false ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound3D ( string soundURL, float x, float y, float z, [ bool looped = false, bool throttled = true ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Sound|Sound3D]]}}&lt;br /&gt;
===Benötigte Argumente===&lt;br /&gt;
*'''soundPath:''' der Dateipfad zur Datei, die du spielen möchtest. (Die Sounddatei muss in der [[meta.xml]] Datei definiert sein mit dem &amp;lt;file /&amp;gt; Tag. Du kannst auch URLs statt Pfade nehmen. )&lt;br /&gt;
*'''soundURL:''' die URL. (In dieser Version muss die Datei nicht in der [[meta.xml]] definiert sein )&lt;br /&gt;
*'''x:''' eine Fließkommazahl, welche die X-Koordinate auf der Map repräsentiert.&lt;br /&gt;
*'''y:''' eine Fließkommazahl, welche die Y-Koordinate auf der Map repräsentiert.&lt;br /&gt;
*'''z:''' eine Fließkommazahl, welche die Z-Koordinate auf der Map repräsentiert.&lt;br /&gt;
&lt;br /&gt;
===Optionale Argumente=== &lt;br /&gt;
{{DE/OptionalArg}} &lt;br /&gt;
*'''looped:''' Ein [[boolean]] Wert, der angibt ob der Sound wiederholt werden soll. Um den Sound in Dauerschleife zu wiederholen, nutze ''true''.&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
*'''throttled:''' Ein [[boolean]] Wert, der angibt ob der Sound gedrosselt werden soll (z.B. bei geringer Download Bandbreite). Um den Sound zu drosseln, nutze ''true''.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Rückgabe===&lt;br /&gt;
Gibt ein [[Sound]] [[Element]] zurück wenn es erfolgreich erstellt wurde, ''false'' wenn nicht.&lt;br /&gt;
&lt;br /&gt;
==Beispiel== &lt;br /&gt;
Dieses Beispiel erstellt ein Sound in Dauerschleife am Pizza Shop. Der Pizza Shop ist in San Fierro am Pier 69&lt;br /&gt;
&amp;lt;section name=&amp;quot;Beispiel&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onResourceStart()&lt;br /&gt;
	local sound = playSound3D(&amp;quot;sounds/song.mp3&amp;quot;, 373.14, -125.21, 1001, true) &lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, onResourceStart)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
Dieses Beispiel spielt ein Internet Radio in der Grove Street ab.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Beispiel 2&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( 'onClientResourceStart', resourceRoot,&lt;br /&gt;
	function( )&lt;br /&gt;
		local uSound = playSound3D( 'http://193.34.51.25:80', 2498, -1659, 12 ) &lt;br /&gt;
		setSoundMaxDistance( uSound, 100 )&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Siehe auch==&lt;br /&gt;
{{DE/Client_audio_functions}}&lt;br /&gt;
[[AR:playSound3D]]&lt;br /&gt;
[[DE:playSound3D]]&lt;br /&gt;
[[RU:playSound3D]]&lt;br /&gt;
[[PT-BR:playSound3D]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/playSound3D&amp;diff=71866</id>
		<title>AR/playSound3D</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/playSound3D&amp;diff=71866"/>
		<updated>2021-08-18T22:10:24Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
.3D بحيث ان يكون ملائم لعالم ال GTA تصنع صوت في عالم&lt;br /&gt;
&lt;br /&gt;
.بعد ان يتم تكوين الصوت باستخدام الوظيفة GTA لتحريك الصوت في اي مكان في عالم [[setElementPosition]] يمكن استخدام&lt;br /&gt;
&lt;br /&gt;
.بعد ان يتم تكوين الصوت لتشغيله في عالم وهمي [[setElementDimension]] تذكر ان تستخدم&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
MP3 و WAV و OGG و RIFF و MOD و XM و IT و S3M :الصيغات المدعومة هي التالي :t'''ملاحظة'''&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound3D ( string soundPath, float x, float y, float z, [ bool looped = false ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''soundPath:''' ايضاً يمكنك وضع رابط صوت بدلاً من مسار الملف .&amp;lt;file /&amp;gt; بشعار [[meta.xml]] ملف الصوت يجب ان يكون معرف في ملف) t.مسار ملف الصوت الذي تريد تشغيله&lt;br /&gt;
*'''x:''' لمكان الصوت في اللعبة xاحداثيات الـ&lt;br /&gt;
*'''y:''' لمكان الصوت في اللعبة yاحداثيات الـ&lt;br /&gt;
*'''z:''' لمكان الصوت في اللعبة zاحداثيات الـ&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''looped:''' ([[Boolean]]) false او true هذه الخاصية تتمثل في سواء اكان الصوت متكرر او لا باستخدام&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
اذا لم يتم صنع الصوت بنجاح false تنتج صوتاً اذا تم صنع الصوت بنجاح, أو تنتج&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
San fierro هذا المثال يصنع صوت متكرر في محل بيتزا, محل البيتزا في&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onResourceStart()&lt;br /&gt;
	local sound = playSound3D(&amp;quot;sounds/song.mp3&amp;quot;, 373.14, -125.21, 1001, true) &lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), onResourceStart)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
This example play internet radio in groove street.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 2&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( 'onClientResourceStart', resourceRoot,&lt;br /&gt;
	function( )&lt;br /&gt;
		local uSound = playSound3D( 'http://78.31.74.220:8000/BadRadio', 2498, -1659, 12 ) &lt;br /&gt;
		setSoundMaxDistance( uSound, 100 )&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
[[EN:playSound3D]]&lt;br /&gt;
[[DE:playSound3D]]&lt;br /&gt;
[[PT-BR:playSound3D]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HU/playSound3D&amp;diff=71865</id>
		<title>HU/playSound3D</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/playSound3D&amp;diff=71865"/>
		<updated>2021-08-18T22:10:09Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function hu}}&lt;br /&gt;
Egy [[sound|hang]][[element|elemet]] hoz létre a GTA világban, majd rögtön azután le is játsza azt a játékosnak. A [[setElementPosition]] a hangelem mozgatásához használható a létrehozás után. Ne felejtse el használni a  [[setElementDimension]]-t, miután létrehozta a hangot a lejátszáshoz a 0-ik dimenzión kívül.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
{{Note_hu|&lt;br /&gt;
*Támogatott audió formátumok: MP3, WAV, OGG, RIFF, MOD, XM, IT, S3M and PLS.&lt;br /&gt;
*Teljesítményi okokból, mikor a playSound-ot használjuk egy effekt többszöri lejátszásánál (pl. fegyver lövés), javasoljuk, hogy az audiófájlokat egycsatornás WaV-ba konvertálja (mono), 22050-Hz, vagy kisebb mintavételi frekvenciával. Valamint érdemes hozzáadni egy limitet, ami szabályozza az effekt lejátszási gyakoriságát.}}&lt;br /&gt;
==Szintaxis== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound3D ( string soundPath, float x, float y, float z, [ bool looped = false ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound3D ( string soundURL, float x, float y, float z, [ bool looped = false, bool throttled = true ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Sound|Sound3D]]}}&lt;br /&gt;
===Kötelező argumentumok===&lt;br /&gt;
*'''soundPath:''' a lejátszani kívánt hang [[filepath|elérési helye]]. (A hangfájlt elő kell definiálni a [[meta.xml]] fájlban, &amp;lt;file /&amp;gt; taggel. És az [[filepath|elérési hely]] helyett az URL cím is használható )&lt;br /&gt;
*'''soundURL:''' az URL. (Ebben a verzióban a fájlt nem kell elő definiálni a [[meta.xml]]-ben )&lt;br /&gt;
*'''x:''' A térképen az X koordinátát ábrázoló [[float|lebegőpontos]] szám.&lt;br /&gt;
*'''y:''' A térképen az Y koordinátát ábrázoló [[float|lebegőpontos]] szám.&lt;br /&gt;
*'''z:''' A térképen a Z koordinátát ábrázoló [[float|lebegőpontos]] szám.&lt;br /&gt;
&lt;br /&gt;
===Tetszőleges paraméterek=== &lt;br /&gt;
{{OptionalArg hu}} &lt;br /&gt;
&lt;br /&gt;
*'''looped:''' A [[boolean]] visszadja, hogy a hang ismétlődni fog-e. A hang ismétlésére használja a ''true''-t..&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
*'''throttled:''' A [[boolean]] visszadja, hogy a hang szabályozva lesz-e (pl. csökkentett letöltési sávszélességgel). A hang szabályozásához használja a &amp;quot;true&amp;quot; parancsot..&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Visszaadott értéks===&lt;br /&gt;
Visszaad egy [[sound|hang]][[element|elemet]], ha a hang sikeresen létre lett hozva, egyébként ''hamis''.&lt;br /&gt;
&lt;br /&gt;
==Példa== &lt;br /&gt;
Ez a példa egy ismétlődő hangot hoz létre a pizza boltban. &lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onResourceStart()&lt;br /&gt;
	local sound = playSound3D(&amp;quot;sounds/song.mp3&amp;quot;, 373.14, -125.21, 1001, true) &lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, onResourceStart)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
Ez a példa egy internetes rádiót játszik le a groove utcán.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 2&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( 'onClientResourceStart', resourceRoot,&lt;br /&gt;
	function( )&lt;br /&gt;
		local uSound = playSound3D( 'http://193.34.51.25:80', 2498, -1659, 12 ) &lt;br /&gt;
		setSoundMaxDistance( uSound, 100 )&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Lásd még==&lt;br /&gt;
{{Client_audio_functions hu}}&lt;br /&gt;
[[en:playSound3D]]&lt;br /&gt;
[[AR:playSound3D]]&lt;br /&gt;
[[DE:playSound3D]]&lt;br /&gt;
[[RU:playSound3D]]&lt;br /&gt;
[[PT-BR:playSound3D]]&lt;br /&gt;
&lt;br /&gt;
==Fordította==&lt;br /&gt;
* '''''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''''&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PlaySound3D&amp;diff=71864</id>
		<title>PlaySound3D</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PlaySound3D&amp;diff=71864"/>
		<updated>2021-08-18T22:09:59Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Creates a [[sound]] [[element]] in the GTA world and plays it immediately after creation for the local player. [[setElementPosition]] can be used to move the [[sound]] element around after it has been created. Remember to use [[setElementDimension]] after creating the sound to play it outside of dimension 0.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
{{Note|&lt;br /&gt;
*The only supported audio formats are MP3, WAV, OGG, RIFF, MOD, XM, IT and S3M.&lt;br /&gt;
*For performance reasons, when using playSound3D for effects that will be played lots (i.e. weapon fire), it is recommend that you convert your audio file to a one channel (mono) WAV with sample rate of 22050 Hz or less. Also consider adding a limit on how often the effect can be played e.g. once every 50ms.}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound3D ( string soundPath, float x, float y, float z, [ bool looped = false ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound3D ( string soundURL, float x, float y, float z, [ bool looped = false, bool throttled = true ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Sound|Sound3D]]}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''soundPath:''' the [[filepath]] to the sound file you want to play. ('''Note:''' Playing sound files from other resources requires the target resource to be in the running state)&lt;br /&gt;
{{New items|5.0157|1.5.7|&lt;br /&gt;
*'''soundPath:''' Can also be raw sound data.&lt;br /&gt;
|20460}}&lt;br /&gt;
*'''soundURL:''' the URL (http://, https:// or ftp://) of the sound file you want to play. (In this version the file does not have to be predefined in the [[meta.xml]])&lt;br /&gt;
*'''x:''' a [[float]]ing point number representing the X coordinate on the map.&lt;br /&gt;
*'''y:''' a [[float]]ing point number representing the Y coordinate on the map.&lt;br /&gt;
*'''z:''' a [[float]]ing point number representing the Z coordinate on the map.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''looped:''' a [[boolean]] representing whether the sound will be looped. To loop the sound, use ''true''.&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
*'''throttled:''' a [[boolean]] representing whether the sound will be throttled (i.e. given reduced download bandwidth). To throttle the sound, use ''true''.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[sound]] [[element]] if the sound was successfully created, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a looping sound within a pizza shop. The pizza shop is in san fierro near pier 69&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onResourceStart()&lt;br /&gt;
	local sound = playSound3D(&amp;quot;sounds/song.mp3&amp;quot;, 373.14, -125.21, 1001, true) &lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, onResourceStart)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
This example play internet radio in groove street.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 2&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler('onClientResourceStart', resourceRoot,&lt;br /&gt;
	function()&lt;br /&gt;
		local uSound = playSound3D('http://977music.com/itunes/80s.pls', 2498, -1659, 12) &lt;br /&gt;
		setSoundMaxDistance(uSound, 100)&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
[[HU:playSound3D]]&lt;br /&gt;
[[AR:playSound3D]]&lt;br /&gt;
[[DE:playSound3D]]&lt;br /&gt;
[[RU:playSound3D]]&lt;br /&gt;
[[PT-BR:playSound3D]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PT-BR/playSound3D&amp;diff=71863</id>
		<title>PT-BR/playSound3D</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/playSound3D&amp;diff=71863"/>
		<updated>2021-08-18T22:09:39Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: Created page with &amp;quot;__NOTOC__  {{BR/Funcao cliente}} Cria um elemento de áudio no mundo do GTA e o reproduz imediatamente para o jogador local. Você pode usar setElementP...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{BR/Funcao cliente}}&lt;br /&gt;
Cria um elemento de [[sound|áudio]] no mundo do GTA e o reproduz imediatamente para o [[player|jogador]] local. Você pode usar [[setElementPosition]] para mover elementos de [[sound|áudio]] já criados. Lembre-se de usar [[setElementDimension]] após a criação para reproduzir o áudio fora da dimensão 0.&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
* Os únicos formatos suportados são: MP3, WAV, OGG, RIFF, MOD, XM, IT, S3M e PLS (streams da web).&lt;br /&gt;
* Por questões de desempenho, quando usado para áudios que são reproduzidos com alta frequência (exemplo, som de tiro de armas), é recomendado que você converta o arquivo de áudio para apenas um canal (mono) WAV e com o bitrate de 22050 Hz ou menos. Além disso, considere adicionar um limite na frequência com que o áudio será reproduzido, por exemplo, apenas uma vez a cada 50ms.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Sintaxe==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound3D ( string caminho, float x, float y, float z, [ bool repetir = false ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound3D ( string url, float x, float y, float z, [ bool repetir = false, bool suprimido = true ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{New items|5.0157|1.5.7|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound3D ( string binario, float x, float y, float z, [ bool repetir = false ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
|20460}}&lt;br /&gt;
&lt;br /&gt;
{{BR/OOP||[[Sound|Sound3D]]}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos necessários===&lt;br /&gt;
*'''caminho:''' o [[filepath|caminho]] até o arquivo de áudio. ('''Obs:''' Reproduzir arquivos de áudio de outros resources requer que eles estejam executando).&lt;br /&gt;
*'''url:''' uma URL (http://, https:// or ftp://) para o arquivo de áudio. Nessa versão você não precisa predefinir o áudio no [[meta.xml]].&lt;br /&gt;
{{New items|5.0157|1.5.7|&lt;br /&gt;
*'''binario:''' o conteúdo binário do arquivo de áudio.&lt;br /&gt;
|20460}}&lt;br /&gt;
*'''x:''' um [[float]] representando a coordenada X no mapa.&lt;br /&gt;
*'''y:''' um [[float]] representando a coordenada Y no mapa.&lt;br /&gt;
*'''z:''' um [[float]] representando a coordenada Z no mapa.&lt;br /&gt;
&lt;br /&gt;
===Argumentos opcionais=== &lt;br /&gt;
{{BR/ArgOpcional}} &lt;br /&gt;
*'''repetir:''' um [[boolean]] indicando se o áudio será repetido. A repetição de um áudio não está disponível para streams, apenas para arquivos de áudio locais.&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
*'''suprimido:''' um [[boolean]] representando se a largura de banda da stream será suprimida (isto é, velocidade de download reduzida). Streams serão suprimidas por padrão.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Retorno===&lt;br /&gt;
Retorna um elemento de [[sound|áudio]] se bem sucedido, do contrário retorna ''false''.&lt;br /&gt;
&lt;br /&gt;
==Exemplo== &lt;br /&gt;
Este exemplo reproduz repetidamente um áudio dentro da pizzaria em San Fierro próximo ao Pier 69.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
playSound3D(&amp;quot;audio.mp3&amp;quot;, 373.14, -125.21, 1001, true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Este exemplo reproduz um áudio da internet na Grove Street.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 2&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
playSound3D(&amp;quot;https://tidis.net/mESK2U-0&amp;quot;, 2498, -1659, 12)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Veja também==&lt;br /&gt;
{{PT-BR/Funcoes_audio_client}}&lt;br /&gt;
[[EN:playSound3D]]&lt;br /&gt;
[[HU:playSound3D]]&lt;br /&gt;
[[AR:playSound3D]]&lt;br /&gt;
[[DE:playSound3D]]&lt;br /&gt;
[[RU:playSound3D]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71856</id>
		<title>Template:PT-BR/Funcoes audio client</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:PT-BR/Funcoes_audio_client&amp;diff=71856"/>
		<updated>2021-08-18T02:06:24Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannel|getRadioChannel]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/GetRadioChannelName|getRadioChannelName]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSFXStatus|getSFXStatus]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBPM|getSoundBPM]]&lt;br /&gt;
{{New items|3.0157|1.5.6|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundBufferLength|getSoundBufferLength]]&lt;br /&gt;
|16216}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffects|getSoundEffects]]&lt;br /&gt;
{{New items|3.0159|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundEffectParameters|getSoundEffectParameters]]&lt;br /&gt;
|20914}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundFFTData|getSoundFFTData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLength|getSoundLength]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundLevelData|getSoundLevelData]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMaxDistance|getSoundMaxDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMetaTags|getSoundMetaTags]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundMinDistance|getSoundMinDistance]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPan|getSoundPan]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundPosition|getSoundPosition]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundProperties|getSoundProperties]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundSpeed|getSoundSpeed]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundVolume|getSoundVolume]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/getSoundWaveData|getSoundWaveData]]&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundLooped|isSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPanningEnabled|isSoundPanningEnabled]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/isSoundPaused|isSoundPaused]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX|playSFX]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSFX3D|playSFX3D]]&lt;br /&gt;
*[[Image:iBR.png|Em Português|20px]] [[PT-BR/playSound|playSound]]&lt;br /&gt;
*[[playSound3D]]&lt;br /&gt;
*[[playSoundFrontEnd]]&lt;br /&gt;
*[[setRadioChannel]]&lt;br /&gt;
*[[setSoundEffectEnabled]]&lt;br /&gt;
{{New items|3.0160|1.5.8|&lt;br /&gt;
*[[setSoundLooped]]&lt;br /&gt;
|20785}}&lt;br /&gt;
*[[setSoundMaxDistance]]&lt;br /&gt;
*[[setSoundMinDistance]]&lt;br /&gt;
*[[setSoundPan]]&lt;br /&gt;
*[[setSoundPanningEnabled]]&lt;br /&gt;
*[[setSoundPaused]]&lt;br /&gt;
*[[setSoundPosition]]&lt;br /&gt;
*[[setSoundProperties]]&lt;br /&gt;
*[[setSoundSpeed]]&lt;br /&gt;
*[[setSoundVolume]]&lt;br /&gt;
*[[stopSound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PT-BR/playSound&amp;diff=71855</id>
		<title>PT-BR/playSound</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/playSound&amp;diff=71855"/>
		<updated>2021-08-18T02:05:22Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{BR/Funcao cliente}}&lt;br /&gt;
Cria um elemento de [[sound|áudio]] e o reproduzir imediatamente para o jogador local.&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
* Os únicos formatos suportados são: MP3, WAV, OGG, RIFF, MOD, XM, IT, S3M e PLS (streams da web).&lt;br /&gt;
* Por questões de desempenho, quando usado para áudios que são reproduzidos com alta frequência (exemplo, som de tiro de armas), é recomendado que você converta o arquivo de áudio para apenas um canal (mono) WAV e com o bitrate de 22050 Hz ou menos. Além disso, considere adicionar um limite na frequência com que o áudio será reproduzido, por exemplo, apenas uma vez a cada 50ms.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Sintaxe== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound ( string caminho/data, [ bool repetir = false, bool suprimido = true ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
{{BR/OOP||[[Sound]]}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos necessários=== &lt;br /&gt;
*'''caminho:''' o [[filepath|caminho]] até o arquivo de áudio ou uma URL (http://, https:// or ftp://) para o arquivo de áudio. ('''Obs:''' Reproduzir arquivos de áudio de outros resources requer que eles estejam executando.)&lt;br /&gt;
{{New items|5.0157|1.5.7|&lt;br /&gt;
*'''data:''' pode ser o binário do arquivo de áudio.&lt;br /&gt;
|20460}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos opcionais=== &lt;br /&gt;
{{BR/ArgOpcional}} &lt;br /&gt;
*'''repetir:''' um [[boolean]] indicando se o áudio será repetido. A repetição de um áudio não está disponível para streams, apenas para arquivos de áudio locais.&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
*'''suprimido:''' um [[boolean]] representando se a largura de banda da stream será suprimida (isto é, velocidade de download reduzida). Streams serão suprimidas por padrão.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Retorno===&lt;br /&gt;
Retorna um elemento de [[sound|áudio]] se bem sucedido, do contrário retorna ''false''.&lt;br /&gt;
&lt;br /&gt;
==Exemplo==&lt;br /&gt;
Esse exemplo reproduz o arquivo ''audio.mp3''.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Cliente&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;reproduzir&amp;quot;, function()&lt;br /&gt;
    local audio = playSound(&amp;quot;audio.mp3&amp;quot;)&lt;br /&gt;
    setSoundVolume(audio, 0.3)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Esse exemplo reproduz uma música da internet.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Cliente&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;reproduzir&amp;quot;, function()&lt;br /&gt;
    local audio = playSound(&amp;quot;https://tidis.net/u-cHvybM&amp;quot;)&lt;br /&gt;
    setSoundVolume(audio, 0.3)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Veja também==&lt;br /&gt;
{{PT-BR/Funcoes_audio_client}}&lt;br /&gt;
&lt;br /&gt;
[[EN:playSound]]&lt;br /&gt;
[[HU:playSound]]&lt;br /&gt;
[[AR:playSound]]&lt;br /&gt;
[[DE:playSound]]&lt;br /&gt;
[[RO:playSound]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RO/playSound&amp;diff=71854</id>
		<title>RO/playSound</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/playSound&amp;diff=71854"/>
		<updated>2021-08-18T02:01:42Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{RO/Funcție client}}&lt;br /&gt;
Crează un [[element]] de tip [[sound]] și îl redă imediat după ce acesta a fost creat pentru jucătorul local.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Notă:''' Singurele formate audio acceptate sunt MP3, WAV, OGG, RIFF, MOD, XM, IT, S3M și PLS (exemplu Webstream).&lt;br /&gt;
{{RO/Observații|Din motive de performanță, atunci când playSound este folosit pentru efecte ce vor fi redate frecvent (exemplu: tragerea unei arme), se recomandă să convertiți fișierul audio într-unul de tip WAV pe un singur canal de redare (mono) la o rată de maximum 22050 Hz. De asemenea, se recomandă adăugarea unei limite privind frecvența (cât de des) la care poate fi redat efectul. (exemplu: odată la 50ms.)}}&lt;br /&gt;
==Sintaxă== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound (string soundPath, [ bool looped = false, bool throttled = true ])&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Sound]]}}&lt;br /&gt;
===Argumente Necesare=== &lt;br /&gt;
*'''soundPath:''' calea ([[filepath]]) sau URL-ul (link-ul) fișierului audio pe care doriți să-l redați. (Fișierele audio specificate prin filepath trebuie predefinite în [[meta.xml]] folosind tag-ul &amp;lt;file /&amp;gt;.)&lt;br /&gt;
&lt;br /&gt;
===Argumente Opționale=== &lt;br /&gt;
{{RO/ArgumenteOpționale}} &lt;br /&gt;
*'''looped:''' o valoare de tip [[boolean]] folosită pentru a stabili dacă sunetul trebuie să fie repetat. Pentru a repeta sunetul folosiți ''true''. Acest argument nu va funcționa pe sunetele redate în stream, ci doar în cazul fișierelor audio.&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
*'''throttled:''' o valoare de tip [[boolean]] folosită pentru a stabili dacă sunetului trebuie să i se ofere o bandă de descărcare redusă. Pentru a oferi o bandă de descărcare redusă sunetului, folosiți ''true''. Acest argument va fi activat din oficiu și va fi aplicat numai în cazul unui URL (link).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Redare===&lt;br /&gt;
Redă un [[element]] de tip [[sound]] dacă sunetul a fost creat cu succes. În caz contrar ''false''.&lt;br /&gt;
&lt;br /&gt;
==Exemplu==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function wasted (killer, weapon, bodypart) &lt;br /&gt;
	local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) -- Redă fișierul audio wasted.mp3 din registrul sounds&lt;br /&gt;
	setSoundVolume(sound, 0.5) -- Setează volumul sunetului la 50%&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWasted&amp;quot;, localPlayer, wasted) -- Adaugă un eveniment declanșator&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Vizualizați de asemenea==&lt;br /&gt;
{{RO/Funcții_audio_client}}&lt;br /&gt;
[[EN:playSound]]&lt;br /&gt;
[[HU:playSound]]&lt;br /&gt;
[[AR:playSound]]&lt;br /&gt;
[[DE:playSound]]&lt;br /&gt;
[[PT-BR:playSound]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DE/playSound&amp;diff=71853</id>
		<title>DE/playSound</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/playSound&amp;diff=71853"/>
		<updated>2021-08-18T02:01:30Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{DE/Client function}}&lt;br /&gt;
Erstellt ein [[Sound]] [[Element]] und spielt es sofort ab für den lokalen Spieler.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
{{DE/Note|* Die unterstützten Audio Formate sind MP3, WAV, OGG, RIFF, MOD, XM, IT, S3M und PLS(z.b. Webstream).&lt;br /&gt;
* Aus Performance Gründen wird empfohlen, wenn playSound3D für Effekte genutzt wird, die Audio Datei in einen Kanal (Mono) WAV zu konvertieren mit einer Beispielrate von 22050 Hz oder weniger. Bedenke auch ein Limit hinzuzufügen wie oft der Effekt abgespielt werden kann, z.B. alle 50ms}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound ( string soundPath, [ bool looped = false, bool throttled = true ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{DE/OOP||[[Sound]]}}&lt;br /&gt;
===Benötigte Argumente=== &lt;br /&gt;
*'''soundPath:''' der Dateipfad zur Datei, die du spielen möchtest. (Die Sounddatei muss in der meta.xml Datei definiert sein mit dem &amp;lt;file /&amp;gt; Tag. Du kannst auch URLs statt Pfade nehmen.)&lt;br /&gt;
&lt;br /&gt;
===Optionale Argumente=== &lt;br /&gt;
{{DE/OptionalArg}} &lt;br /&gt;
*'''looped:''' Ein [[boolean]] Wert, der angibt ob der Sound wiederholt werden soll. Um den Sound in Dauerschleife zu wiederholen, nutze true. Wiederholungen gelten nicht für Streams, nur für Dateien.&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
*'''throttled:''' Ein [[boolean]] Wert, der angibt ob der Sound gedrosselt werden soll (z.B. bei geringer Download Bandbreite). Um den Sound zu drosseln, nutze true. Drosseln funktioniert nur bei Streams und wird standardmäßig ausgeführt.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Rückgabe===&lt;br /&gt;
Gibt ein [[Sound]] [[Element]] zurück wenn es erfolgreich erstell wurde, ansonsten ''false''.&lt;br /&gt;
&lt;br /&gt;
==Beispiel==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function wasted (killer, weapon, bodypart) &lt;br /&gt;
	local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) --Spielt wasted.mp3 vom sounds Ordner ab&lt;br /&gt;
	setSoundVolume(sound, 0.5) -- setzt die Lautstärke auf 50%&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWasted&amp;quot;, localPlayer, wasted)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Siehe auch==&lt;br /&gt;
{{DE/Client_audio_functions}}&lt;br /&gt;
[[AR:playSound]]&lt;br /&gt;
[[DE:playSound]]&lt;br /&gt;
[[PT-BR:playSound]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/playSound&amp;diff=71852</id>
		<title>AR/playSound</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/playSound&amp;diff=71852"/>
		<updated>2021-08-18T02:01:22Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
.هذه الوظيفة تصنع صوتاً وتشغله فوراً بعد الصنع&lt;br /&gt;
&lt;br /&gt;
MP3 و WAV و OGG و RIFF و MOD و XM و IT و S3M :الصيغات المدعومة هي التالي :t'''ملاحظة'''&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound ( string soundPath, [ bool looped = false ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة=== &lt;br /&gt;
*'''soundPath:''' ايضاً يمكنك وضع رابط صوت بدلاً من مسار الملف .&amp;lt;file /&amp;gt; بشعار [[meta.xml]] ملف الصوت يجب ان يكون معرف في ملف) t.مسار ملف الصوت الذي تريد تشغيله&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''looped:''' ([[Boolean]]) false او true هذه الخاصية تتمثل في سواء اكان الصوت متكرر او لا باستخدام&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
اذا لم يتم صنع الصوت بنجاح false تنتج صوتاً اذا تم صنع الصوت بنجاح, أو تنتج&lt;br /&gt;
&lt;br /&gt;
=='''مثــال'''== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function wasted (killer, weapon, bodypart) &lt;br /&gt;
	local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) -- wasted.mp3 نشغل الصوت - sounds من مجلد اسمه	&lt;br /&gt;
        setSoundVolume(sound, 0.5) -- 50% نجعل حجم الصوت&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWasted&amp;quot;, getLocalPlayer(), wasted) -- نضع الايفنت الى هذه الوظيفه عند موت الاعب&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
[[EN:playSound]]&lt;br /&gt;
[[DE:playSound]]&lt;br /&gt;
[[PT-BR:playSound]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HU/playSound&amp;diff=71851</id>
		<title>HU/playSound</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/playSound&amp;diff=71851"/>
		<updated>2021-08-18T02:01:07Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function hu}}&lt;br /&gt;
Egy [[sound|hang]][[element|elemet]] hoz létre, majd rögtön azután le is játsza azt a játékosnak.&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
*Támogatott audió formátumok: MP3, WAV, OGG, RIFF, MOD, XM, IT, S3M and PLS(e.g. Webstream).&lt;br /&gt;
*Teljesítményi okokból, mikor a playSound-ot használjuk egy effekt többszöri lejátszásánál (pl. fegyver lövés), javasoljuk, hogy az audiófájlokat egycsatornás WaV-ba konvertálja (mono), 22050-Hz, vagy kisebb mintavételi frekvenciával. Valamint érdemes hozzáadni egy limitet, ami szabályozza az effekt lejátszási gyakoriságát.}}&lt;br /&gt;
==Szintaxis== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound ( string soundPath, [ bool looped = false, bool throttled = true ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Sound]]}}&lt;br /&gt;
===Kötelező argumentumok=== &lt;br /&gt;
*'''soundPath:''' a lejátszani kívánt hang [[filepath|elérési helye]] vagy URL címe. (Az elérési hely által rendszerezett hangot elő kell definiálni a meta.xml fájlban, &amp;lt;file /&amp;gt; taggel)&lt;br /&gt;
&lt;br /&gt;
===Tetszőleges Argumentumok=== &lt;br /&gt;
{{OptionalArg hu}} &lt;br /&gt;
&lt;br /&gt;
*'''looped:''' A [[boolean]] visszadja, hogy a hang ismétlődni fog-e. A hang ismétlésére használja a ''true''-t. Az ismétlés nem elérhető a streamelt hangoknál, csak hangfájlok esetén.&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
*'''throttled:''' A [[boolean]] visszadja, hogy a hang szabályozva lesz-e (pl. csökkentett letöltési sávszélességgel). A hang szabályozásához használja a &amp;quot;true&amp;quot; parancsot. A hangok alapértelmezés szerint csak az URL-ekre korlátozódnak.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Visszaadott érték===&lt;br /&gt;
Visszaad egy [[sound|hang]][[element|elemet]], ha a hang sikeresen létre lett hozva, egyébként ''hamis''.&lt;br /&gt;
&lt;br /&gt;
==Példa==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function wasted (killer, weapon, bodypart) &lt;br /&gt;
	local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) --Lejátsza a 'wasted.mp3' fájlt a sounds mappából&lt;br /&gt;
	setSoundVolume(sound, 0.5) -- 50%-ra állítja a hangerőt&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWasted&amp;quot;, localPlayer, wasted) -- egy eseménykezelő hozzáadása&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Lásd még==&lt;br /&gt;
{{Client_audio_functions hu}}&lt;br /&gt;
[[EN:playSound]]&lt;br /&gt;
[[AR:playSound]]&lt;br /&gt;
[[DE:playSound]]&lt;br /&gt;
[[PT-BR:playSound]]&lt;br /&gt;
&lt;br /&gt;
==Fordította==&lt;br /&gt;
* '''''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''''&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PlaySound&amp;diff=71850</id>
		<title>PlaySound</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PlaySound&amp;diff=71850"/>
		<updated>2021-08-18T02:00:58Z</updated>

		<summary type="html">&lt;p&gt;Alvesvin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Creates a [[sound]] [[element]] and plays it immediately after creation for the local player.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
{{Note|&lt;br /&gt;
*The only supported audio formats are MP3, WAV, OGG, RIFF, MOD, XM, IT, S3M and PLS (e.g. Webstream).&lt;br /&gt;
*For performance reasons, when using playSound for effects that will be played lots (i.e. weapon fire), it is recommend that you convert your audio file to a one channel (mono) WAV with sample rate of 22050 Hz or less. Also consider adding a limit on how often the effect can be played e.g. once every 50ms.}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;element playSound ( string soundPath, [ bool looped = false, bool throttled = true ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Sound]]}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''soundPath:''' the [[filepath]] or URL (http://, https:// or ftp://) of the sound file you want to play. ('''Note:''' Playing sound files from other resources requires the target resource to be in the running state)&lt;br /&gt;
{{New items|5.0157|1.5.7|&lt;br /&gt;
*'''soundPath:''' Can also be raw sound data.&lt;br /&gt;
|20460}}&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''looped:''' a [[boolean]] representing whether the sound will be looped. To loop the sound, use ''true''. Loop is not available for streaming sounds, only for sound files.&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
*'''throttled:''' a [[boolean]] representing whether the sound will be throttled (i.e. given reduced download bandwidth). To throttle the sound, use ''true''. Sounds will be throttled per default and only for URLs.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[sound]] [[element]] if the sound was successfully created, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function wasted (killer, weapon, bodypart) &lt;br /&gt;
	local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) --Play wasted.mp3 from the sounds folder&lt;br /&gt;
	setSoundVolume(sound, 0.5) -- set the sound volume to 50%&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWasted&amp;quot;, localPlayer, wasted) --add the event handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
[[HU:playSound]]&lt;br /&gt;
[[AR:playSound]]&lt;br /&gt;
[[DE:playSound]]&lt;br /&gt;
[[RO:playSound]]&lt;br /&gt;
[[PT-BR:playSound]]&lt;/div&gt;</summary>
		<author><name>Alvesvin</name></author>
	</entry>
</feed>