<?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=MR.NaiF-MTA</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=MR.NaiF-MTA"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/MR.NaiF-MTA"/>
	<updated>2026-05-20T00:08:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/guiSetText&amp;diff=51223</id>
		<title>AR/guiSetText</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/guiSetText&amp;diff=51223"/>
		<updated>2017-06-08T16:37:10Z</updated>

		<summary type="html">&lt;p&gt;MR.NaiF-MTA: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
GUI هذه الوظيفة تستخدم لتغيير الكلام علي شي .&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 guiSetText ( element guiElement, string text )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''guiElement:''' الشي الذي تريد تغيره&lt;br /&gt;
*'''text:''' الكلام الجديد&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
اذا الشي تم تغيره ''true'' ترجع&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
ينشئ هذا المثال ليبل. عند النقر على الليبل، يتم عرض الليبل في المكان  الذي تم الضغط فيه و يخبرك بنوع العنصر الذي نقرت عليه. يخفي بعد 5 ثوان.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- create an empty label&lt;br /&gt;
local myLabel = guiCreateLabel  ( 0, 0, 1, 1, &amp;quot;&amp;quot;, true )&lt;br /&gt;
&lt;br /&gt;
function addLabelOnClick ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement )&lt;br /&gt;
	-- if an element was clicked on screen&lt;br /&gt;
	if ( clickedElement ) then&lt;br /&gt;
		-- retrieve the element type&lt;br /&gt;
		local elementType = getElementType ( clickedElement )&lt;br /&gt;
		-- change the label text to that element type&lt;br /&gt;
		guiSetText ( myLabel, elementType )&lt;br /&gt;
		-- and place it in the position of where the element is&lt;br /&gt;
		guiSetPosition ( myLabel, absoluteX, absoluteY, true )&lt;br /&gt;
		-- hide the text by passing an empty string 5 seconds later&lt;br /&gt;
		setTimer ( guiSetText, 5000, 1, myLabel, &amp;quot;&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientClick&amp;quot;, getRootElement(), addLabelOnClick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;/div&gt;</summary>
		<author><name>MR.NaiF-MTA</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/guiSetText&amp;diff=51222</id>
		<title>AR/guiSetText</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/guiSetText&amp;diff=51222"/>
		<updated>2017-06-08T16:34:03Z</updated>

		<summary type="html">&lt;p&gt;MR.NaiF-MTA: Created page with &amp;quot;{{Client function}} __NOTOC__ GUI هذه الوظيفة تستخدم لتغيير الكلام علي شي .  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool guiSetText ( elemen...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
GUI هذه الوظيفة تستخدم لتغيير الكلام علي شي .&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 guiSetText ( element guiElement, string text )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''guiElement:''' الشي الذي تريد تغيره&lt;br /&gt;
*'''text:''' الكلام الجديد&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
اذا الشي تم تغيره ''true'' ترجع&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a label. When an element is clicked, the label displays in the position of the element telling you what kind of element you have clicked. It hides after 5 seconds.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- create an empty label&lt;br /&gt;
local myLabel = guiCreateLabel  ( 0, 0, 1, 1, &amp;quot;&amp;quot;, true )&lt;br /&gt;
&lt;br /&gt;
function addLabelOnClick ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement )&lt;br /&gt;
	-- if an element was clicked on screen&lt;br /&gt;
	if ( clickedElement ) then&lt;br /&gt;
		-- retrieve the element type&lt;br /&gt;
		local elementType = getElementType ( clickedElement )&lt;br /&gt;
		-- change the label text to that element type&lt;br /&gt;
		guiSetText ( myLabel, elementType )&lt;br /&gt;
		-- and place it in the position of where the element is&lt;br /&gt;
		guiSetPosition ( myLabel, absoluteX, absoluteY, true )&lt;br /&gt;
		-- hide the text by passing an empty string 5 seconds later&lt;br /&gt;
		setTimer ( guiSetText, 5000, 1, myLabel, &amp;quot;&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientClick&amp;quot;, getRootElement(), addLabelOnClick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;/div&gt;</summary>
		<author><name>MR.NaiF-MTA</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/Table&amp;diff=51221</id>
		<title>AR/Table</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/Table&amp;diff=51221"/>
		<updated>2017-06-08T16:28:41Z</updated>

		<summary type="html">&lt;p&gt;MR.NaiF-MTA: /* table.foreach */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;font color=&amp;quot;#FF0000&amp;quot;  size=&amp;quot;7&amp;quot;&amp;gt;  &amp;lt;strong&amp;gt;   &amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;'''بسم الله الرحمن الرحيم'''&amp;lt;/p&amp;gt;  &amp;lt;/strong&amp;gt;    &amp;lt;/font&amp;gt;&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;___________________________________________________________________&amp;lt;/p&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''== table.foreachi ==&lt;br /&gt;
  تستخدم ل إظهار الجدول  بصف واحد              &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table   table.foreachi(table,function)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
&lt;br /&gt;
 t = {1,1,2,3,5,8,13}&lt;br /&gt;
&lt;br /&gt;
test1 = table.foreachi(t,print)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1 1&lt;br /&gt;
2 1&lt;br /&gt;
3 2&lt;br /&gt;
4 3&lt;br /&gt;
5 5&lt;br /&gt;
6 8&lt;br /&gt;
7 13&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
&lt;br /&gt;
 t = { 1,2,&amp;quot;three&amp;quot;; pi=3.14159, banana=&amp;quot;yellow&amp;quot; }&lt;br /&gt;
&lt;br /&gt;
test1 = table.foreachi(t,print)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1       1&lt;br /&gt;
2       2&lt;br /&gt;
3       three&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;___________________________________________________________________&amp;lt;/p&amp;gt;&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
== table.foreach ==&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
 تستخدم ل تكرار المفاتيح في الجدول&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;
table table.foreach(table,function)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
&lt;br /&gt;
 k = { apple=&amp;quot;green&amp;quot;, orange=&amp;quot;orange&amp;quot;, banana=&amp;quot;yellow&amp;quot; }&lt;br /&gt;
&lt;br /&gt;
test1 = table.foreach(k,print)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
apple green&lt;br /&gt;
orange orange&lt;br /&gt;
banana yellow&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
&lt;br /&gt;
 t = { 1,2,&amp;quot;three&amp;quot;; pi=3.14159, banana=&amp;quot;yellow&amp;quot; }&lt;br /&gt;
&lt;br /&gt;
test1 = table.foreach(t,print)&lt;br /&gt;
&lt;br /&gt;
1       1&lt;br /&gt;
2       2&lt;br /&gt;
3       three&lt;br /&gt;
pi      3.14159&lt;br /&gt;
banana  yellow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;___________________________________________________________________&amp;lt;/p&amp;gt; &lt;br /&gt;
== table.insert ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table table.insert (table,function)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
-- مثال على جلب أسماء اللاعبين عن طريق الجدول&lt;br /&gt;
&lt;br /&gt;
t = {  }; -- إنشاء جدول&lt;br /&gt;
&lt;br /&gt;
for i, p in ipairs ( getElementsByType ( &amp;quot;player&amp;quot; ) ) do -- لوب للاعبين&lt;br /&gt;
table.insert ( t, p ); -- نحطهم ف الجدول&lt;br /&gt;
end -- إغلاق loop&lt;br /&gt;
&lt;br /&gt;
------------------------&lt;br /&gt;
&lt;br /&gt;
addCommandHandler ( &amp;quot;gPlayer&amp;quot;, function ( ) -- إنشاء أمر&lt;br /&gt;
for i, p in ipairs ( t ) do -- نجيب اسماء عن طريق الجدول&lt;br /&gt;
if #t ~= 0 then -- نتأكد أن الجدول لا يساوي صفر أو مو فاضي&lt;br /&gt;
outputChatBox ( getPlayerName ( p ) ); -- نطلع الأسماء في الشات&lt;br /&gt;
end -- إغلاق if&lt;br /&gt;
end -- إغلاق loop&lt;br /&gt;
end -- إغلاق function&lt;br /&gt;
); -- إغلاق القوس&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;___________________________________________________________________&amp;lt;/p&amp;gt; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table table.remove (table,function)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
-- مثال على حذف إسم اللاعب من الجدول&lt;br /&gt;
 &lt;br /&gt;
t = {  }; -- إنشاء جدول&lt;br /&gt;
 &lt;br /&gt;
for i, p in ipairs ( getElementsByType ( &amp;quot;player&amp;quot; ) ) do -- لوب للاعبين&lt;br /&gt;
table.insert ( t, p ); -- نحط اللاعبين ف الجدول&lt;br /&gt;
end -- إغلاق loop&lt;br /&gt;
 &lt;br /&gt;
------------------------&lt;br /&gt;
 &lt;br /&gt;
addCommandHandler ( &amp;quot;removeMe&amp;quot;, function ( player ) -- إنشاء أمر&lt;br /&gt;
for i, p in ipairs ( t ) do -- نجيب الا ف الجدول&lt;br /&gt;
if #t ~= 0 then -- نتأكد أن الجدول لا يساوي صفر أو مو فاضي&lt;br /&gt;
if player == p then  -- إذا كان إسم اللاعب الي كتب الأمر يساوي اللاعب اف الجدول&lt;br /&gt;
table.remove ( t, i ); -- نحذفه من الجدول بواسطة رقمه&lt;br /&gt;
end -- إغلاق if &lt;br /&gt;
end -- إغلاق if&lt;br /&gt;
end -- إغلاق loop&lt;br /&gt;
end -- إغلاق function&lt;br /&gt;
); -- &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;___________________________________________________________________&amp;lt;/p&amp;gt; &lt;br /&gt;
&lt;br /&gt;
'''== table.sort ==&lt;br /&gt;
  تستخدم لـ ترتيب الجدول             &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table   table.sort(table,function)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
t = {5,1,7,2,9,8,3} -- صنع جدول داخله ارقام عشوائية&lt;br /&gt;
table.sort(t,&lt;br /&gt;
function (a,b)&lt;br /&gt;
 return ( tonumber(a) or 0 ) &amp;lt; ( tonumber(b) or 0 ) -- يرتبهم حسب الاصغر&lt;br /&gt;
end&lt;br /&gt;
)&lt;br /&gt;
-- النتيجة&lt;br /&gt;
-- t = {1,2,3,5,7,8,9}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;___________________________________________________________________&amp;lt;/p&amp;gt; &lt;br /&gt;
&lt;br /&gt;
'''== table.concat ==&lt;br /&gt;
&lt;br /&gt;
تستخدم لتكوين نص من الكلمات دآخل الجدول       &lt;br /&gt;
        &lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
t = { &amp;quot;I&amp;quot;, &amp;quot;Love&amp;quot;, &amp;quot;You&amp;quot; };&lt;br /&gt;
 &lt;br /&gt;
outputChatBox ( table.concat ( t, &amp;quot; &amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
-- I Love You&lt;br /&gt;
&lt;br /&gt;
---------------------------------&lt;br /&gt;
&lt;br /&gt;
t = { &amp;quot;1&amp;quot;, &amp;quot;2&amp;quot;, &amp;quot;3&amp;quot;, &amp;quot;Go!&amp;quot; };&lt;br /&gt;
 &lt;br /&gt;
outputChatBox ( table.concat ( t, &amp;quot;, &amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
-- 1, 2, 3, Go!&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;___________________________________________________________________&amp;lt;/p&amp;gt; &lt;br /&gt;
&lt;br /&gt;
'''== unpack ==&lt;br /&gt;
  تستخدم لـ استخراج قيم الجدول             &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table   unpack(table)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
Colors = {255,50,100}&lt;br /&gt;
R,G,B = unpack(Colors)&lt;br /&gt;
 -- R = 255 , G = 50, B = 100&lt;br /&gt;
outputChatBox(&amp;quot;Works!&amp;quot;,R,G,B)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background: #FFCFCF; padding: 5px; font-weight:bold; border: 1px dotted #AAAAAA;padding:10px;margin:10px;&amp;quot;&amp;gt;&amp;lt;center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;#0066cc&amp;quot;  size=&amp;quot;5&amp;quot;&amp;gt;؟ table.foreachi و table.foreach الفرق بين    &amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
الاولى تستخدم لفهرسة الجدول بينما الاخرى هي لتكرار مفاتيح الجداول ,,&lt;br /&gt;
ملاحظة : الثانيه غير مضمونه بما يتعلق الترتيب التي يتم تخزين مفاتيح في جدول&lt;br /&gt;
&amp;lt;/center&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== الجداول التي تحتاج لترجمة أو امثلة ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.lua.org/manual/5.1/manual.html#pdf-table.maxn table.maxn]&lt;/div&gt;</summary>
		<author><name>MR.NaiF-MTA</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/Table&amp;diff=51220</id>
		<title>AR/Table</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/Table&amp;diff=51220"/>
		<updated>2017-06-08T16:27:45Z</updated>

		<summary type="html">&lt;p&gt;MR.NaiF-MTA: /* table.foreach */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;font color=&amp;quot;#FF0000&amp;quot;  size=&amp;quot;7&amp;quot;&amp;gt;  &amp;lt;strong&amp;gt;   &amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;'''بسم الله الرحمن الرحيم'''&amp;lt;/p&amp;gt;  &amp;lt;/strong&amp;gt;    &amp;lt;/font&amp;gt;&amp;lt;br /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;___________________________________________________________________&amp;lt;/p&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''== table.foreachi ==&lt;br /&gt;
  تستخدم ل إظهار الجدول  بصف واحد              &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table   table.foreachi(table,function)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
&lt;br /&gt;
 t = {1,1,2,3,5,8,13}&lt;br /&gt;
&lt;br /&gt;
test1 = table.foreachi(t,print)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1 1&lt;br /&gt;
2 1&lt;br /&gt;
3 2&lt;br /&gt;
4 3&lt;br /&gt;
5 5&lt;br /&gt;
6 8&lt;br /&gt;
7 13&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
&lt;br /&gt;
 t = { 1,2,&amp;quot;three&amp;quot;; pi=3.14159, banana=&amp;quot;yellow&amp;quot; }&lt;br /&gt;
&lt;br /&gt;
test1 = table.foreachi(t,print)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1       1&lt;br /&gt;
2       2&lt;br /&gt;
3       three&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;___________________________________________________________________&amp;lt;/p&amp;gt;&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
== table.foreach ==&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
 تستخدم ل تكرار المفاتيح في الجدول&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;
table table.foreach(table,function)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
&lt;br /&gt;
 k = { apple=&amp;quot;green&amp;quot;, orange=&amp;quot;orange&amp;quot;, banana=&amp;quot;yellow&amp;quot; }&lt;br /&gt;
&lt;br /&gt;
test1 = table.foreach(k,print)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
apple green&lt;br /&gt;
orange orange&lt;br /&gt;
banana yellow&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
&lt;br /&gt;
 t = { 1,2,&amp;quot;three&amp;quot;; pi=3.14159, banana=&amp;quot;yellow&amp;quot; }&lt;br /&gt;
&lt;br /&gt;
test1 = table.foreach(t,print)&lt;br /&gt;
&lt;br /&gt;
1       1&lt;br /&gt;
2       2&lt;br /&gt;
3       three&lt;br /&gt;
pi      3.14159&lt;br /&gt;
banana  yellow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;___________________________________________________________________&amp;lt;/p&amp;gt; &lt;br /&gt;
== table.insert&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table table.insert (table,function)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
-- مثال على جلب أسماء اللاعبين عن طريق الجدول&lt;br /&gt;
&lt;br /&gt;
t = {  }; -- إنشاء جدول&lt;br /&gt;
&lt;br /&gt;
for i, p in ipairs ( getElementsByType ( &amp;quot;player&amp;quot; ) ) do -- لوب للاعبين&lt;br /&gt;
table.insert ( t, p ); -- نحطهم ف الجدول&lt;br /&gt;
end -- إغلاق loop&lt;br /&gt;
&lt;br /&gt;
------------------------&lt;br /&gt;
&lt;br /&gt;
addCommandHandler ( &amp;quot;gPlayer&amp;quot;, function ( ) -- إنشاء أمر&lt;br /&gt;
for i, p in ipairs ( t ) do -- نجيب اسماء عن طريق الجدول&lt;br /&gt;
if #t ~= 0 then -- نتأكد أن الجدول لا يساوي صفر أو مو فاضي&lt;br /&gt;
outputChatBox ( getPlayerName ( p ) ); -- نطلع الأسماء في الشات&lt;br /&gt;
end -- إغلاق if&lt;br /&gt;
end -- إغلاق loop&lt;br /&gt;
end -- إغلاق function&lt;br /&gt;
); -- إغلاق القوس&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;___________________________________________________________________&amp;lt;/p&amp;gt; &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table table.remove (table,function)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
-- مثال على حذف إسم اللاعب من الجدول&lt;br /&gt;
 &lt;br /&gt;
t = {  }; -- إنشاء جدول&lt;br /&gt;
 &lt;br /&gt;
for i, p in ipairs ( getElementsByType ( &amp;quot;player&amp;quot; ) ) do -- لوب للاعبين&lt;br /&gt;
table.insert ( t, p ); -- نحط اللاعبين ف الجدول&lt;br /&gt;
end -- إغلاق loop&lt;br /&gt;
 &lt;br /&gt;
------------------------&lt;br /&gt;
 &lt;br /&gt;
addCommandHandler ( &amp;quot;removeMe&amp;quot;, function ( player ) -- إنشاء أمر&lt;br /&gt;
for i, p in ipairs ( t ) do -- نجيب الا ف الجدول&lt;br /&gt;
if #t ~= 0 then -- نتأكد أن الجدول لا يساوي صفر أو مو فاضي&lt;br /&gt;
if player == p then  -- إذا كان إسم اللاعب الي كتب الأمر يساوي اللاعب اف الجدول&lt;br /&gt;
table.remove ( t, i ); -- نحذفه من الجدول بواسطة رقمه&lt;br /&gt;
end -- إغلاق if &lt;br /&gt;
end -- إغلاق if&lt;br /&gt;
end -- إغلاق loop&lt;br /&gt;
end -- إغلاق function&lt;br /&gt;
); -- &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;___________________________________________________________________&amp;lt;/p&amp;gt; &lt;br /&gt;
&lt;br /&gt;
'''== table.sort ==&lt;br /&gt;
  تستخدم لـ ترتيب الجدول             &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table   table.sort(table,function)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
t = {5,1,7,2,9,8,3} -- صنع جدول داخله ارقام عشوائية&lt;br /&gt;
table.sort(t,&lt;br /&gt;
function (a,b)&lt;br /&gt;
 return ( tonumber(a) or 0 ) &amp;lt; ( tonumber(b) or 0 ) -- يرتبهم حسب الاصغر&lt;br /&gt;
end&lt;br /&gt;
)&lt;br /&gt;
-- النتيجة&lt;br /&gt;
-- t = {1,2,3,5,7,8,9}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;___________________________________________________________________&amp;lt;/p&amp;gt; &lt;br /&gt;
&lt;br /&gt;
'''== table.concat ==&lt;br /&gt;
&lt;br /&gt;
تستخدم لتكوين نص من الكلمات دآخل الجدول       &lt;br /&gt;
        &lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
t = { &amp;quot;I&amp;quot;, &amp;quot;Love&amp;quot;, &amp;quot;You&amp;quot; };&lt;br /&gt;
 &lt;br /&gt;
outputChatBox ( table.concat ( t, &amp;quot; &amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
-- I Love You&lt;br /&gt;
&lt;br /&gt;
---------------------------------&lt;br /&gt;
&lt;br /&gt;
t = { &amp;quot;1&amp;quot;, &amp;quot;2&amp;quot;, &amp;quot;3&amp;quot;, &amp;quot;Go!&amp;quot; };&lt;br /&gt;
 &lt;br /&gt;
outputChatBox ( table.concat ( t, &amp;quot;, &amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
-- 1, 2, 3, Go!&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;___________________________________________________________________&amp;lt;/p&amp;gt; &lt;br /&gt;
&lt;br /&gt;
'''== unpack ==&lt;br /&gt;
  تستخدم لـ استخراج قيم الجدول             &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table   unpack(table)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&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;
Colors = {255,50,100}&lt;br /&gt;
R,G,B = unpack(Colors)&lt;br /&gt;
 -- R = 255 , G = 50, B = 100&lt;br /&gt;
outputChatBox(&amp;quot;Works!&amp;quot;,R,G,B)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background: #FFCFCF; padding: 5px; font-weight:bold; border: 1px dotted #AAAAAA;padding:10px;margin:10px;&amp;quot;&amp;gt;&amp;lt;center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;#0066cc&amp;quot;  size=&amp;quot;5&amp;quot;&amp;gt;؟ table.foreachi و table.foreach الفرق بين    &amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
الاولى تستخدم لفهرسة الجدول بينما الاخرى هي لتكرار مفاتيح الجداول ,,&lt;br /&gt;
ملاحظة : الثانيه غير مضمونه بما يتعلق الترتيب التي يتم تخزين مفاتيح في جدول&lt;br /&gt;
&amp;lt;/center&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== الجداول التي تحتاج لترجمة أو امثلة ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.lua.org/manual/5.1/manual.html#pdf-table.maxn table.maxn]&lt;/div&gt;</summary>
		<author><name>MR.NaiF-MTA</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:MR.NaiF-MTA&amp;diff=50367</id>
		<title>User talk:MR.NaiF-MTA</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:MR.NaiF-MTA&amp;diff=50367"/>
		<updated>2017-01-24T06:27:53Z</updated>

		<summary type="html">&lt;p&gt;MR.NaiF-MTA: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MR.NaiF-MTA</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:MR.NaiF-MTA&amp;diff=50366</id>
		<title>User talk:MR.NaiF-MTA</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:MR.NaiF-MTA&amp;diff=50366"/>
		<updated>2017-01-24T06:26:01Z</updated>

		<summary type="html">&lt;p&gt;MR.NaiF-MTA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[COLOR=&amp;quot;DarkRed&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
createMarker شرح وظيفة&lt;br /&gt;
السلام عليكم و رحمة الله وبركاته&lt;br /&gt;
&lt;br /&gt;
createMarker  وظيفة&lt;br /&gt;
&lt;br /&gt;
هي تقوم بانشاء علامة علي الخريطة&lt;br /&gt;
&lt;br /&gt;
مثال&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[/COLOR]&lt;/div&gt;</summary>
		<author><name>MR.NaiF-MTA</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:MR.NaiF-MTA&amp;diff=50365</id>
		<title>User talk:MR.NaiF-MTA</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:MR.NaiF-MTA&amp;diff=50365"/>
		<updated>2017-01-24T06:19:51Z</updated>

		<summary type="html">&lt;p&gt;MR.NaiF-MTA: createMarker شرح وظيفة&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;createMarker شرح وظيفة&lt;/div&gt;</summary>
		<author><name>MR.NaiF-MTA</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateBlip&amp;diff=50364</id>
		<title>CreateBlip</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateBlip&amp;diff=50364"/>
		<updated>2017-01-24T06:17:57Z</updated>

		<summary type="html">&lt;p&gt;MR.NaiF-MTA: /* See Also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function creates a [[blip]] [[element]], which is displayed as an icon on the client's radar.&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;
blip createBlip ( float x, float y, float z [, int icon = 0, int size = 2, int r = 255, int g = 0, int b = 0, int a = 255, int ordering = 0, float visibleDistance = 99999.0, visibleTo = getRootElement( ) ] )&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
blip createBlip ( float x, float y, float z [, int icon = 0, int size = 2, int r = 255, int g = 0, int b = 0, int a = 255, int ordering = 0, float visibleDistance = 99999.0 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
{{OOP||[[Blip]]}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''x:''' The x position of the blip, in world coordinates.&lt;br /&gt;
*'''y:''' The y position of the blip, in world coordinates.&lt;br /&gt;
*'''z:''' The z position of the blip, in world coordinates.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''icon:''' The icon that the radar blips should be. Valid values can be seen at [[Blip Icons]]&lt;br /&gt;
*'''size:''' The size of the radar blip. Only applicable to the ''Marker'' icon. Default is 2.&lt;br /&gt;
*'''r:''' The amount of red in the blip's color (0 - 255). Only applicable to the ''Marker'' icon. Default is 255. &lt;br /&gt;
*'''g:''' The amount of green in the blip's color (0 - 255). Only applicable to the ''Marker'' icon. Default is 0.&lt;br /&gt;
*'''b:''' The amount of blue in the blip's color (0 - 255). Only applicable to the ''Marker'' icon. Default is 0.&lt;br /&gt;
*'''a:''' The amount of alpha in the blip's color (0 - 255). Only applicable to the ''Marker'' icon. Default is 255.&lt;br /&gt;
{{New feature/item|3|1.0||&lt;br /&gt;
*'''ordering:''' This defines the blip's Z-level ordering (-32768 - 32767). Default is 0.&lt;br /&gt;
*'''visibleDistance:''' The maximum distance from the camera at which the blip is still visible&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;
*'''visibleTo:''' This defines which elements can see the blip. Defaults to visible to everyone. See [[visibility]].&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns an [[element]] of the [[blip]] if it was created successfully, ''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;
'''Example 1:''' This example creates a radar blip at a random player's position and makes it so that it is only visible to that player.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Pick a random player&lt;br /&gt;
local myPlayer = getRandomPlayer( )&lt;br /&gt;
-- Retrieve the player's position and store it in the variables x, y and z&lt;br /&gt;
local x, y, z = getElementPosition( myPlayer )&lt;br /&gt;
-- Create a radar blip at the player's position, with a 'cash' icon and only visible to the player&lt;br /&gt;
local myBlip = createBlip( x, y, z, 51, 0, 0, 0, 255, myPlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example 2:''' This example attaches a blip to a player. You can attach a blip to an element by just setting the blip's parent to that element.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Pick a random player&lt;br /&gt;
local myPlayer = getRandomPlayer( )&lt;br /&gt;
-- Create a radar blip in the middle of the map&lt;br /&gt;
local myBlip = createBlip( 0, 0, 0 )&lt;br /&gt;
-- Make the player the parent of the blip, so that the blip follows the player around&lt;br /&gt;
setElementParent( myBlip, myPlayer )&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;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
[[AR:createBlip]]&lt;br /&gt;
[[es:createBlip]]&lt;br /&gt;
[[DE:createBlip]]&lt;/div&gt;</summary>
		<author><name>MR.NaiF-MTA</name></author>
	</entry>
</feed>