<?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=Algeriany</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=Algeriany"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Algeriany"/>
	<updated>2026-04-03T18:58:06Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/kickPlayer&amp;diff=49334</id>
		<title>AR/kickPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/kickPlayer&amp;diff=49334"/>
		<updated>2016-09-27T16:59:19Z</updated>

		<summary type="html">&lt;p&gt;Algeriany: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
هذه الوظيفة سـ تطرد الاعب المحدد من السيرفر&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 kickPlayer ( player kickedPlayer, [ player responsiblePlayer, string reason = &amp;quot;&amp;quot; ] )         &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
''or''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool kickPlayer ( player kickedPlayer, [ string reason = &amp;quot;&amp;quot; ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''kickedPlayer:''' الاعب الذي سيتم طرده من السيرفر&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''responsiblePlayer:''' console الاعب او الشيء الذي سيتحمل مسؤلية طرد الاعب المحدد , يمكنه ان يكون من الـ&lt;br /&gt;
( اقصى عدد للحروف 30 )&lt;br /&gt;
*'''reason:''' سبب الطرد&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
ادا كانت &lt;br /&gt;
&amp;quot;true&amp;quot;&lt;br /&gt;
يستطيع طرد اللاعب&lt;br /&gt;
ادا كانت&lt;br /&gt;
&amp;quot;false&amp;quot;&lt;br /&gt;
كادبه لا يستطيع طرد اللاعب&lt;br /&gt;
&lt;br /&gt;
==مثال== &lt;br /&gt;
هذا المثال سـ يطرد كل من معه مال اكبر من 999999 عند دخول الاعب حسابه&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function kickCheater( )&lt;br /&gt;
    -- اذا رآى ان الاعب لديه أكثر من 999999 سيطرده&lt;br /&gt;
	if ( getPlayerMoney( source ) &amp;gt; 999999 ) then&lt;br /&gt;
        -- طرد الاعب&lt;br /&gt;
        kickPlayer( source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
-- سـ تقوم الوظيفة بالعمل عند دخول الاعب&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;, root, kickCheater)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==انظر أيضاً==&lt;br /&gt;
{{AR/Admin_functions}}&lt;br /&gt;
[[es:kickPlayer]]&lt;br /&gt;
[[ru:kickPlayer]]&lt;/div&gt;</summary>
		<author><name>Algeriany</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/createObject&amp;diff=49333</id>
		<title>AR/createObject</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/createObject&amp;diff=49333"/>
		<updated>2016-09-27T16:51:33Z</updated>

		<summary type="html">&lt;p&gt;Algeriany: Created page with &amp;quot;هذه الوظيفة لانشاء شئ ما على الخريطه&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;هذه الوظيفة لانشاء شئ ما على الخريطه&lt;/div&gt;</summary>
		<author><name>Algeriany</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:AR/%D9%88%D8%B8%D8%A7%D8%A6%D9%81_%D8%A7%D9%84%D8%B5%D9%88%D8%AA&amp;diff=49332</id>
		<title>Template:AR/وظائف الصوت</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:AR/%D9%88%D8%B8%D8%A7%D8%A6%D9%81_%D8%A7%D9%84%D8%B5%D9%88%D8%AA&amp;diff=49332"/>
		<updated>2016-09-27T16:40:18Z</updated>

		<summary type="html">&lt;p&gt;Algeriany: Created page with &amp;quot;ه&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ه&lt;/div&gt;</summary>
		<author><name>Algeriany</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetMarkerColor&amp;diff=49312</id>
		<title>GetMarkerColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetMarkerColor&amp;diff=49312"/>
		<updated>2016-09-26T22:41:33Z</updated>

		<summary type="html">&lt;p&gt;Algeriany: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function returns the color and transparency for a marker element. Not all marker types support transparency.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int, int, int, int getMarkerColor ( marker theMarker )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Marker]]:getColor||setMarkerColor}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theMarker''': الماركر الذي تريد جلب لونه&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns four [[int]]s corresponding to the amount of ''red'', ''green'', ''blue'' and ''alpha'' (respectively) of the marker, ''false'' if invalid arguments were passed.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Serverside example&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example script fully heals players who hit a white marker, and kills players who hit a red one.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- we define the function that will determine if the player is to be healed or killed&lt;br /&gt;
function healOrKill ( hitMarker, matchingDimension )&lt;br /&gt;
	-- if the marker was in a different dimension, stop here to ignore the event&lt;br /&gt;
	if not matchingDimension then&lt;br /&gt;
		return&lt;br /&gt;
	end&lt;br /&gt;
	-- get the marker's color&lt;br /&gt;
	local R, G, B, A = getMarkerColor( hitMarker )&lt;br /&gt;
	-- if its RGB color is 255,255,255 (white),&lt;br /&gt;
	if R == 255 and G == 255 and B == 255 then&lt;br /&gt;
		-- heal the player&lt;br /&gt;
		setElementHealth( source, 100 )&lt;br /&gt;
	-- if it isn't white, but 255,0,0 (red),&lt;br /&gt;
	elseif R == 255 and G == 0 and B == 0 then&lt;br /&gt;
		-- kill the player&lt;br /&gt;
		killPed( source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
-- add our function as a handler to &amp;quot;onPlayerMarkerHit&amp;quot;&lt;br /&gt;
addEventHandler( &amp;quot;onPlayerMarkerHit&amp;quot;, getRootElement(), healOrKill )&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;
{{Marker functions}}&lt;/div&gt;</summary>
		<author><name>Algeriany</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetMarkerColor&amp;diff=49311</id>
		<title>GetMarkerColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetMarkerColor&amp;diff=49311"/>
		<updated>2016-09-26T22:40:34Z</updated>

		<summary type="html">&lt;p&gt;Algeriany: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function returns the color and transparency for a marker element. Not all marker types support transparency.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int, int, int, int getMarkerColor ( marker theMarker )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Marker]]:getColor||setMarkerColor}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theMarker''': هادا الماركر هوا الدي تريد تغييرلونه&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns four [[int]]s corresponding to the amount of ''red'', ''green'', ''blue'' and ''alpha'' (respectively) of the marker, ''false'' if invalid arguments were passed.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Serverside example&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example script fully heals players who hit a white marker, and kills players who hit a red one.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- we define the function that will determine if the player is to be healed or killed&lt;br /&gt;
