<?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=Strong100</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=Strong100"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Strong100"/>
	<updated>2026-06-01T02:40:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/takePlayerMoney&amp;diff=46562</id>
		<title>AR/takePlayerMoney</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/takePlayerMoney&amp;diff=46562"/>
		<updated>2016-02-07T16:51:41Z</updated>

		<summary type="html">&lt;p&gt;Strong100: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 takePlayerMoney ( player thePlayer, int amount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[player]]:takeMoney|money|}}&lt;br /&gt;
====الارقمنتات المطلوبة==== &lt;br /&gt;
*'''thePlayer:''' اللاعب الذي تريد سحب المال منه .&lt;br /&gt;
*'''amount:''' عدد صحيح محدد يسلب من الاعب اللذي تم تعريفه او تم اختياره لفعل شئ.&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool takePlayerMoney ( int amount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Player]].takeMoney}}&lt;br /&gt;
====الارقمنتات المطلوبة==== &lt;br /&gt;
*'''amount:''' عدد المال الذي تريد سحبها من اللاعب .&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if تم اخذ الفلوس, or ''false'' if اذا تم اختيار باراميترز غير صحيحه.&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;
هذا المثال يأخذ فلوس من الاعب اذا كتب في &amp;quot;takecash ''number''&amp;quot; in الكونسول (F8).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function takeCash ( thePlayer, command, amount )     -- عندما يتم استدعاء takeCash&lt;br /&gt;
     takePlayerMoney ( thePlayer, tonumber(amount) ) -- اخذ مبلغ من مال الاعب&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;takecash&amp;quot;, takeCash )           -- أنشاء امر&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;/div&gt;</summary>
		<author><name>Strong100</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/takePlayerMoney&amp;diff=46560</id>
		<title>AR/takePlayerMoney</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/takePlayerMoney&amp;diff=46560"/>
		<updated>2016-02-07T16:48:38Z</updated>

		<summary type="html">&lt;p&gt;Strong100: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 takePlayerMoney ( player thePlayer, int amount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[player]]:takeMoney|money|}}&lt;br /&gt;
====الارقمنتات المطلوبة==== &lt;br /&gt;
*'''thePlayer:''' اللاعب الذي تريد سحب المال منه .&lt;br /&gt;
*'''amount:''' عدد صحيح محدد يسلب من الاعب اللذي تم تعريفه او تم اختياره لفعل شئ.&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool takePlayerMoney ( int amount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Player]].takeMoney}}&lt;br /&gt;
====الارقمنتات المطلوبة==== &lt;br /&gt;
*'''amount:''' عدد صحيح محدد يسلب من الاعب اللذي تم تعريفه او تم اختياره لفعل شئ.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if تم اخذ الفلوس, or ''false'' if اذا تم اختيار باراميترز غير صحيحه.&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;
هذا المثال يأخذ فلوس من الاعب اذا كتب في &amp;quot;takecash ''number''&amp;quot; in الكونسول (F8).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function takeCash ( thePlayer, command, amount )     -- عندما يتم استدعاء takeCash&lt;br /&gt;
     takePlayerMoney ( thePlayer, tonumber(amount) ) -- اخذ مبلغ من مال الاعب&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;takecash&amp;quot;, takeCash )           -- اضافة دالة معالج للامر takeCash&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;/div&gt;</summary>
		<author><name>Strong100</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetBlipColor&amp;diff=46558</id>
		<title>SetBlipColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetBlipColor&amp;diff=46558"/>
		<updated>2016-02-07T15:26:53Z</updated>

		<summary type="html">&lt;p&gt;Strong100: /* مثال */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will let you change the color of a blip. This color is only applicable to the default blip icon ([[Image:Blipid0s.png|12px]], [[Image:Blipid0u.png|12px]] or [[Image:Blipid0d.png|12px]]). All other icons will ignore this.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setBlipColor ( blip theBlip, int red, int green, int blue, int alpha )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[blip]]:setColor||getBlipColor|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theBlip:''' العلامة المراد تلوينها .&lt;br /&gt;
*'''red:''' (0 - 255) تلوين العلامة باللون الاحمر .&lt;br /&gt;
*'''green:''' (0 - 255) تلوين العلامة باللون الاخضر .&lt;br /&gt;
*'''blue:''' (0 - 255) تلوين العلامة باللون الازرق .&lt;br /&gt;
*'''alpha:''' شفافية العلامة .&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns : &amp;quot;true&amp;quot; اذا تم بنجاح &amp;quot;false&amp;quot; اذا لم يتم بنجاح&lt;br /&gt;
&lt;br /&gt;
==مثال== &lt;br /&gt;
هذا المثال يجلب جميع العلامات الموجودة , ويقوم بتلوينها الى اللون الإبيض اذا لم تكن بيضاء بالفعل .&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local blips = getElementsByType ( &amp;quot;blip&amp;quot; )&lt;br /&gt;
for blipKey, blipValue in ipairs ( blips ) do&lt;br /&gt;
	local red, green, blue, alpha = getBlipColor ( blipValue )&lt;br /&gt;
	if ( red ~= 255 or green ~= 255 or blue ~= 255 or alpha ~= 255 ) then&lt;br /&gt;
		setBlipColor ( blipValue, 255, 255, 255, 255 )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Blip_functions}}&lt;/div&gt;</summary>
		<author><name>Strong100</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetBlipColor&amp;diff=46557</id>
		<title>SetBlipColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetBlipColor&amp;diff=46557"/>
		<updated>2016-02-07T15:26:12Z</updated>

		<summary type="html">&lt;p&gt;Strong100: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will let you change the color of a blip. This color is only applicable to the default blip icon ([[Image:Blipid0s.png|12px]], [[Image:Blipid0u.png|12px]] or [[Image:Blipid0d.png|12px]]). All other icons will ignore this.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setBlipColor ( blip theBlip, int red, int green, int blue, int alpha )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[blip]]:setColor||getBlipColor|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theBlip:''' العلامة المراد تلوينها .&lt;br /&gt;
