<?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=Alcat+raz</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=Alcat+raz"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Alcat_raz"/>
	<updated>2026-05-12T06:41:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/Table&amp;diff=38103</id>
		<title>AR/Table</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/Table&amp;diff=38103"/>
		<updated>2014-01-03T09:51:50Z</updated>

		<summary type="html">&lt;p&gt;Alcat raz: &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;
&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 p ~= 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 p ~= 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;
'''== 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;
&lt;br /&gt;
* [http://www.lua.org/manual/5.1/manual.html#pdf-table.concat table.concat]&lt;br /&gt;
* [http://www.lua.org/manual/5.1/manual.html#pdf-table.maxn table.maxn]&lt;/div&gt;</summary>
		<author><name>Alcat raz</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/Table&amp;diff=38102</id>
		<title>AR/Table</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/Table&amp;diff=38102"/>
		<updated>2014-01-03T09:50:18Z</updated>

		<summary type="html">&lt;p&gt;Alcat raz: &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;
&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 p ~= 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 p ~= 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;
'''== 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,0,0}&lt;br /&gt;
R,G,B = unpack(Colors)&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;
&lt;br /&gt;
* [http://www.lua.org/manual/5.1/manual.html#pdf-table.concat table.concat]&lt;br /&gt;
* [http://www.lua.org/manual/5.1/manual.html#pdf-table.maxn table.maxn]&lt;/div&gt;</summary>
		<author><name>Alcat raz</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/Table&amp;diff=38101</id>
		<title>AR/Table</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/Table&amp;diff=38101"/>
		<updated>2014-01-03T09:43:54Z</updated>

		<summary type="html">&lt;p&gt;Alcat raz: &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;
&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 p ~= 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 p ~= 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;
&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;
&lt;br /&gt;
* [http://www.lua.org/manual/5.1/manual.html#pdf-table.concat table.concat]&lt;br /&gt;
* [http://www.lua.org/manual/5.1/manual.html#pdf-table.maxn table.maxn]&lt;br /&gt;
* [http://www.lua.org/manual/5.1/manual.html#pdf-unpack unpack]&lt;/div&gt;</summary>
		<author><name>Alcat raz</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/createBlip&amp;diff=36694</id>
		<title>AR/createBlip</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/createBlip&amp;diff=36694"/>
		<updated>2013-07-16T13:01:38Z</updated>

		<summary type="html">&lt;p&gt;Alcat raz: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
هذه الوظيفة تقوم بعمل علامة في الخريطة تراها في الرادار مثل العلامات الموجوده على الاعبين&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
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, &lt;br /&gt;
int ordering=0, float visibleDistance=99999.0, visibleTo = getRootElement()] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''x:''' للعلامه x احداثيات الـ&lt;br /&gt;
*'''y:''' للعلامه y احداثيات الـ&lt;br /&gt;
*'''z:''' للعلامه z احداثيات الـ&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''icon:''' شكل العلامة اختارها من التالي&lt;br /&gt;
{{Blip_Icons}}&lt;br /&gt;
*'''size:''' حجم العلامة و الحجم العادي 2&lt;br /&gt;
*'''r:''' لون العلامة الاحمر&lt;br /&gt;
*'''g:''' لون العلامة الاخضر&lt;br /&gt;
*'''b:''' لون العلامة الازرق&lt;br /&gt;
*'''a:''' مقدار الوضوح للعلامة من 0 - 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;
*'''visibleTo:''' What elements can see the blip. Defaults to visible to everyone. See [[visibility]].&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, &lt;br /&gt;
int ordering=0, float visibleDistance ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&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 are:&lt;br /&gt;
{{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&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:''' هذا المثال تقوم بصنع علامة على لاعب عشوائي يتظهر العلامة للاعب فقط&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
myPlayer = getRandomPlayer () -- احضار لاعب عشوائي&lt;br /&gt;
x,y,z = getElementPosition ( myPlayer ) -- حضار احداثيات الاعب&lt;br /&gt;
myBlip = createBlip ( x, y, z, 52, 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;
myPlayer = getRandomPlayer ()&lt;br /&gt;
-- Create a radar blip in the middle of the map&lt;br /&gt;
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;
&lt;br /&gt;
'''Example 3:''' هذا المثال يقول بصنع علامة في احداثيات 0,0,0&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
createBlip ( 0 , 0 , 0 , 37 ) -- صنع علامة في احداثيات 0,0,0&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;
{{AR/Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:CreateBlip]]&lt;/div&gt;</summary>
		<author><name>Alcat raz</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/createBlip&amp;diff=36693</id>
		<title>AR/createBlip</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/createBlip&amp;diff=36693"/>
		<updated>2013-07-16T13:00:14Z</updated>

		<summary type="html">&lt;p&gt;Alcat raz: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
هذه الوظيفة تقوم بعمل علامة في الخريطة تراها في الرادار مثل العلامات الموجوده على الاعبين&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
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, &lt;br /&gt;
int ordering=0, float visibleDistance=99999.0, visibleTo = getRootElement()] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''x:''' للعلامه x احداثيات الـ&lt;br /&gt;
*'''y:''' للعلامه y احداثيات الـ&lt;br /&gt;
*'''z:''' للعلامه z احداثيات الـ&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''icon:''' شكل العلامة اختارها من التالي&lt;br /&gt;
{{Blip_Icons}}&lt;br /&gt;
*'''size:''' حجم العلامة و الحجم العادي 2&lt;br /&gt;
*'''r:''' لون العلامة الاحمر&lt;br /&gt;
*'''g:''' لون العلامة الاخضر&lt;br /&gt;
*'''b:''' لون العلامة الازرق&lt;br /&gt;
*'''a:''' مقدار الوضوح للعلامة من 0 - 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;
*'''visibleTo:''' What elements can see the blip. Defaults to visible to everyone. See [[visibility]].&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, &lt;br /&gt;
int ordering=0, float visibleDistance ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&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 are:&lt;br /&gt;
{{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&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:''' هذا المثال تقوم بصنع علامة على لاعب عشوائي يتظهر العلامة للاعب فقط&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
myPlayer = getRandomPlayer () -- احضار لاعب عشوائي&lt;br /&gt;
x,y,z = getElementPosition ( myPlayer ) -- حضار احداثيات الاعب&lt;br /&gt;
myBlip = createBlip ( x, y, z, 52, 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;
myPlayer = getRandomPlayer ()&lt;br /&gt;
-- Create a radar blip in the middle of the map&lt;br /&gt;
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;
&lt;br /&gt;
'''Example 3:''' This example creates a blip at 0 , 0 , 0&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--creates a blip at 0 , 0 , 0&lt;br /&gt;
createBlip ( 0 , 0 , 0 , 37 )&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;
{{AR/Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:CreateBlip]]&lt;/div&gt;</summary>
		<author><name>Alcat raz</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/createBlip&amp;diff=36692</id>
		<title>AR/createBlip</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/createBlip&amp;diff=36692"/>
		<updated>2013-07-16T12:41:16Z</updated>

		<summary type="html">&lt;p&gt;Alcat raz: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
هذه الوظيفة تقوم بعمل علامة في الخريطة تراها في الرادار مثل العلامات الموجوده على الاعبين&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
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, &lt;br /&gt;
int ordering=0, float visibleDistance=99999.0, visibleTo = getRootElement()] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''x:''' للعلامه x احداثيات الـ&lt;br /&gt;
*'''y:''' للعلامه y احداثيات الـ&lt;br /&gt;
*'''z:''' للعلامه z احداثيات الـ&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''icon:''' شكل العلامة اختارها من التالي&lt;br /&gt;
{{Blip_Icons}}&lt;br /&gt;
*'''size:''' حجم العلامة و الحجم العادي 2&lt;br /&gt;
*'''r:''' لون العلامة الاحمر&lt;br /&gt;
*'''g:''' لون العلامة الاخضر&lt;br /&gt;
*'''b:''' لون العلامة الازرق&lt;br /&gt;
*'''a:''' مقدار الوضوح للعلامة من 0 - 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;
*'''visibleTo:''' What elements can see the blip. Defaults to visible to everyone. See [[visibility]].&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, &lt;br /&gt;
int ordering=0, float visibleDistance ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&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 are:&lt;br /&gt;
{{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&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:''' هاذيه الوظيفة تقوم بصنع علامة على لاعب عشوائي يتظهر العلامة للاعب فقط&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
myPlayer = getRandomPlayer () -- احضار لاعب عشوائي&lt;br /&gt;
x,y,z = getElementPosition ( myPlayer ) -- حضار احداثيات الاعب&lt;br /&gt;
myBlip = createBlip ( x, y, z, 52, 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;
myPlayer = getRandomPlayer ()&lt;br /&gt;
-- Create a radar blip in the middle of the map&lt;br /&gt;
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;
&lt;br /&gt;
'''Example 3:''' This example creates a blip at 0 , 0 , 0&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--creates a blip at 0 , 0 , 0&lt;br /&gt;
createBlip ( 0 , 0 , 0 , 37 )&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;
{{AR/Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:CreateBlip]]&lt;/div&gt;</summary>
		<author><name>Alcat raz</name></author>
	</entry>
</feed>