function healOrKill ( hitMarker, matchingDimension )&lt;br /&gt;
	-- if the marker was in a different dimension, stop here to ignore the event&lt;br /&gt;
	if not matchingDimension then&lt;br /&gt;
		return&lt;br /&gt;
	end&lt;br /&gt;
	-- get the marker's color&lt;br /&gt;
	local R, G, B, A = getMarkerColor( hitMarker )&lt;br /&gt;
	-- if its RGB color is 255,255,255 (white),&lt;br /&gt;
	if R == 255 and G == 255 and B == 255 then&lt;br /&gt;
		-- heal the player&lt;br /&gt;
		setElementHealth( source, 100 )&lt;br /&gt;
	-- if it isn't white, but 255,0,0 (red),&lt;br /&gt;
	elseif R == 255 and G == 0 and B == 0 then&lt;br /&gt;
		-- kill the player&lt;br /&gt;
		killPed( source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
-- add our function as a handler to &amp;quot;onPlayerMarkerHit&amp;quot;&lt;br /&gt;
addEventHandler( &amp;quot;onPlayerMarkerHit&amp;quot;, getRootElement(), healOrKill )&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;
{{Marker functions}}&lt;/div&gt;</summary>
		<author><name>Algeriany</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getAccounts&amp;diff=49310</id>
		<title>AR/getAccounts</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getAccounts&amp;diff=49310"/>
		<updated>2016-09-26T22:36:15Z</updated>

		<summary type="html">&lt;p&gt;Algeriany: /* مـــثال */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
internal.db هذه الوظيفة تقوم بالرد بجدول يحتوي على جميع الحسابات الموجودة في السيرفر في الملف&lt;br /&gt;
&lt;br /&gt;
 (1.0.4 لم يعد يستخدم في الأصدارات الأحدث من accounts.xml ملاحظة: الملف)&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAccounts()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
قد يكون الجدول فارغاً . internal.db يحتوي على جميع الحسابات الموجودة في السيرفر في الملف [[table]] جدول&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;
function printAmountOfAccounts(thePlayer)&lt;br /&gt;
    local accountTable = getAccounts() -- الجدول الذي يحتوي على الحسابات&lt;br /&gt;
    if #accountTable == 0 then -- إذا كان الجدول فارغاً&lt;br /&gt;
        outputChatBox(&amp;quot;There are no accounts. :(&amp;quot;, thePlayer)&lt;br /&gt;
    else -- إذا كان الجدول غير فارغاً&lt;br /&gt;
        outputChatBox(&amp;quot;There are &amp;quot;..#accountTable..&amp;quot; accounts in this server!&amp;quot;, thePlayer)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;accountcount&amp;quot;, printAmountOfAccounts) -- نظيف امر جديد وهو 'accountcount'&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==انظر ايضاً==&lt;br /&gt;
{{AR Account functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:addAcount]]&lt;/div&gt;</summary>
		<author><name>Algeriany</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientMouseMove&amp;diff=49302</id>
		<title>OnClientMouseMove</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientMouseMove&amp;diff=49302"/>
		<updated>2016-09-26T22:24:45Z</updated>

		<summary type="html">&lt;p&gt;Algeriany: ذ&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered each time the user moves the mouse on top of a GUI element.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int absoluteX, int absoluteY&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
* '''absoluteX''':  the X position of the mouse cursor, in pixels, measured from the left side of the screen.&lt;br /&gt;
* '''absoluteY''':  the Y position of the mouse cursor, in pixels, measured from the top of the screen.&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the GUI element on which the mouse was moved.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
ه&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement( ),&lt;br /&gt;
    function ( )&lt;br /&gt;
        guiCreateWindow( 10, 200, 200, 150, &amp;quot;TEST WINDOW&amp;quot;, false );&lt;br /&gt;
        textLabel = guiCreateLabel( 0, .9, 1, .1, &amp;quot;&amp;quot;, true );&lt;br /&gt;
        guiLabelSetHorizontalAlign( textLabel, &amp;quot;center&amp;quot; );&lt;br /&gt;
    end&lt;br /&gt;
);&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onClientMouseMove&amp;quot;, getRootElement( ),&lt;br /&gt;
    function ( x, y )&lt;br /&gt;
        if source then&lt;br /&gt;
            if not guiGetVisible( textLabel ) then guiSetVisible( textLabel, true ) end&lt;br /&gt;
            guiSetText( textLabel, &amp;quot;X: &amp;quot; .. tostring( x ) .. &amp;quot;;  Y: &amp;quot;.. tostring( y ) )&lt;br /&gt;
        else&lt;br /&gt;
            guiSetVisible( textLabel, false );&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[pl:onClientMouseMove]]&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===GUI events===&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Algeriany</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PlaySound&amp;diff=49301</id>
		<title>PlaySound</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PlaySound&amp;diff=49301"/>
		<updated>2016-09-26T21:26:46Z</updated>

		<summary type="html">&lt;p&gt;Algeriany: /* Example */&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:''' The only supported audio formats are MP3, WAV, OGG, RIFF, MOD, XM, IT, S3M and PLS(e.g. Webstream).&lt;br /&gt;
{{Note|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 of the sound file you want to play. (Sound specified by filepath has to be predefined in the [[meta.xml]] file with &amp;lt;file /&amp;gt; tag.)&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;) --وضع اسم الاغنية المراد تشغيلها اتناء موت الاعب&lt;br /&gt;
	setSoundVolume(sound, 0.5) -- وضع مستوى الصوت 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;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
[[AR:playSound]]&lt;br /&gt;
[[DE:playSound]]&lt;/div&gt;</summary>
		<author><name>Algeriany</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientMarkerHit&amp;diff=49300</id>
		<title>OnClientMarkerHit</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientMarkerHit&amp;diff=49300"/>
		<updated>2016-09-26T21:26:34Z</updated>

		<summary type="html">&lt;p&gt;Algeriany: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
This event is triggered when a player enters a marker created using [[createMarker]].&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
player hitPlayer, bool matchingDimension&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''hitPlayer:''' The player that hit the marker&lt;br /&gt;
*'''matchingDimension:''' ''true'' if the player is in the same dimension as the marker he hit&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[marker]] that got hit by the player.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This code will output a message to the chatbox whenever any player walks into any marker.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function MarkerHit ( hitPlayer, matchingDimension )--عند لمس اللاعب للماركر&lt;br /&gt;
	outputChatBox ( getPlayerName(hitPlayer) .. &amp;quot; entered a marker&amp;quot; )--نخرج نص ب الشات&lt;br /&gt;