*'''red:''' (0 - 255) تلوين العلامة باللون الاحمر .&lt;br /&gt;
*'''green:''' (0 - 255) تلوين العلامة باللون الاخضر .&lt;br /&gt;
*'''blue:''' (0 - 255) تلوين العلامة باللون الازرق .&lt;br /&gt;
*'''alpha:''' شفافية العلامة .&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns : &amp;quot;true&amp;quot; اذا تم بنجاح &amp;quot;false&amp;quot; اذا لم يتم بنجاح&lt;br /&gt;
&lt;br /&gt;
==مثال== &lt;br /&gt;
هذا المثال سوف يجد كل العلامات وتلوينهم باللون الأبيض , اذا لم تكن بيضاء بالفعل . &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local blips = getElementsByType ( &amp;quot;blip&amp;quot; )&lt;br /&gt;
for blipKey, blipValue in ipairs ( blips ) do&lt;br /&gt;
	local red, green, blue, alpha = getBlipColor ( blipValue )&lt;br /&gt;
	if ( red ~= 255 or green ~= 255 or blue ~= 255 or alpha ~= 255 ) then&lt;br /&gt;
		setBlipColor ( blipValue, 255, 255, 255, 255 )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Blip_functions}}&lt;/div&gt;</summary>
		<author><name>Strong100</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetBlipColor&amp;diff=46556</id>
		<title>SetBlipColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetBlipColor&amp;diff=46556"/>
		<updated>2016-02-07T15:23:21Z</updated>

		<summary type="html">&lt;p&gt;Strong100: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will let you change the color of a blip. This color is only applicable to the default blip icon ([[Image:Blipid0s.png|12px]], [[Image:Blipid0u.png|12px]] or [[Image:Blipid0d.png|12px]]). All other icons will ignore this.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setBlipColor ( blip theBlip, int red, int green, int blue, int alpha )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[blip]]:setColor||getBlipColor|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theBlip:''' العلامة المراد تلوينها .&lt;br /&gt;
*'''red:''' (0 - 255) تلوين العلامة باللون الاحمر .&lt;br /&gt;
*'''green:''' (0 - 255) تلوين العلامة باللون الاخضر .&lt;br /&gt;
*'''blue:''' (0 - 255) تلوين العلامة باللون الازرق .&lt;br /&gt;
*'''alpha:''' شفافية العلامة .&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns : &amp;quot;true&amp;quot; اذا تم بنجاح &amp;quot;false&amp;quot; اذا لم يتم بنجاح&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example will find all the blips that exist and set them all to white if they aren't white already.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Retrieve a table containing all the blips that exist&lt;br /&gt;
local blips = getElementsByType ( &amp;quot;blip&amp;quot; )&lt;br /&gt;
-- Loop through the list, storing the blip from the table in the variable blipValue&lt;br /&gt;
for blipKey, blipValue in ipairs ( blips ) do&lt;br /&gt;
	-- Retrieve the blip's colors into the variables red, green, blue and alpha&lt;br /&gt;
	local red, green, blue, alpha = getBlipColor ( blipValue )&lt;br /&gt;
	-- If the blip's icon isn't white already&lt;br /&gt;
	if ( red ~= 255 or green ~= 255 or blue ~= 255 or alpha ~= 255 ) then&lt;br /&gt;
		-- Set the blip's color to white&lt;br /&gt;
		setBlipColor ( blipValue, 255, 255, 255, 255 )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Blip_functions}}&lt;/div&gt;</summary>
		<author><name>Strong100</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetBlipColor&amp;diff=46555</id>
		<title>SetBlipColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetBlipColor&amp;diff=46555"/>
		<updated>2016-02-07T15:22:26Z</updated>

		<summary type="html">&lt;p&gt;Strong100: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will let you change the color of a blip. This color is only applicable to the default blip icon ([[Image:Blipid0s.png|12px]], [[Image:Blipid0u.png|12px]] or [[Image:Blipid0d.png|12px]]). All other icons will ignore this.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setBlipColor ( blip theBlip, int red, int green, int blue, int alpha )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[blip]]:setColor||getBlipColor|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theBlip:''' العلامة المراد تلوينها .&lt;br /&gt;
