<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/RO/SetSoundPaused?action=history&amp;feed=atom</id>
	<title>RO/SetSoundPaused - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/RO/SetSoundPaused?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/SetSoundPaused&amp;action=history"/>
	<updated>2026-05-22T16:36:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RO/SetSoundPaused&amp;diff=63314&amp;oldid=prev</id>
		<title>Vinyard: Created page with &quot;__NOTOC__  {{RO/Funcție client}} Această funcție este utilizată pentru a pune pe pauză sau scoate de pe pauză redarea unui element specific de tip sound.  {{New...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/SetSoundPaused&amp;diff=63314&amp;oldid=prev"/>
		<updated>2019-07-18T19:11:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{RO/Funcție client}} Această funcție este utilizată pentru a pune pe pauză sau scoate de pe pauză redarea unui &lt;a href=&quot;/wiki/Element&quot; title=&quot;Element&quot;&gt;element&lt;/a&gt; specific de tip &lt;a href=&quot;/wiki/Sound&quot; class=&quot;mw-redirect&quot; title=&quot;Sound&quot;&gt;sound&lt;/a&gt;.  {{New...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{RO/Funcție client}}&lt;br /&gt;
Această funcție este utilizată pentru a pune pe pauză sau scoate de pe pauză redarea unui [[element]] specific de tip [[sound]].&lt;br /&gt;
&lt;br /&gt;
{{New feature/item|3.0132|1.3.2||&lt;br /&gt;
Utilizați elementul 'jucător' pentru a utiliza vocea jucătorului.&lt;br /&gt;
}}&lt;br /&gt;
==Sintaxă== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundPaused(element theSound, bool paused)&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[sound]]:setPaused|paused|isSoundPaused}}&lt;br /&gt;
===Argumente Necesare=== &lt;br /&gt;
*'''theSound:''' [[element]]-ul de tip[[sound]] pe care doriți să-l puneți/scoateți pe/de pe pauză.&lt;br /&gt;
*'''paused:''' o valoare de tip [[boolean]] care să specifice dacă sunetul să fie sau nu pus pe pauză. Pentru a pune pe pauză un sunet, folosiți ''true''.&lt;br /&gt;
&lt;br /&gt;
===Redare===&lt;br /&gt;
Redă ''true'' dacă [[element]]-ul de tip [[sound]] a fost pus pe pauză cu succes. În caz contrar, ''false''.&lt;br /&gt;
&lt;br /&gt;
==Exemplu== &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;
theSound = playSound(&amp;quot;music/song.mp3&amp;quot;, true)&lt;br /&gt;
function togglePausedSound()&lt;br /&gt;
    if (isSoundPaused(theSound)) then -- Verificăm dacă sunetul este pus pe pauză;&lt;br /&gt;
        setSoundPaused(theSound, false)&lt;br /&gt;
    else -- Dacă nu este pus pe pauză, îl punem;&lt;br /&gt;
        setSoundPaused(theSound, true)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;pausesound&amp;quot;, togglePausedSound)&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;
{{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:setSoundPaused]]&lt;br /&gt;
[[hu:setSoundPaused]]&lt;br /&gt;
[[AR:setSoundPaused]]&lt;/div&gt;</summary>
		<author><name>Vinyard</name></author>
	</entry>
</feed>