end--انهاء&lt;br /&gt;
addEventHandler ( &amp;quot;onClientMarkerHit&amp;quot;, getRootElement(), MarkerHit )--اضافة الحدث عند اللمس&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client marker events===&lt;br /&gt;
{{Client marker events}}&lt;br /&gt;
===Client marker functions===&lt;br /&gt;
{{Client_marker_functions}}&lt;/div&gt;</summary>
		<author><name>Algeriany</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=StopSound&amp;diff=49299</id>
		<title>StopSound</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=StopSound&amp;diff=49299"/>
		<updated>2016-09-26T21:23:33Z</updated>

		<summary type="html">&lt;p&gt;Algeriany: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Stops the sound playback for specified [[sound]] [[element]]. The sound element is also destroyed.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool stopSound ( element theSound )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[sound]]:stop}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theSound:''' the [[sound]] [[element]] you want to stop playing.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the sound was successfully stopped, ''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 startMySound()&lt;br /&gt;
    sound = playSound( &amp;quot;sound.mp3&amp;quot;, true )--هنا صنعنا اغنية يجب تسميتها اسم&lt;br /&gt;
end--انهاء&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, resourceRoot, startMySound )--اضافة حدث &lt;br /&gt;
&lt;br /&gt;
function stopMySound()&lt;br /&gt;
    stopSound( sound )--نوقف الاغنية من جلب اسمها &lt;br /&gt;
end--انهاء&lt;br /&gt;
addCommandHandler ( &amp;quot;stopsound&amp;quot;, stopMySound )--اضافة امر &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;
[[AR:stopSound]]&lt;/div&gt;</summary>
		<author><name>Algeriany</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientPlayerJoin&amp;diff=49298</id>
		<title>OnClientPlayerJoin</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientPlayerJoin&amp;diff=49298"/>
		<updated>2016-09-26T21:20:54Z</updated>

		<summary type="html">&lt;p&gt;Algeriany: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
This event is triggered when a [[player]] joins a server. It is triggered for all players except the local player, as the local player joins the server before their client-side resources are started. It would also be possible for two players to join within a few seconds of each other and for the two players' scripts may not receive onClientPlayerJoin events as their scripts wouldn't have started yet.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
''None''&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] that joined the server.&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 remotePlayerJoin()--فنكشن دخول اللاعب&lt;br /&gt;
	outputChatBox(&amp;quot;* &amp;quot; .. getPlayerName(source) .. &amp;quot; has joined the server&amp;quot;)--اخراج نص ب الشات&lt;br /&gt;
end--انهاء الفنكشن&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerJoin&amp;quot;, getRootElement(), remotePlayerJoin)--حدث دخول اللاعب&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client player events===&lt;br /&gt;
{{Client_player_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Algeriany</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientMarkerLeave&amp;diff=49297</id>
		<title>OnClientMarkerLeave</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientMarkerLeave&amp;diff=49297"/>
		<updated>2016-09-26T21:19:33Z</updated>

		<summary type="html">&lt;p&gt;Algeriany: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
This event is triggered when a player leaves the area of a marker created using [[createMarker]].&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
player leftPlayer, bool matchingDimension&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''leftPlayer''': The player that left the marker's area&lt;br /&gt;
*'''matchingDimension''': ''true'' if the player is in the same dimension as the marker he left&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[marker]] that the player left.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example shows a message in the chatbox whenever a player leaves any marker.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function markerLeave ( leavingPlayer, matchingDimension )--عند خروج اللاعب من الماركر&lt;br /&gt;
    outputChatBox ( getPlayerName(leavingPlayer) .. &amp;quot; left a marker&amp;quot; )--نخرج نص ب الشات&lt;br /&gt;