*'''red:''' (0 - 255) تلوين العلامة باللون الاحمر .&lt;br /&gt;
*'''green:''' (0 - 255) تلوين العلامة باللون الاخضر .&lt;br /&gt;
*'''blue:''' (0 - 255) تلوين العلامة باللون الازرق .&lt;br /&gt;
*'''alpha:''' شفافية العلامة .&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the blip's color was set successfully. Returns ''false'' if the blip passed to the function is invalid, or any of the colors are out of the valid range.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example will find all the blips that exist and set them all to white if they aren't white already.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Retrieve a table containing all the blips that exist&lt;br /&gt;
local blips = getElementsByType ( &amp;quot;blip&amp;quot; )&lt;br /&gt;
-- Loop through the list, storing the blip from the table in the variable blipValue&lt;br /&gt;
for blipKey, blipValue in ipairs ( blips ) do&lt;br /&gt;
	-- Retrieve the blip's colors into the variables red, green, blue and alpha&lt;br /&gt;
	local red, green, blue, alpha = getBlipColor ( blipValue )&lt;br /&gt;
	-- If the blip's icon isn't white already&lt;br /&gt;
	if ( red ~= 255 or green ~= 255 or blue ~= 255 or alpha ~= 255 ) then&lt;br /&gt;
		-- Set the blip's color to white&lt;br /&gt;
		setBlipColor ( blipValue, 255, 255, 255, 255 )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Blip_functions}}&lt;/div&gt;</summary>
		<author><name>Strong100</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=46554</id>
		<title>AR/setSoundVolume</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=46554"/>
		<updated>2016-02-07T10:06:10Z</updated>

		<summary type="html">&lt;p&gt;Strong100: /* Changelog */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function is used to change the volume level of the specified [[sound]] element.&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 setSoundVolume ( element theSound, float volume )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theSound:''' .الصوت المراد رفع \ اخفاض مستوى الصوت&lt;br /&gt;
*'''volume:''' مستوى الصوت من &amp;quot;0.0&amp;quot; أو &amp;quot;1.0&amp;quot; ء&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns &amp;quot;true&amp;quot; اذا تم بنجاح &amp;quot;false&amp;quot; اذا لم يتم بنجاح&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;
function wasted (killer, weapon, bodypart) -- تعريف&lt;br /&gt;
        local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) -- &amp;quot;wasted&amp;quot; تشغيل صوت&lt;br /&gt;
        setSoundVolume(sound, 0.5) -- تعين مستوى الصوت الى 0.5&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;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.2|اضافة تحكم اللاعب في الصوت}}&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Strong100</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=46553</id>
		<title>AR/setSoundVolume</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=46553"/>
		<updated>2016-02-07T10:05:31Z</updated>

		<summary type="html">&lt;p&gt;Strong100: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function is used to change the volume level of the specified [[sound]] element.&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 setSoundVolume ( element theSound, float volume )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theSound:''' .الصوت المراد رفع \ اخفاض مستوى الصوت&lt;br /&gt;