end--ايند للفنكشن&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onClientMarkerLeave&amp;quot;, getRootElement(), markerLeave )--اضافة حدث الخروج&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client marker events===&lt;br /&gt;
{{Client marker events}}&lt;br /&gt;
===Client marker functions===&lt;br /&gt;
{{Client_marker_functions}}&lt;/div&gt;</summary>
		<author><name>Algeriany</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientMarkerHit&amp;diff=49296</id>
		<title>OnClientMarkerHit</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientMarkerHit&amp;diff=49296"/>
		<updated>2016-09-26T21:18:45Z</updated>

		<summary type="html">&lt;p&gt;Algeriany: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
This event is triggered when a player enters a marker created using [[createMarker]].&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
player hitPlayer, bool matchingDimension&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''hitPlayer:''' The player that hit the marker&lt;br /&gt;
*'''matchingDimension:''' ''true'' if the player is in the same dimension as the marker he hit&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[marker]] that got hit by the player.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This code will output a message to the chatbox whenever any player walks into any marker.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function MarkerHit ( hitPlayer, matchingDimension )--عند لمس اللاعب للماركر&lt;br /&gt;
	outputChatBox ( getPlayerName(hitPlayer) .. &amp;quot; entered a marker&amp;quot; )--نخرج نص ب الشات&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientMarkerHit&amp;quot;, getRootElement(), MarkerHit )--اضافة الحدث عند اللمس&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client marker events===&lt;br /&gt;
{{Client marker events}}&lt;br /&gt;
===Client marker functions===&lt;br /&gt;
{{Client_marker_functions}}&lt;/div&gt;</summary>
		<author><name>Algeriany</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PlaySound&amp;diff=49295</id>
		<title>PlaySound</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PlaySound&amp;diff=49295"/>
		<updated>2016-09-26T21:15:35Z</updated>

		<summary type="html">&lt;p&gt;Algeriany: /* Example */&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:''' The only supported audio formats are MP3, WAV, OGG, RIFF, MOD, XM, IT, S3M and PLS(e.g. Webstream).&lt;br /&gt;
{{Note|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 of the sound file you want to play. (Sound specified by filepath has to be predefined in the [[meta.xml]] file with &amp;lt;file /&amp;gt; tag.)&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;) --وضع اسم الاغنية المراد تشغيلها اتناء موت الاعب&lt;br /&gt;
	setSoundVolume(sound, 0.5) -- وضع مستوى الصوت 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;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
[[AR:playSound]]&lt;br /&gt;
[[DE:playSound]]&lt;/div&gt;</summary>
		<author><name>Algeriany</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PlaySound&amp;diff=49294</id>
		<title>PlaySound</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PlaySound&amp;diff=49294"/>
		<updated>2016-09-26T21:13:50Z</updated>

		<summary type="html">&lt;p&gt;Algeriany: /* Example */&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:''' The only supported audio formats are MP3, WAV, OGG, RIFF, MOD, XM, IT, S3M and PLS(e.g. Webstream).&lt;br /&gt;
{{Note|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 of the sound file you want to play. (Sound specified by filepath has to be predefined in the [[meta.xml]] file with &amp;lt;file /&amp;gt; tag.)&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;) --وضع اسم الاغنية المراد تشغيلها اتناء موت الاعب&lt;br /&gt;
	setSoundVolume(sound, 0.5) -- وضع مستوى الصوت 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;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
[[AR:playSound]]&lt;br /&gt;
[[DE:playSound]]&lt;/div&gt;</summary>
		<author><name>Algeriany</name></author>
	</entry>
</feed>