*'''volume:''' مستوى الصوت من &amp;quot;0.0&amp;quot; أو &amp;quot;1.0&amp;quot; ء&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns &amp;quot;true&amp;quot; اذا تم بنجاح &amp;quot;false&amp;quot; اذا لم يتم بنجاح&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;
function wasted (killer, weapon, bodypart) -- تعريف&lt;br /&gt;
        local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) -- &amp;quot;wasted&amp;quot; تشغيل صوت&lt;br /&gt;
        setSoundVolume(sound, 0.5) -- تعين مستوى الصوت الى 0.5&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;
==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;/div&gt;</summary>
		<author><name>Strong100</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=46552</id>
		<title>AR/setSoundVolume</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=46552"/>
		<updated>2016-02-07T10:03:50Z</updated>

		<summary type="html">&lt;p&gt;Strong100: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function is used to change the volume level of the specified [[sound]] element.&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 setSoundVolume ( element theSound, float volume )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theSound:''' .الصوت المراد رفع \ اخفاض مستوى الصوت&lt;br /&gt;
*'''volume:''' مستوى الصوت من &amp;quot;0.0&amp;quot; أو &amp;quot;1.0&amp;quot; ء&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns &amp;quot;true&amp;quot; اذا تم بنجاح &amp;quot;false&amp;quot; اذا لم يتم بنجاح&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;
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;, getLocalPlayer(), wasted) --add the event handler &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;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Strong100</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=46551</id>
		<title>AR/setSoundVolume</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setSoundVolume&amp;diff=46551"/>
		<updated>2016-02-07T10:03:07Z</updated>

		<summary type="html">&lt;p&gt;Strong100: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function is used to change the volume level of the specified [[sound]] element.&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 setSoundVolume ( element theSound, float volume )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theSound:''' .الصوت المراد رفع \ اخفاض مستوى الصوت&lt;br /&gt;
*'''volume:''' مستوى الصوت من &amp;quot;0.0&amp;quot; أو &amp;quot;1.0&amp;quot; ء&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the [[sound]] element volume was successfully changed, ''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;
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;, getLocalPlayer(), wasted) --add the event handler &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;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Strong100</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setRadioChannel&amp;diff=46550</id>
		<title>AR/setRadioChannel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setRadioChannel&amp;diff=46550"/>
		<updated>2016-02-07T09:54:33Z</updated>

		<summary type="html">&lt;p&gt;Strong100: /* Returns */&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;/div&gt;</summary>
		<author><name>Strong100</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setRadioChannel&amp;diff=46549</id>
		<title>AR/setRadioChannel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setRadioChannel&amp;diff=46549"/>
		<updated>2016-02-07T09:52:52Z</updated>

		<summary type="html">&lt;p&gt;Strong100: /* Example */&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;
Returns ''true'' if channel was set successfully, ''false'' otherwise.&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;/div&gt;</summary>
		<author><name>Strong100</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setRadioChannel&amp;diff=46548</id>
		<title>AR/setRadioChannel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setRadioChannel&amp;diff=46548"/>
		<updated>2016-02-07T09:51:49Z</updated>

		<summary type="html">&lt;p&gt;Strong100: /* Example */&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;
Returns ''true'' if channel was set successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&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;/div&gt;</summary>
		<author><name>Strong100</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setRadioChannel&amp;diff=46547</id>
		<title>AR/setRadioChannel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setRadioChannel&amp;diff=46547"/>
		<updated>2016-02-07T09:48:24Z</updated>

		<summary type="html">&lt;p&gt;Strong100: /* Required Arguments */&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;
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;
==أنظر أيضاً==&lt;br /&gt;
&lt;br /&gt;
{{AR/Audio_functions}}&lt;/div&gt;</summary>
		<author><name>Strong100</name></author>
	</entry>
</feed>