<?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=SPLM</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=SPLM"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/SPLM"/>
	<updated>2026-05-06T17:01:15Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:SPLM&amp;diff=48895</id>
		<title>User talk:SPLM</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:SPLM&amp;diff=48895"/>
		<updated>2016-08-21T17:35:07Z</updated>

		<summary type="html">&lt;p&gt;SPLM: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/Server_Scripting_Functions&amp;diff=48892</id>
		<title>AR/Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/Server_Scripting_Functions&amp;diff=48892"/>
		<updated>2016-08-21T16:19:05Z</updated>

		<summary type="html">&lt;p&gt;SPLM: /* Serial functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
{{Adding_Pages_to_Categories_and_Templates}}&lt;br /&gt;
This page lists all the '''server-side''' scripting functions that have been implemented and are available as native functions. To request a function or event, use [[Requested Functions and Events]] or http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can also be extended by loading in dynamic modules that provide new functionality, such as utility functions. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Modules]] for a list of non-native serverside functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
For more functions, check the [[Useful_Functions|useful functions page]].&lt;br /&gt;
&lt;br /&gt;
'''Client-side scripting functions can be found here: [[Client Scripting Functions]].'''&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==وظائف الحساب==&lt;br /&gt;
{{AR/Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف اسل==&lt;br /&gt;
{{AR/ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الحظر==&lt;br /&gt;
{{AR/Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الصوت==&lt;br /&gt;
{{AR/وظائف الصوت}}&lt;br /&gt;
&lt;br /&gt;
==وظائف علامات الخريطة==&lt;br /&gt;
{{AR/Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الكاميرا==&lt;br /&gt;
{{AR/camera_fuctions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{AR/Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==الملابس و وظائف الجسم==&lt;br /&gt;
{{AR/Client_Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف المؤشر الماوس==&lt;br /&gt;
{{AR/Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العناصر==&lt;br /&gt;
{{AR/Element functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الحدث==&lt;br /&gt;
{{AR/Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف انفجار==&lt;br /&gt;
{{AR/Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف ملف==&lt;br /&gt;
{{AR/File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{AR/HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الأدخال==&lt;br /&gt;
{{AR/Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف خريطة==&lt;br /&gt;
{{AR/Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{AR/Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{AR/Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{AR/Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الدعم==&lt;br /&gt;
{{AR/Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الاعب==&lt;br /&gt;
{{functionsAR/Player functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف مناطق الرادار==&lt;br /&gt;
{{AR/Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الموارد==&lt;br /&gt;
{{AR/Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف السريال / الرقم التسلسلي==&lt;br /&gt;
{{AR/Serial functions}}&lt;br /&gt;
&lt;br /&gt;
==&amp;quot;وظائف الخادم &amp;quot;السيرفر==&lt;br /&gt;
{{AR/Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{AR/Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{AR/SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف فريق==&lt;br /&gt;
{{AR/Team functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف النص==&lt;br /&gt;
{{AR/Text functions}}&lt;br /&gt;
&lt;br /&gt;
==الوظائف ذات المنفعة==&lt;br /&gt;
{{AR/Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف السيارة==&lt;br /&gt;
{{AR/Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العالم==&lt;br /&gt;
{{AR/Water functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف سلاح==&lt;br /&gt;
{{AR/Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العالم==&lt;br /&gt;
{{AR/World functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف XML==&lt;br /&gt;
{{AR/XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:Server Scripting Functions]]&lt;br /&gt;
[[en:Server Scripting Functions]]&lt;br /&gt;
[[es:Funciones_del_Server]]&lt;br /&gt;
[[de:Server-Seitige Scripting Funktionen]]&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/Server_Scripting_Functions&amp;diff=48891</id>
		<title>AR/Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/Server_Scripting_Functions&amp;diff=48891"/>
		<updated>2016-08-21T16:17:57Z</updated>

		<summary type="html">&lt;p&gt;SPLM: /* وظائف العلامات موجود في خريطة */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
{{Adding_Pages_to_Categories_and_Templates}}&lt;br /&gt;
This page lists all the '''server-side''' scripting functions that have been implemented and are available as native functions. To request a function or event, use [[Requested Functions and Events]] or http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can also be extended by loading in dynamic modules that provide new functionality, such as utility functions. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Modules]] for a list of non-native serverside functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
For more functions, check the [[Useful_Functions|useful functions page]].&lt;br /&gt;
&lt;br /&gt;
'''Client-side scripting functions can be found here: [[Client Scripting Functions]].'''&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==وظائف الحساب==&lt;br /&gt;
{{AR/Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف اسل==&lt;br /&gt;
{{AR/ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الحظر==&lt;br /&gt;
{{AR/Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الصوت==&lt;br /&gt;
{{AR/وظائف الصوت}}&lt;br /&gt;
&lt;br /&gt;
==وظائف علامات الخريطة==&lt;br /&gt;
{{AR/Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الكاميرا==&lt;br /&gt;
{{AR/camera_fuctions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{AR/Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==الملابس و وظائف الجسم==&lt;br /&gt;
{{AR/Client_Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف المؤشر الماوس==&lt;br /&gt;
{{AR/Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العناصر==&lt;br /&gt;
{{AR/Element functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الحدث==&lt;br /&gt;
{{AR/Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف انفجار==&lt;br /&gt;
{{AR/Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف ملف==&lt;br /&gt;
{{AR/File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{AR/HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الأدخال==&lt;br /&gt;
{{AR/Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف خريطة==&lt;br /&gt;
{{AR/Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{AR/Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{AR/Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{AR/Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الدعم==&lt;br /&gt;
{{AR/Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الاعب==&lt;br /&gt;
{{functionsAR/Player functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف مناطق الرادار==&lt;br /&gt;
{{AR/Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الموارد==&lt;br /&gt;
{{AR/Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Serial functions==&lt;br /&gt;
{{AR/Serial functions}}&lt;br /&gt;
&lt;br /&gt;
==&amp;quot;وظائف الخادم &amp;quot;السيرفر==&lt;br /&gt;
{{AR/Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{AR/Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{AR/SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف فريق==&lt;br /&gt;
{{AR/Team functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف النص==&lt;br /&gt;
{{AR/Text functions}}&lt;br /&gt;
&lt;br /&gt;
==الوظائف ذات المنفعة==&lt;br /&gt;
{{AR/Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف السيارة==&lt;br /&gt;
{{AR/Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العالم==&lt;br /&gt;
{{AR/Water functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف سلاح==&lt;br /&gt;
{{AR/Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العالم==&lt;br /&gt;
{{AR/World functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف XML==&lt;br /&gt;
{{AR/XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:Server Scripting Functions]]&lt;br /&gt;
[[en:Server Scripting Functions]]&lt;br /&gt;
[[es:Funciones_del_Server]]&lt;br /&gt;
[[de:Server-Seitige Scripting Funktionen]]&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/Server_Scripting_Functions&amp;diff=48890</id>
		<title>AR/Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/Server_Scripting_Functions&amp;diff=48890"/>
		<updated>2016-08-21T16:17:01Z</updated>

		<summary type="html">&lt;p&gt;SPLM: /* وظائف لاقط سلاح */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
{{Adding_Pages_to_Categories_and_Templates}}&lt;br /&gt;
This page lists all the '''server-side''' scripting functions that have been implemented and are available as native functions. To request a function or event, use [[Requested Functions and Events]] or http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can also be extended by loading in dynamic modules that provide new functionality, such as utility functions. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Modules]] for a list of non-native serverside functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
For more functions, check the [[Useful_Functions|useful functions page]].&lt;br /&gt;
&lt;br /&gt;
'''Client-side scripting functions can be found here: [[Client Scripting Functions]].'''&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==وظائف الحساب==&lt;br /&gt;
{{AR/Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف اسل==&lt;br /&gt;
{{AR/ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الحظر==&lt;br /&gt;
{{AR/Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الصوت==&lt;br /&gt;
{{AR/وظائف الصوت}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العلامات موجود في خريطة==&lt;br /&gt;
{{AR/Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الكاميرا==&lt;br /&gt;
{{AR/camera_fuctions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{AR/Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==الملابس و وظائف الجسم==&lt;br /&gt;
{{AR/Client_Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف المؤشر الماوس==&lt;br /&gt;
{{AR/Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العناصر==&lt;br /&gt;
{{AR/Element functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الحدث==&lt;br /&gt;
{{AR/Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف انفجار==&lt;br /&gt;
{{AR/Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف ملف==&lt;br /&gt;
{{AR/File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{AR/HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الأدخال==&lt;br /&gt;
{{AR/Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف خريطة==&lt;br /&gt;
{{AR/Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{AR/Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{AR/Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{AR/Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الدعم==&lt;br /&gt;
{{AR/Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الاعب==&lt;br /&gt;
{{functionsAR/Player functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف مناطق الرادار==&lt;br /&gt;
{{AR/Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الموارد==&lt;br /&gt;
{{AR/Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Serial functions==&lt;br /&gt;
{{AR/Serial functions}}&lt;br /&gt;
&lt;br /&gt;
==&amp;quot;وظائف الخادم &amp;quot;السيرفر==&lt;br /&gt;
{{AR/Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{AR/Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{AR/SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف فريق==&lt;br /&gt;
{{AR/Team functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف النص==&lt;br /&gt;
{{AR/Text functions}}&lt;br /&gt;
&lt;br /&gt;
==الوظائف ذات المنفعة==&lt;br /&gt;
{{AR/Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف السيارة==&lt;br /&gt;
{{AR/Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العالم==&lt;br /&gt;
{{AR/Water functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف سلاح==&lt;br /&gt;
{{AR/Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العالم==&lt;br /&gt;
{{AR/World functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف XML==&lt;br /&gt;
{{AR/XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:Server Scripting Functions]]&lt;br /&gt;
[[en:Server Scripting Functions]]&lt;br /&gt;
[[es:Funciones_del_Server]]&lt;br /&gt;
[[de:Server-Seitige Scripting Funktionen]]&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/Server_Scripting_Functions&amp;diff=48889</id>
		<title>AR/Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/Server_Scripting_Functions&amp;diff=48889"/>
		<updated>2016-08-21T16:16:24Z</updated>

		<summary type="html">&lt;p&gt;SPLM: /* Utility functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
{{Adding_Pages_to_Categories_and_Templates}}&lt;br /&gt;
This page lists all the '''server-side''' scripting functions that have been implemented and are available as native functions. To request a function or event, use [[Requested Functions and Events]] or http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can also be extended by loading in dynamic modules that provide new functionality, such as utility functions. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Modules]] for a list of non-native serverside functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
For more functions, check the [[Useful_Functions|useful functions page]].&lt;br /&gt;
&lt;br /&gt;
'''Client-side scripting functions can be found here: [[Client Scripting Functions]].'''&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==وظائف الحساب==&lt;br /&gt;
{{AR/Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف اسل==&lt;br /&gt;
{{AR/ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الحظر==&lt;br /&gt;
{{AR/Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الصوت==&lt;br /&gt;
{{AR/وظائف الصوت}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العلامات موجود في خريطة==&lt;br /&gt;
{{AR/Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الكاميرا==&lt;br /&gt;
{{AR/camera_fuctions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{AR/Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==الملابس و وظائف الجسم==&lt;br /&gt;
{{AR/Client_Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف المؤشر الماوس==&lt;br /&gt;
{{AR/Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العناصر==&lt;br /&gt;
{{AR/Element functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الحدث==&lt;br /&gt;
{{AR/Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف انفجار==&lt;br /&gt;
{{AR/Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف ملف==&lt;br /&gt;
{{AR/File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{AR/HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الأدخال==&lt;br /&gt;
{{AR/Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف خريطة==&lt;br /&gt;
{{AR/Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{AR/Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{AR/Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{AR/Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف لاقط سلاح==&lt;br /&gt;
{{AR/Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الاعب==&lt;br /&gt;
{{functionsAR/Player functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف مناطق الرادار==&lt;br /&gt;
{{AR/Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الموارد==&lt;br /&gt;
{{AR/Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Serial functions==&lt;br /&gt;
{{AR/Serial functions}}&lt;br /&gt;
&lt;br /&gt;
==&amp;quot;وظائف الخادم &amp;quot;السيرفر==&lt;br /&gt;
{{AR/Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{AR/Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{AR/SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف فريق==&lt;br /&gt;
{{AR/Team functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف النص==&lt;br /&gt;
{{AR/Text functions}}&lt;br /&gt;
&lt;br /&gt;
==الوظائف ذات المنفعة==&lt;br /&gt;
{{AR/Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف السيارة==&lt;br /&gt;
{{AR/Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العالم==&lt;br /&gt;
{{AR/Water functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف سلاح==&lt;br /&gt;
{{AR/Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العالم==&lt;br /&gt;
{{AR/World functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف XML==&lt;br /&gt;
{{AR/XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:Server Scripting Functions]]&lt;br /&gt;
[[en:Server Scripting Functions]]&lt;br /&gt;
[[es:Funciones_del_Server]]&lt;br /&gt;
[[de:Server-Seitige Scripting Funktionen]]&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/Server_Scripting_Functions&amp;diff=48888</id>
		<title>AR/Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/Server_Scripting_Functions&amp;diff=48888"/>
		<updated>2016-08-21T16:13:45Z</updated>

		<summary type="html">&lt;p&gt;SPLM: /* Input functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
{{Adding_Pages_to_Categories_and_Templates}}&lt;br /&gt;
This page lists all the '''server-side''' scripting functions that have been implemented and are available as native functions. To request a function or event, use [[Requested Functions and Events]] or http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can also be extended by loading in dynamic modules that provide new functionality, such as utility functions. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Modules]] for a list of non-native serverside functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
For more functions, check the [[Useful_Functions|useful functions page]].&lt;br /&gt;
&lt;br /&gt;
'''Client-side scripting functions can be found here: [[Client Scripting Functions]].'''&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==وظائف الحساب==&lt;br /&gt;
{{AR/Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف اسل==&lt;br /&gt;
{{AR/ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الحظر==&lt;br /&gt;
{{AR/Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الصوت==&lt;br /&gt;
{{AR/وظائف الصوت}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العلامات موجود في خريطة==&lt;br /&gt;
{{AR/Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الكاميرا==&lt;br /&gt;
{{AR/camera_fuctions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{AR/Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==الملابس و وظائف الجسم==&lt;br /&gt;
{{AR/Client_Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف المؤشر الماوس==&lt;br /&gt;
{{AR/Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العناصر==&lt;br /&gt;
{{AR/Element functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الحدث==&lt;br /&gt;
{{AR/Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف انفجار==&lt;br /&gt;
{{AR/Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف ملف==&lt;br /&gt;
{{AR/File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{AR/HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الأدخال==&lt;br /&gt;
{{AR/Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف خريطة==&lt;br /&gt;
{{AR/Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{AR/Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{AR/Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{AR/Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف لاقط سلاح==&lt;br /&gt;
{{AR/Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الاعب==&lt;br /&gt;
{{functionsAR/Player functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف مناطق الرادار==&lt;br /&gt;
{{AR/Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الموارد==&lt;br /&gt;
{{AR/Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Serial functions==&lt;br /&gt;
{{AR/Serial functions}}&lt;br /&gt;
&lt;br /&gt;
==&amp;quot;وظائف الخادم &amp;quot;السيرفر==&lt;br /&gt;
{{AR/Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{AR/Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{AR/SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف فريق==&lt;br /&gt;
{{AR/Team functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف النص==&lt;br /&gt;
{{AR/Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{AR/Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف السيارة==&lt;br /&gt;
{{AR/Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العالم==&lt;br /&gt;
{{AR/Water functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف سلاح==&lt;br /&gt;
{{AR/Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العالم==&lt;br /&gt;
{{AR/World functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف XML==&lt;br /&gt;
{{AR/XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:Server Scripting Functions]]&lt;br /&gt;
[[en:Server Scripting Functions]]&lt;br /&gt;
[[es:Funciones_del_Server]]&lt;br /&gt;
[[de:Server-Seitige Scripting Funktionen]]&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/Server_Scripting_Functions&amp;diff=48887</id>
		<title>AR/Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/Server_Scripting_Functions&amp;diff=48887"/>
		<updated>2016-08-21T16:12:43Z</updated>

		<summary type="html">&lt;p&gt;SPLM: /* Radar area functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
{{Adding_Pages_to_Categories_and_Templates}}&lt;br /&gt;
This page lists all the '''server-side''' scripting functions that have been implemented and are available as native functions. To request a function or event, use [[Requested Functions and Events]] or http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can also be extended by loading in dynamic modules that provide new functionality, such as utility functions. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Modules]] for a list of non-native serverside functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
For more functions, check the [[Useful_Functions|useful functions page]].&lt;br /&gt;
&lt;br /&gt;
'''Client-side scripting functions can be found here: [[Client Scripting Functions]].'''&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==وظائف الحساب==&lt;br /&gt;
{{AR/Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف اسل==&lt;br /&gt;
{{AR/ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الحظر==&lt;br /&gt;
{{AR/Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الصوت==&lt;br /&gt;
{{AR/وظائف الصوت}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العلامات موجود في خريطة==&lt;br /&gt;
{{AR/Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الكاميرا==&lt;br /&gt;
{{AR/camera_fuctions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{AR/Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==الملابس و وظائف الجسم==&lt;br /&gt;
{{AR/Client_Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف المؤشر الماوس==&lt;br /&gt;
{{AR/Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العناصر==&lt;br /&gt;
{{AR/Element functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الحدث==&lt;br /&gt;
{{AR/Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف انفجار==&lt;br /&gt;
{{AR/Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف ملف==&lt;br /&gt;
{{AR/File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{AR/HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Input functions==&lt;br /&gt;
{{AR/Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف خريطة==&lt;br /&gt;
{{AR/Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{AR/Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{AR/Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{AR/Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف لاقط سلاح==&lt;br /&gt;
{{AR/Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الاعب==&lt;br /&gt;
{{functionsAR/Player functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف مناطق الرادار==&lt;br /&gt;
{{AR/Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الموارد==&lt;br /&gt;
{{AR/Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Serial functions==&lt;br /&gt;
{{AR/Serial functions}}&lt;br /&gt;
&lt;br /&gt;
==&amp;quot;وظائف الخادم &amp;quot;السيرفر==&lt;br /&gt;
{{AR/Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{AR/Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{AR/SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف فريق==&lt;br /&gt;
{{AR/Team functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف النص==&lt;br /&gt;
{{AR/Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{AR/Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف السيارة==&lt;br /&gt;
{{AR/Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العالم==&lt;br /&gt;
{{AR/Water functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف سلاح==&lt;br /&gt;
{{AR/Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العالم==&lt;br /&gt;
{{AR/World functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف XML==&lt;br /&gt;
{{AR/XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:Server Scripting Functions]]&lt;br /&gt;
[[en:Server Scripting Functions]]&lt;br /&gt;
[[es:Funciones_del_Server]]&lt;br /&gt;
[[de:Server-Seitige Scripting Funktionen]]&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/Server_Scripting_Functions&amp;diff=48886</id>
		<title>AR/Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/Server_Scripting_Functions&amp;diff=48886"/>
		<updated>2016-08-21T16:08:41Z</updated>

		<summary type="html">&lt;p&gt;SPLM: /* Element functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
{{Adding_Pages_to_Categories_and_Templates}}&lt;br /&gt;
This page lists all the '''server-side''' scripting functions that have been implemented and are available as native functions. To request a function or event, use [[Requested Functions and Events]] or http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can also be extended by loading in dynamic modules that provide new functionality, such as utility functions. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Modules]] for a list of non-native serverside functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
For more functions, check the [[Useful_Functions|useful functions page]].&lt;br /&gt;
&lt;br /&gt;
'''Client-side scripting functions can be found here: [[Client Scripting Functions]].'''&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==وظائف الحساب==&lt;br /&gt;
{{AR/Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف اسل==&lt;br /&gt;
{{AR/ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الحظر==&lt;br /&gt;
{{AR/Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الصوت==&lt;br /&gt;
{{AR/وظائف الصوت}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العلامات موجود في خريطة==&lt;br /&gt;
{{AR/Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الكاميرا==&lt;br /&gt;
{{AR/camera_fuctions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{AR/Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==الملابس و وظائف الجسم==&lt;br /&gt;
{{AR/Client_Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف المؤشر الماوس==&lt;br /&gt;
{{AR/Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العناصر==&lt;br /&gt;
{{AR/Element functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الحدث==&lt;br /&gt;
{{AR/Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف انفجار==&lt;br /&gt;
{{AR/Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف ملف==&lt;br /&gt;
{{AR/File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{AR/HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Input functions==&lt;br /&gt;
{{AR/Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف خريطة==&lt;br /&gt;
{{AR/Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{AR/Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{AR/Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{AR/Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف لاقط سلاح==&lt;br /&gt;
{{AR/Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الاعب==&lt;br /&gt;
{{functionsAR/Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
{{AR/Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الموارد==&lt;br /&gt;
{{AR/Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Serial functions==&lt;br /&gt;
{{AR/Serial functions}}&lt;br /&gt;
&lt;br /&gt;
==&amp;quot;وظائف الخادم &amp;quot;السيرفر==&lt;br /&gt;
{{AR/Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{AR/Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{AR/SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف فريق==&lt;br /&gt;
{{AR/Team functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف النص==&lt;br /&gt;
{{AR/Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{AR/Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف السيارة==&lt;br /&gt;
{{AR/Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العالم==&lt;br /&gt;
{{AR/Water functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف سلاح==&lt;br /&gt;
{{AR/Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العالم==&lt;br /&gt;
{{AR/World functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف XML==&lt;br /&gt;
{{AR/XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:Server Scripting Functions]]&lt;br /&gt;
[[en:Server Scripting Functions]]&lt;br /&gt;
[[es:Funciones_del_Server]]&lt;br /&gt;
[[de:Server-Seitige Scripting Funktionen]]&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setElementData&amp;diff=48885</id>
		<title>AR/setElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setElementData&amp;diff=48885"/>
		<updated>2016-08-21T16:07:23Z</updated>

		<summary type="html">&lt;p&gt;SPLM: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
هذه الوظيفة تحفظ بيانات العنصر على مفتاح معين، يتبع لعنصر. يتم تعيين بيانات العنصر باستخدام هذا ثم يتم مزامنتها مع جميع العملاء والخادم. يمكن أن يحتوى الخادم على عناصر البيانات التي تم إنشاؤها ، ولكن يجب تجنب تمرير البيانات الغير قادرة على أن تكون متمازنه مثل xmlnodes، قوائم ACL، aclgroups الخ.&lt;br /&gt;
&lt;br /&gt;
كما يتم ممازنة بيانات العنصر مع جميع العملاء، يمكن أن تولد الكثير من الضغط على الشبكة وتستهلك وحدة المعالجة المركزية للخادم. الأحداث أكثر كفاءة لإرسال البيانات من العميل إلى الملقم فقط، أو من ملقم إلى عميل خاص.&lt;br /&gt;
&lt;br /&gt;
{{Tip|A simple and efficient way to make a variable known to the server and clients is to use setElementData on the [[root]] element.}}&lt;br /&gt;
{{Note|See [[Script security]] for tips on preventing cheaters when using events and element data}}&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;
bool setElementData ( element theElement, string key, var value [, bool synchronize = true ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:setData||getElementData}}&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة=== &lt;br /&gt;
*'''theElement:''' العنصر الذي تود بتعيين بيانات له.&lt;br /&gt;
*'''key:''' اسم مفتاح بيانات العنصر الذي تود تعيين البيانات عليه . x ( 31 حرف كحد أقصى للمفتاح )&lt;br /&gt;
*'''value:''' للحصول على قائمة من أنواع البيانات المقبولة [[element data]] القيمة التي تود بحفظها , انظر&lt;br /&gt;
&lt;br /&gt;
===العناصر الاختيارية=== &lt;br /&gt;
*'''synchronize:''' يحدد ما إذا كان سيتم مزامنة البيانات مع الخادم (تغير العميل) والعملاء عن بعد (كلا الاختلافات) أو لا&lt;br /&gt;
&lt;br /&gt;
===النواتج===&lt;br /&gt;
إرجاع '' صحيح '' إذا تم تعيين البيانات بنجاح، '' خطأ '' على خلاف ذلك.&lt;br /&gt;
&lt;br /&gt;
===Issues===&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|7389|[Fixed in 1.3.5-7389] Problem with floating numbers}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==مثال== &lt;br /&gt;
&amp;lt;section name=&amp;quot;سيرفر&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
يسمح هذا المثال لللاعب لإضافة علامة مخصصة على لقبه، وأيضا يرجعه مرة أخرى إلى وضعه الطبيعي إذا رغب في ذلك.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function addPlayerCustomTag ( thePlayer, command, newTag )&lt;br /&gt;
	-- لنتأكد من علامة التاج الجديد المدخلة ...&lt;br /&gt;
	if ( newTag ) then&lt;br /&gt;
		-- جلب اسمه الحالي للحفظ&lt;br /&gt;
		local sPlayerNickname = getPlayerName ( thePlayer )&lt;br /&gt;
		-- انشاء اسمه المستعار الجديد مع التاج&lt;br /&gt;
		local sNewPlayerNickname = newTag .. &amp;quot; &amp;quot; .. sPlayerNickname&lt;br /&gt;
		&lt;br /&gt;
		--دعونا أولا نجلب بيانات العنصر، لمعرفة ما اذا كان هنالك بيانات بالفعل&lt;br /&gt;
		-- مرتين / addtag والسبب في ذلك هو أنه إذا كان لاعب قام بعمل&lt;br /&gt;
		-- التاج يرفق مسبقاً للمره الثانية&lt;br /&gt;
		local sOldNick = getElementData( thePlayer, &amp;quot;tempdata.originalnick&amp;quot; )&lt;br /&gt;
		if ( sOldNick == false ) then&lt;br /&gt;
			-- حفظ اسمه الاصلي في بياناته&lt;br /&gt;
			setElementData ( thePlayer, &amp;quot;tempdata.originalnick&amp;quot;, sPlayerNickname )&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		-- تعيين الاسم المستعار الجديد كأسم للاعب&lt;br /&gt;
		setPlayerName ( thePlayer, sNewPlayerNickname )&lt;br /&gt;
		&lt;br /&gt;
		-- اخباره بانه تم تعيين الاسم المستعار الجديد&lt;br /&gt;
		outputChatBox ( &amp;quot;Your new nickname has been set, to put it back to its original state you can use /deltag&amp;quot;, thePlayer )&lt;br /&gt;
	else&lt;br /&gt;
		-- علامة التاج الجديد لم يتم ادخالها , اعطاء رسالة خطأ &lt;br /&gt;
		outputChatBox ( &amp;quot;/addtag - Incorrect syntax, Correct: /addtag &amp;lt;newtag&amp;gt;&amp;quot;, thePlayer )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;addtag&amp;quot;, addPlayerCustomTag )&lt;br /&gt;
&lt;br /&gt;
function removePlayerCustomTag ( thePlayer, command )&lt;br /&gt;
	-- لنقوم به الان, /addtag نحن اولاً نحتاج الى التحقق من انه مسبقاً استخدم&lt;br /&gt;
	local sOldNick = getElementData( thePlayer, &amp;quot;tempdata.originalnick&amp;quot; )&lt;br /&gt;
	if ( sOldNick ) then&lt;br /&gt;
		-- جيد , لديه تاج مضاف , لنقوم بإعادة تعيينه له&lt;br /&gt;
		&lt;br /&gt;
		-- ( false يجب ان تكون ) x اولاً نحن نريد ان نعيد تعيين بيانات العنصر لإرجاعه الى الافتراضي&lt;br /&gt;
		setElementData ( thePlayer, &amp;quot;tempdata.originalnick&amp;quot;, false )&lt;br /&gt;
		&lt;br /&gt;
		-- الآن تعيين اسم العميل الى القديم&lt;br /&gt;
		setPlayerName( thePlayer, sOldNick )&lt;br /&gt;
		&lt;br /&gt;
		-- عمل تنبيه له&lt;br /&gt;
		outputChatBox ( &amp;quot;Your old nickname has been set&amp;quot;, thePlayer )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;deltag&amp;quot;, removePlayerCustomTag )&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;
{{AR/Element_functions}}&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getElementData&amp;diff=48884</id>
		<title>AR/getElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getElementData&amp;diff=48884"/>
		<updated>2016-08-21T16:06:28Z</updated>

		<summary type="html">&lt;p&gt;SPLM: &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;
==تركيب الجملة البرمجية==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;var getElementData ( element theElement, string key [, inherit = true] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[element]]:getData||setElementData}}&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة===&lt;br /&gt;
*'''theElement:''' العنصر الذي تود جلب بياناته .&lt;br /&gt;
*'''key:'''  اسم مفتاح بيانات العنصر الذي تود جلبها . x ( 31 حرف كحد أقصى للمفتاح )&lt;br /&gt;
&lt;br /&gt;
===العناصر الاختيارية===&lt;br /&gt;
*'''inherit:''' - تفعيل الوظيفة أم لا التي يجب ان تذهب أعلى التسلسل الهرمي للعثور على المفتاح المطلوب في حالة ان العنصر المحدد لا يملكها.&lt;br /&gt;
&lt;br /&gt;
===النواتج===&lt;br /&gt;
هذه الوظيفة تقوم بإرجاع متغير يحتوي على بيانات العنصر المطلوب، أو خطأ إذا كان العنصر أو بيانات العنصر غير موجودة .&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
هذا المثال يخزن وقت دخول اللاعب بالميلي ثانية ليسمح لهم بمعرفة كم مدة اتصالهم بوظيفة 'joinTime'.&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;سيرفر&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function joinTime ( )&lt;br /&gt;
    setElementData ( source, &amp;quot;joinTime&amp;quot;, getTickCount() ) -- تخزين الوقت الصحيح بالميلي ثانية لدى اللاعب مع المفتاح 'joinTime'&lt;br /&gt;
end&lt;br /&gt;
-- صنع وظيفتنا لوقت الدخول لتقوم بعملها عندما يدخل لاعب&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, root, joinTime )&lt;br /&gt;
&lt;br /&gt;
function showJoinTime ( source, commandName, playerName )&lt;br /&gt;
	if ( playerName ) then -- تحقق من اسم اللاعب المحدد&lt;br /&gt;
		thePlayer = getPlayerFromName ( playerName ) -- جلب عنصر اللاعب للاعب المحدد&lt;br /&gt;
		if ( thePlayer ) then -- اذا كان موجوداً ...&lt;br /&gt;
			local timeOnline = (getTickCount() - getElementData ( thePlayer, &amp;quot;joinTime&amp;quot; )) / 1000 -- جلب بيانات اللاعب منذ الدخول وحسابها&lt;br /&gt;
			outputChatBox ( getPlayerName ( thePlayer )..&amp;quot; joined &amp;quot;..timeOnline..&amp;quot; seconds ago&amp;quot;, source ) -- اخراج وقت دخول اللاعب في الشات&lt;br /&gt;
		else&lt;br /&gt;
			outputChatBox ( &amp;quot;Couldn't find '&amp;quot; .. playerName .. &amp;quot;'&amp;quot;, source ) -- عرض خطأ اذا كان اللاعب غير موجود&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- عرض للاعب الذي قام بكتابة الامر طريقة استخدام الوظيفة ليرى وقت دخول الاشخاص الاخرين&lt;br /&gt;
		local timeOnline = (getTickCount() - getElementData ( source, &amp;quot;joinTime&amp;quot; )) / 1000 -- حساب وقت دخول اللاعب&lt;br /&gt;
		outputChatBox ( &amp;quot;You joined &amp;quot; ..timeOnline..&amp;quot; seconds ago&amp;quot;, source )&lt;br /&gt;
		outputChatBox ( &amp;quot;Use 'join_time &amp;lt;player name&amp;gt;' to see other people's join time&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
-- اضافة امر وقت الدخول , مع عنصر اضافي وهو اسم اللاعب&lt;br /&gt;
addCommandHandler ( &amp;quot;joinTime&amp;quot;, showJoinTime )&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;
{{AR/Element functions}}&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/removeElementData&amp;diff=48883</id>
		<title>AR/removeElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/removeElementData&amp;diff=48883"/>
		<updated>2016-08-21T16:05:50Z</updated>

		<summary type="html">&lt;p&gt;SPLM: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&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;
bool removeElementData ( element theElement, string key ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:removeData||}}&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة=== &lt;br /&gt;
*'''theElement:''' العنصر الذي تود في إزالة البيانات منه.&lt;br /&gt;
*'''key:''' مفتاح البيانات الذي تود إزالته.&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;
function spawn()&lt;br /&gt;
    setElementData(source,&amp;quot;spawned&amp;quot;,true)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerSpawn&amp;quot;, getRootElement(), spawn )&lt;br /&gt;
function wasted()&lt;br /&gt;
    removeElementData(source,&amp;quot;spawned&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerWasted&amp;quot;, getRootElement(), wasted )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{AR/Element_functions}}&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/removeBan&amp;diff=48882</id>
		<title>AR/removeBan</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/removeBan&amp;diff=48882"/>
		<updated>2016-08-21T16:03:06Z</updated>

		<summary type="html">&lt;p&gt;SPLM: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&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;
bool removeBan ( ban theBan, [ player responsibleElement ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة=== &lt;br /&gt;
*'''theBan:''' الباند المراد ازالته&lt;br /&gt;
&lt;br /&gt;
===العناصر الأختيارية=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''responsibleElement:''' [[root]] العنصر المسؤول عن الباند , يمكنه ان يكون لاعب أو&lt;br /&gt;
===النواتج===&lt;br /&gt;
. إرجاع &amp;quot;صحيح&amp;quot; إذا تمت إزالة الباند بنجاح، &amp;quot;خطأ&amp;quot; إذا تم تحديد ان العناصر خاطئة&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
هذا المثال يزيل كل باندات السيرفر ويخرج بالشات تنبيه للاعبين&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addEventHandler(&amp;quot;onResourceStart&amp;quot;,resourceRoot,&lt;br /&gt;
    function()&lt;br /&gt;
        local bans = getBans --[[ نختصر&lt;br /&gt;
        getBans&lt;br /&gt;
        بـ&lt;br /&gt;
        bans&lt;br /&gt;
        وهو أحضار جميع باندات السيرفر&lt;br /&gt;
        ]]&lt;br /&gt;
	for i,d in ipairs(bans)do -- نخرج جميع الباندات&lt;br /&gt;
	    local nick = getBanNick(d) -- حرف الدي هو جميع الباندات للمعلومية&lt;br /&gt;
            --[[ نختصر&lt;br /&gt;
            getBanNick&lt;br /&gt;
            بـ&lt;br /&gt;
            nick&lt;br /&gt;
            وهو أحضار اسم اللاعبين المتبندين &lt;br /&gt;
            ]]&lt;br /&gt;
	    if(removeBan(d))then -- اذا تم ازالة جميع الباندات&lt;br /&gt;
	        outputChatBox(nick..&amp;quot;has been removed from ban&amp;quot;,root) -- يخرج بالشات اسماء اللذين تم ازالة بانداتهم&lt;br /&gt;
	    end&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;
==أنظر ايضاً==&lt;br /&gt;
{{AR/Admin_functions}}&lt;br /&gt;
[[ru:removeBan]]&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:GabWas&amp;diff=48881</id>
		<title>User talk:GabWas</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:GabWas&amp;diff=48881"/>
		<updated>2016-08-21T15:44:41Z</updated>

		<summary type="html">&lt;p&gt;SPLM: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I'm so sorry about that, the reason is I like your page style , and I' new one here I don't know how to create pages so I have copy your page and edit the text for my page.&lt;br /&gt;
&lt;br /&gt;
If you don't want that I will change my page style , sorry again :(&lt;br /&gt;
&lt;br /&gt;
I don't know is that the right place to write this , I don't see &amp;quot;Email this user&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
^ User:SPLM&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:GabWas&amp;diff=48880</id>
		<title>User talk:GabWas</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:GabWas&amp;diff=48880"/>
		<updated>2016-08-21T15:44:07Z</updated>

		<summary type="html">&lt;p&gt;SPLM: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I'm so sorry about that, the reason is I like your page style , and I' new one here I don't know how to create pages so I have copy your page and edit the text for my page.&lt;br /&gt;
&lt;br /&gt;
If you don't want that I will change my page style , sorry again :(&lt;br /&gt;
&lt;br /&gt;
I don't know is that the right place to write this , I don't see &amp;quot;Email this user&amp;quot; button&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:SPLM&amp;diff=48879</id>
		<title>User talk:SPLM</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:SPLM&amp;diff=48879"/>
		<updated>2016-08-21T15:21:21Z</updated>

		<summary type="html">&lt;p&gt;SPLM: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:SPLM&amp;diff=48863</id>
		<title>User:SPLM</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:SPLM&amp;diff=48863"/>
		<updated>2016-08-19T11:27:12Z</updated>

		<summary type="html">&lt;p&gt;SPLM: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
==ترجمتي / My Translations==&lt;br /&gt;
&amp;lt;!-- *&amp;lt;br/&amp;gt; --&amp;gt;&lt;br /&gt;
===الوظائف / Functions===&lt;br /&gt;
*[[AR/setElementData]]&amp;lt;br/&amp;gt;&lt;br /&gt;
*[[AR/getElementData]]&amp;lt;br/&amp;gt;&lt;br /&gt;
*[[AR/removeElementData]]&amp;lt;br/&amp;gt;&lt;br /&gt;
===الأحداث / Events===&lt;br /&gt;
*None (yet)&lt;br /&gt;
===أخرى / Others===&lt;br /&gt;
*None (yet)&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:SPLM&amp;diff=48862</id>
		<title>User:SPLM</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:SPLM&amp;diff=48862"/>
		<updated>2016-08-19T11:18:36Z</updated>

		<summary type="html">&lt;p&gt;SPLM: Created page with &amp;quot;  ==My Translations== &amp;lt;!-- *AR/&amp;lt;br/&amp;gt; --&amp;gt; ===Functions=== *AR/setElementData&amp;lt;br/&amp;gt; *AR/getElementData&amp;lt;br/&amp;gt; *AR/removeElementData&amp;lt;br/&amp;gt;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
==My Translations==&lt;br /&gt;
&amp;lt;!-- *[[AR/]]&amp;lt;br/&amp;gt; --&amp;gt;&lt;br /&gt;
===Functions===&lt;br /&gt;
*[[AR/setElementData]]&amp;lt;br/&amp;gt;&lt;br /&gt;
*[[AR/getElementData]]&amp;lt;br/&amp;gt;&lt;br /&gt;
*[[AR/removeElementData]]&amp;lt;br/&amp;gt;&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/removeElementData&amp;diff=48861</id>
		<title>AR/removeElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/removeElementData&amp;diff=48861"/>
		<updated>2016-08-19T10:54:10Z</updated>

		<summary type="html">&lt;p&gt;SPLM: /* أنظر أيضا */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&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;
bool removeElementData ( element theElement, string key ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:removeData||}}&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة=== &lt;br /&gt;
*'''theElement:''' العنصر الذي تود في إزالة البيانات منه.&lt;br /&gt;
*'''key:''' مفتاح البيانات الذي تود إزالته.&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;
function spawn()&lt;br /&gt;
    setElementData(source,&amp;quot;spawned&amp;quot;,true)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerSpawn&amp;quot;, getRootElement(), spawn )&lt;br /&gt;
function wasted()&lt;br /&gt;
    removeElementData(source,&amp;quot;spawned&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerWasted&amp;quot;, getRootElement(), wasted )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==أنظر أيضاً==&lt;br /&gt;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getElementData&amp;diff=48860</id>
		<title>AR/getElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getElementData&amp;diff=48860"/>
		<updated>2016-08-19T10:52:35Z</updated>

		<summary type="html">&lt;p&gt;SPLM: /* أنظر أيضا */&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;
==تركيب الجملة البرمجية==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;var getElementData ( element theElement, string key [, inherit = true] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[element]]:getData||setElementData}}&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة===&lt;br /&gt;
*'''theElement:''' العنصر الذي تود جلب بياناته .&lt;br /&gt;
*'''key:'''  اسم مفتاح بيانات العنصر الذي تود جلبها . x ( 31 حرف كحد أقصى للمفتاح )&lt;br /&gt;
&lt;br /&gt;
===العناصر الاختيارية===&lt;br /&gt;
*'''inherit:''' - تفعيل الوظيفة أم لا التي يجب ان تذهب أعلى التسلسل الهرمي للعثور على المفتاح المطلوب في حالة ان العنصر المحدد لا يملكها.&lt;br /&gt;
&lt;br /&gt;
===النواتج===&lt;br /&gt;
هذه الوظيفة تقوم بإرجاع متغير يحتوي على بيانات العنصر المطلوب، أو خطأ إذا كان العنصر أو بيانات العنصر غير موجودة .&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
هذا المثال يخزن وقت دخول اللاعب بالميلي ثانية ليسمح لهم بمعرفة كم مدة اتصالهم بوظيفة 'joinTime'.&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;سيرفر&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function joinTime ( )&lt;br /&gt;
    setElementData ( source, &amp;quot;joinTime&amp;quot;, getTickCount() ) -- تخزين الوقت الصحيح بالميلي ثانية لدى اللاعب مع المفتاح 'joinTime'&lt;br /&gt;
end&lt;br /&gt;
-- صنع وظيفتنا لوقت الدخول لتقوم بعملها عندما يدخل لاعب&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, root, joinTime )&lt;br /&gt;
&lt;br /&gt;
function showJoinTime ( source, commandName, playerName )&lt;br /&gt;
	if ( playerName ) then -- تحقق من اسم اللاعب المحدد&lt;br /&gt;
		thePlayer = getPlayerFromName ( playerName ) -- جلب عنصر اللاعب للاعب المحدد&lt;br /&gt;
		if ( thePlayer ) then -- اذا كان موجوداً ...&lt;br /&gt;
			local timeOnline = (getTickCount() - getElementData ( thePlayer, &amp;quot;joinTime&amp;quot; )) / 1000 -- جلب بيانات اللاعب منذ الدخول وحسابها&lt;br /&gt;
			outputChatBox ( getPlayerName ( thePlayer )..&amp;quot; joined &amp;quot;..timeOnline..&amp;quot; seconds ago&amp;quot;, source ) -- اخراج وقت دخول اللاعب في الشات&lt;br /&gt;
		else&lt;br /&gt;
			outputChatBox ( &amp;quot;Couldn't find '&amp;quot; .. playerName .. &amp;quot;'&amp;quot;, source ) -- عرض خطأ اذا كان اللاعب غير موجود&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- عرض للاعب الذي قام بكتابة الامر طريقة استخدام الوظيفة ليرى وقت دخول الاشخاص الاخرين&lt;br /&gt;
		local timeOnline = (getTickCount() - getElementData ( source, &amp;quot;joinTime&amp;quot; )) / 1000 -- حساب وقت دخول اللاعب&lt;br /&gt;
		outputChatBox ( &amp;quot;You joined &amp;quot; ..timeOnline..&amp;quot; seconds ago&amp;quot;, source )&lt;br /&gt;
		outputChatBox ( &amp;quot;Use 'join_time &amp;lt;player name&amp;gt;' to see other people's join time&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
-- اضافة امر وقت الدخول , مع عنصر اضافي وهو اسم اللاعب&lt;br /&gt;
addCommandHandler ( &amp;quot;joinTime&amp;quot;, showJoinTime )&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;
{{Element functions}}&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setElementData&amp;diff=48859</id>
		<title>AR/setElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setElementData&amp;diff=48859"/>
		<updated>2016-08-19T10:49:55Z</updated>

		<summary type="html">&lt;p&gt;SPLM: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
هذه الوظيفة تحفظ بيانات العنصر على مفتاح معين، يتبع لعنصر. يتم تعيين بيانات العنصر باستخدام هذا ثم يتم مزامنتها مع جميع العملاء والخادم. يمكن أن يحتوى الخادم على عناصر البيانات التي تم إنشاؤها ، ولكن يجب تجنب تمرير البيانات الغير قادرة على أن تكون متمازنه مثل xmlnodes، قوائم ACL، aclgroups الخ.&lt;br /&gt;
&lt;br /&gt;
كما يتم ممازنة بيانات العنصر مع جميع العملاء، يمكن أن تولد الكثير من الضغط على الشبكة وتستهلك وحدة المعالجة المركزية للخادم. الأحداث أكثر كفاءة لإرسال البيانات من العميل إلى الملقم فقط، أو من ملقم إلى عميل خاص.&lt;br /&gt;
&lt;br /&gt;
{{Tip|A simple and efficient way to make a variable known to the server and clients is to use setElementData on the [[root]] element.}}&lt;br /&gt;
{{Note|See [[Script security]] for tips on preventing cheaters when using events and element data}}&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;
bool setElementData ( element theElement, string key, var value [, bool synchronize = true ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:setData||getElementData}}&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة=== &lt;br /&gt;
*'''theElement:''' العنصر الذي تود بتعيين بيانات له.&lt;br /&gt;
*'''key:''' اسم مفتاح بيانات العنصر الذي تود تعيين البيانات عليه . x ( 31 حرف كحد أقصى للمفتاح )&lt;br /&gt;
*'''value:''' للحصول على قائمة من أنواع البيانات المقبولة [[element data]] القيمة التي تود بحفظها , انظر&lt;br /&gt;
&lt;br /&gt;
===العناصر الاختيارية=== &lt;br /&gt;
*'''synchronize:''' يحدد ما إذا كان سيتم مزامنة البيانات مع الخادم (تغير العميل) والعملاء عن بعد (كلا الاختلافات) أو لا&lt;br /&gt;
&lt;br /&gt;
===النواتج===&lt;br /&gt;
إرجاع '' صحيح '' إذا تم تعيين البيانات بنجاح، '' خطأ '' على خلاف ذلك.&lt;br /&gt;
&lt;br /&gt;
===Issues===&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|7389|[Fixed in 1.3.5-7389] Problem with floating numbers}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==مثال== &lt;br /&gt;
&amp;lt;section name=&amp;quot;سيرفر&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
يسمح هذا المثال لللاعب لإضافة علامة مخصصة على لقبه، وأيضا يرجعه مرة أخرى إلى وضعه الطبيعي إذا رغب في ذلك.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function addPlayerCustomTag ( thePlayer, command, newTag )&lt;br /&gt;
	-- لنتأكد من علامة التاج الجديد المدخلة ...&lt;br /&gt;
	if ( newTag ) then&lt;br /&gt;
		-- جلب اسمه الحالي للحفظ&lt;br /&gt;
		local sPlayerNickname = getPlayerName ( thePlayer )&lt;br /&gt;
		-- انشاء اسمه المستعار الجديد مع التاج&lt;br /&gt;
		local sNewPlayerNickname = newTag .. &amp;quot; &amp;quot; .. sPlayerNickname&lt;br /&gt;
		&lt;br /&gt;
		--دعونا أولا نجلب بيانات العنصر، لمعرفة ما اذا كان هنالك بيانات بالفعل&lt;br /&gt;
		-- مرتين / addtag والسبب في ذلك هو أنه إذا كان لاعب قام بعمل&lt;br /&gt;
		-- التاج يرفق مسبقاً للمره الثانية&lt;br /&gt;
		local sOldNick = getElementData( thePlayer, &amp;quot;tempdata.originalnick&amp;quot; )&lt;br /&gt;
		if ( sOldNick == false ) then&lt;br /&gt;
			-- حفظ اسمه الاصلي في بياناته&lt;br /&gt;
			setElementData ( thePlayer, &amp;quot;tempdata.originalnick&amp;quot;, sPlayerNickname )&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		-- تعيين الاسم المستعار الجديد كأسم للاعب&lt;br /&gt;
		setPlayerName ( thePlayer, sNewPlayerNickname )&lt;br /&gt;
		&lt;br /&gt;
		-- اخباره بانه تم تعيين الاسم المستعار الجديد&lt;br /&gt;
		outputChatBox ( &amp;quot;Your new nickname has been set, to put it back to its original state you can use /deltag&amp;quot;, thePlayer )&lt;br /&gt;
	else&lt;br /&gt;
		-- علامة التاج الجديد لم يتم ادخالها , اعطاء رسالة خطأ &lt;br /&gt;
		outputChatBox ( &amp;quot;/addtag - Incorrect syntax, Correct: /addtag &amp;lt;newtag&amp;gt;&amp;quot;, thePlayer )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;addtag&amp;quot;, addPlayerCustomTag )&lt;br /&gt;
&lt;br /&gt;
function removePlayerCustomTag ( thePlayer, command )&lt;br /&gt;
	-- لنقوم به الان, /addtag نحن اولاً نحتاج الى التحقق من انه مسبقاً استخدم&lt;br /&gt;
	local sOldNick = getElementData( thePlayer, &amp;quot;tempdata.originalnick&amp;quot; )&lt;br /&gt;
	if ( sOldNick ) then&lt;br /&gt;
		-- جيد , لديه تاج مضاف , لنقوم بإعادة تعيينه له&lt;br /&gt;
		&lt;br /&gt;
		-- ( false يجب ان تكون ) x اولاً نحن نريد ان نعيد تعيين بيانات العنصر لإرجاعه الى الافتراضي&lt;br /&gt;
		setElementData ( thePlayer, &amp;quot;tempdata.originalnick&amp;quot;, false )&lt;br /&gt;
		&lt;br /&gt;
		-- الآن تعيين اسم العميل الى القديم&lt;br /&gt;
		setPlayerName( thePlayer, sOldNick )&lt;br /&gt;
		&lt;br /&gt;
		-- عمل تنبيه له&lt;br /&gt;
		outputChatBox ( &amp;quot;Your old nickname has been set&amp;quot;, thePlayer )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;deltag&amp;quot;, removePlayerCustomTag )&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;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setElementData&amp;diff=48858</id>
		<title>AR/setElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setElementData&amp;diff=48858"/>
		<updated>2016-08-19T10:46:13Z</updated>

		<summary type="html">&lt;p&gt;SPLM: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
هذه الوظيفة تحفظ بيانات العنصر على مفتاح معين، يتبع لعنصر. يتم تعيين بيانات العنصر باستخدام هذا ثم يتم مزامنتها مع جميع العملاء والخادم. يمكن أن يحتوى الخادم على عناصر البيانات التي تم إنشاؤها ، ولكن يجب تجنب تمرير البيانات الغير قادرة على أن تكون متمازنه مثل xmlnodes، قوائم ACL، aclgroups الخ.&lt;br /&gt;
&lt;br /&gt;
كما يتم ممازنة بيانات العنصر مع جميع العملاء، يمكن أن تولد الكثير من الضغط على الشبكة وتستهلك وحدة المعالجة المركزية للخادم. الأحداث أكثر كفاءة لإرسال البيانات من العميل إلى الملقم فقط، أو من ملقم إلى عميل خاص.&lt;br /&gt;
&lt;br /&gt;
{{Tip|A simple and efficient way to make a variable known to the server and clients is to use setElementData on the [[root]] element.}}&lt;br /&gt;
{{Note|See [[Script security]] for tips on preventing cheaters when using events and element data}}&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;
bool setElementData ( element theElement, string key, var value [, bool synchronize = true ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:setData||getElementData}}&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة=== &lt;br /&gt;
*'''theElement:''' العنصر الذي تود بتعيين بيانات له.&lt;br /&gt;
*'''key:''' اسم مفتاح بيانات العنصر الذي تود تعيين البيانات عليه . x ( 31 حرف كحد أقصى للمفتاح )&lt;br /&gt;
*'''value:''' للحصول على قائمة من أنواع البيانات المقبولة [[element data]] القيمة التي تود بحفظها , انظر&lt;br /&gt;
&lt;br /&gt;
===العناصر الاختيارية=== &lt;br /&gt;
*'''synchronize:''' يحدد ما إذا كان سيتم مزامنة البيانات مع الخادم (تغير العميل) والعملاء عن بعد (كلا الاختلافات) أو لا&lt;br /&gt;
&lt;br /&gt;
===النواتج===&lt;br /&gt;
إرجاع '' صحيح '' إذا تم تعيين البيانات بنجاح، '' خطأ '' على خلاف ذلك.&lt;br /&gt;
&lt;br /&gt;
===Issues===&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|7389|[Fixed in 1.3.5-7389] Problem with floating numbers}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==مثال== &lt;br /&gt;
&amp;lt;section name=&amp;quot;سيرفر&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
يسمح هذا المثال لللاعب لإضافة علامة مخصصة على لقبه، وأيضا يرجعه مرة أخرى إلى وضعه الطبيعي إذا رغب في ذلك.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function addPlayerCustomTag ( thePlayer, command, newTag )&lt;br /&gt;
	-- لنتأكد من علامة التاج الجديد المدخلة ...&lt;br /&gt;
	if ( newTag ) then&lt;br /&gt;
		-- جلب اسمه الحالي للحفظ&lt;br /&gt;
		local sPlayerNickname = getPlayerName ( thePlayer )&lt;br /&gt;
		-- انشاء اسمه المستعار الجديد مع التاج&lt;br /&gt;
		local sNewPlayerNickname = newTag .. &amp;quot; &amp;quot; .. sPlayerNickname&lt;br /&gt;
		&lt;br /&gt;
		--دعونا أولا نجلب بيانات العنصر، لمعرفة ما اذا كان هنالك بيانات بالفعل&lt;br /&gt;
		--مرتين / addtag والسبب في ذلك هو أنه إذا كان لاعب قام بعمل&lt;br /&gt;
		--التاج يرفق مسبقاً للمره الثانية&lt;br /&gt;
		local sOldNick = getElementData( thePlayer, &amp;quot;tempdata.originalnick&amp;quot; )&lt;br /&gt;
		if ( sOldNick == false ) then&lt;br /&gt;
			-- حفظ اسمه الاصلي في بياناته&lt;br /&gt;
			setElementData ( thePlayer, &amp;quot;tempdata.originalnick&amp;quot;, sPlayerNickname )&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		-- تعيين الاسم المستعار الجديد كأسم للاعب&lt;br /&gt;
		setPlayerName ( thePlayer, sNewPlayerNickname )&lt;br /&gt;
		&lt;br /&gt;
		--اخباره بانه تم&lt;br /&gt;
		outputChatBox ( &amp;quot;Your new nickname has been set, to put it back to its original state you can use /deltag&amp;quot;, thePlayer )&lt;br /&gt;
	else&lt;br /&gt;
		--علامة التاج الجديد لم يتم ادخالها , اعطاء رسالة خطأ&lt;br /&gt;
		outputChatBox ( &amp;quot;/addtag - Incorrect syntax, Correct: /addtag &amp;lt;newtag&amp;gt;&amp;quot;, thePlayer )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;addtag&amp;quot;, addPlayerCustomTag )&lt;br /&gt;
&lt;br /&gt;
function removePlayerCustomTag ( thePlayer, command )&lt;br /&gt;
	--لنقوم به الان, /addtag نحن اولاً نحتاج الى التحقق من انهم مسبقاً استخدمو&lt;br /&gt;
	local sOldNick = getElementData( thePlayer, &amp;quot;tempdata.originalnick&amp;quot; )&lt;br /&gt;
	if ( sOldNick ) then&lt;br /&gt;
		-- جيد , لديه تاج مضاف , لنقوم بإعادة تعيينه لهم&lt;br /&gt;
		&lt;br /&gt;
		--( false يجب ان تكون ) x اولاً نحن نريد ان نعيد تعيين بيانات العنصر لإرجاعه الى الافتراضي&lt;br /&gt;
		setElementData ( thePlayer, &amp;quot;tempdata.originalnick&amp;quot;, false )&lt;br /&gt;
		&lt;br /&gt;
		-- الآن تعيين اسم العميل الى القديم&lt;br /&gt;
		setPlayerName( thePlayer, sOldNick )&lt;br /&gt;
		&lt;br /&gt;
		-- عمل تنبيه له&lt;br /&gt;
		outputChatBox ( &amp;quot;Your old nickname has been set&amp;quot;, thePlayer )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;deltag&amp;quot;, removePlayerCustomTag )&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;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getElementData&amp;diff=48824</id>
		<title>AR/getElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getElementData&amp;diff=48824"/>
		<updated>2016-08-12T04:18:30Z</updated>

		<summary type="html">&lt;p&gt;SPLM: &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;
==تركيب الجملة البرمجية==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;var getElementData ( element theElement, string key [, inherit = true] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[element]]:getData||setElementData}}&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة===&lt;br /&gt;
*'''theElement:''' العنصر الذي تود جلب بياناته .&lt;br /&gt;
*'''key:'''  اسم مفتاح بيانات العنصر الذي تود جلبها . x ( 31 حرف كحد أقصى للمفتاح )&lt;br /&gt;
&lt;br /&gt;
===العناصر الاختيارية===&lt;br /&gt;
*'''inherit:''' - تفعيل الوظيفة أم لا التي يجب ان تذهب أعلى التسلسل الهرمي للعثور على المفتاح المطلوب في حالة ان العنصر المحدد لا يملكها.&lt;br /&gt;
&lt;br /&gt;
===النواتج===&lt;br /&gt;
هذه الوظيفة تقوم بإرجاع متغير يحتوي على بيانات العنصر المطلوب، أو خطأ إذا كان العنصر أو بيانات العنصر غير موجودة .&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
هذا المثال يخزن وقت دخول اللاعب بالميلي ثانية ليسمح لهم بمعرفة كم مدة اتصالهم بوظيفة 'joinTime'.&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;سيرفر&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function joinTime ( )&lt;br /&gt;
    setElementData ( source, &amp;quot;joinTime&amp;quot;, getTickCount() ) -- تخزين الوقت الصحيح بالميلي ثانية لدى اللاعب مع المفتاح 'joinTime'&lt;br /&gt;
end&lt;br /&gt;
-- صنع وظيفتنا لوقت الدخول لتقوم بعملها عندما يدخل لاعب&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, root, joinTime )&lt;br /&gt;
&lt;br /&gt;
function showJoinTime ( source, commandName, playerName )&lt;br /&gt;
	if ( playerName ) then -- تحقق من اسم اللاعب المحدد&lt;br /&gt;
		thePlayer = getPlayerFromName ( playerName ) -- جلب عنصر اللاعب للاعب المحدد&lt;br /&gt;
		if ( thePlayer ) then -- اذا كان موجوداً ...&lt;br /&gt;
			local timeOnline = (getTickCount() - getElementData ( thePlayer, &amp;quot;joinTime&amp;quot; )) / 1000 -- جلب بيانات اللاعب منذ الدخول وحسابها&lt;br /&gt;
			outputChatBox ( getPlayerName ( thePlayer )..&amp;quot; joined &amp;quot;..timeOnline..&amp;quot; seconds ago&amp;quot;, source ) -- اخراج وقت دخول اللاعب في الشات&lt;br /&gt;
		else&lt;br /&gt;
			outputChatBox ( &amp;quot;Couldn't find '&amp;quot; .. playerName .. &amp;quot;'&amp;quot;, source ) -- عرض خطأ اذا كان اللاعب غير موجود&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- عرض للاعب الذي قام بكتابة الامر طريقة استخدام الوظيفة ليرى وقت دخول الاشخاص الاخرين&lt;br /&gt;
		local timeOnline = (getTickCount() - getElementData ( source, &amp;quot;joinTime&amp;quot; )) / 1000 -- حساب وقت دخول اللاعب&lt;br /&gt;
		outputChatBox ( &amp;quot;You joined &amp;quot; ..timeOnline..&amp;quot; seconds ago&amp;quot;, source )&lt;br /&gt;
		outputChatBox ( &amp;quot;Use 'join_time &amp;lt;player name&amp;gt;' to see other people's join time&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
-- اضافة امر وقت الدخول , مع عنصر اضافي وهو اسم اللاعب&lt;br /&gt;
addCommandHandler ( &amp;quot;joinTime&amp;quot;, showJoinTime )&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;
{{Element functions}}&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setElementData&amp;diff=48823</id>
		<title>AR/setElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setElementData&amp;diff=48823"/>
		<updated>2016-08-12T04:16:13Z</updated>

		<summary type="html">&lt;p&gt;SPLM: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
هذه الوظيفة تحفظ بيانات العنصر على مفتاح معين، يتبع لعنصر. يتم تعيين بيانات العنصر باستخدام هذا ثم يتم مزامنتها مع جميع العملاء والخادم. يمكن أن يحتوى الخادم على عناصر البيانات التي تم إنشاؤها ، ولكن يجب تجنب تمرير البيانات الغير قادرة على أن تكون متمازنه مثل xmlnodes، قوائم ACL، aclgroups الخ.&lt;br /&gt;
&lt;br /&gt;
كما يتم ممازنة بيانات العنصر مع جميع العملاء، يمكن أن تولد الكثير من الضغط على الشبكة وتستهلك وحدة المعالجة المركزية للخادم. الأحداث أكثر كفاءة لإرسال البيانات من العميل إلى الملقم فقط، أو من ملقم إلى عميل خاص.&lt;br /&gt;
&lt;br /&gt;
{{Tip|A simple and efficient way to make a variable known to the server and clients is to use setElementData on the [[root]] element.}}&lt;br /&gt;
{{Note|See [[Script security]] for tips on preventing cheaters when using events and element data}}&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;
bool setElementData ( element theElement, string key, var value [, bool synchronize = true ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:setData||getElementData}}&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة=== &lt;br /&gt;
*'''theElement:''' العنصر الذي تود بتعيين بيانات له.&lt;br /&gt;
*'''key:''' اسم مفتاح بيانات العنصر الذي تود تعيين البيانات عليه . x ( 31 حرف كحد أقصى للمفتاح )&lt;br /&gt;
*'''value:''' للحصول على قائمة من أنواع البيانات المقبولة [[element data]] القيمة التي تود بحفظها , انظر&lt;br /&gt;
&lt;br /&gt;
===العناصر الاختيارية=== &lt;br /&gt;
*'''synchronize:''' يحدد ما إذا كان سيتم مزامنة البيانات مع الخادم (تغير العميل) والعملاء عن بعد (كلا الاختلافات) أو لا&lt;br /&gt;
&lt;br /&gt;
===النواتج===&lt;br /&gt;
إرجاع '' صحيح '' إذا تم تعيين البيانات بنجاح، '' خطأ '' على خلاف ذلك.&lt;br /&gt;
&lt;br /&gt;
===Issues===&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|7389|[Fixed in 1.3.5-7389] Problem with floating numbers}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==مثال== &lt;br /&gt;
&amp;lt;section name=&amp;quot;سيرفر&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
يسمح هذا المثال لللاعب لإضافة علامة مخصصة على لقبه، وأيضا يرجعه مرة أخرى إلى وضعه الطبيعي إذا رغب في ذلك.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function addPlayerCustomTag ( thePlayer, command, newTag )&lt;br /&gt;
	-- لنتأكد من علامة التاج الجديد المدخلة ...&lt;br /&gt;
	if ( newTag ) then&lt;br /&gt;
		-- جلب اسمه الحالي للحفظ&lt;br /&gt;
		local sPlayerNickname = getPlayerName ( thePlayer )&lt;br /&gt;
		-- انشاء اسمه المستعار الجديد مع التاج&lt;br /&gt;
		local sNewPlayerNickname = newTag .. &amp;quot; &amp;quot; .. sPlayerNickname&lt;br /&gt;
		&lt;br /&gt;
		--دعونا أولا نجلب بيانات العنصر، لمعرفة ما اذا كان هنالك بيانات بالفعل&lt;br /&gt;
		--مرتين / addtag والسبب في ذلك هو أنه إذا كان لاعب قام بعمل&lt;br /&gt;
		--التاج يرفق مسبقاً للمره الثانية&lt;br /&gt;
		local sOldNick = getElementData( thePlayer, &amp;quot;tempdata.originalnick&amp;quot; )&lt;br /&gt;
		if ( sOldNick == false ) then&lt;br /&gt;
			-- حفظ اسمه الاصلي في بياناته&lt;br /&gt;
			setElementData ( thePlayer, &amp;quot;tempdata.originalnick&amp;quot;, sPlayerNickname )&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		-- تعيين الاسم المستعار الجديد كأسم للاعب&lt;br /&gt;
		setPlayerName ( thePlayer, sNewPlayerNickname )&lt;br /&gt;
		&lt;br /&gt;
		--اخباره بانه تم&lt;br /&gt;
		outputChatBox ( &amp;quot;Your new nickname has been set, to put it back to its original state you can use /deltag&amp;quot;, thePlayer )&lt;br /&gt;
	else&lt;br /&gt;
		--علامة التاج الجديد لم يتم ادخالها , اعطاء رسالة خطأ&lt;br /&gt;
		outputChatBox ( &amp;quot;/addtag - Incorrect syntax, Correct: /addtag &amp;lt;newtag&amp;gt;&amp;quot;, thePlayer )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;addtag&amp;quot;, addPlayerCustomTag )&lt;br /&gt;
&lt;br /&gt;
function removePlayerCustomTag ( thePlayer, command )&lt;br /&gt;
	--لنقوم به الان, /addtag نحن اولاً نحتاج الى التحقق من انهم مسبقاً استخدمو&lt;br /&gt;
	local sOldNick = getElementData( thePlayer, &amp;quot;tempdata.originalnick&amp;quot; )&lt;br /&gt;
	if ( sOldNick ) then&lt;br /&gt;
		-- جيد , لديه تاج مضاف , لنقوم بإعادة تعيينه لهم&lt;br /&gt;
		&lt;br /&gt;
		--( false يجب ان تكون ) x اولاً نحن نريد ان نعيد تعيين بيانات العنصر لإرجاعه الى الافتراضي&lt;br /&gt;
		setElementData ( thePlayer, &amp;quot;tempdata.originalnick&amp;quot;, false )&lt;br /&gt;
		&lt;br /&gt;
		-- الآن تعيين اسم العميل الى القديم&lt;br /&gt;
		setPlayerName( thePlayer, sOldNick )&lt;br /&gt;
		&lt;br /&gt;
		-- عمل تنبيه له&lt;br /&gt;
		outputChatBox ( &amp;quot;Your old nickname has been set&amp;quot;, thePlayer )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;deltag&amp;quot;, removePlayerCustomTag )&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;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/removeElementData&amp;diff=48822</id>
		<title>AR/removeElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/removeElementData&amp;diff=48822"/>
		<updated>2016-08-12T04:15:23Z</updated>

		<summary type="html">&lt;p&gt;SPLM: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&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;
bool removeElementData ( element theElement, string key ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:removeData||}}&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة=== &lt;br /&gt;
*'''theElement:''' العنصر الذي تود في إزالة البيانات منه.&lt;br /&gt;
*'''key:''' مفتاح البيانات الذي تود إزالته.&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;
function spawn()&lt;br /&gt;
    setElementData(source,&amp;quot;spawned&amp;quot;,true)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerSpawn&amp;quot;, getRootElement(), spawn )&lt;br /&gt;
function wasted()&lt;br /&gt;
    removeElementData(source,&amp;quot;spawned&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerWasted&amp;quot;, getRootElement(), wasted )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/removeElementData&amp;diff=48821</id>
		<title>AR/removeElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/removeElementData&amp;diff=48821"/>
		<updated>2016-08-12T04:09:42Z</updated>

		<summary type="html">&lt;p&gt;SPLM: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__ &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;
bool removeElementData ( element theElement, string key ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:removeData||}}&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة=== &lt;br /&gt;
*'''theElement:''' العنصر الذي تود في إزالة البيانات منه.&lt;br /&gt;
*'''key:''' مفتاح البيانات الذي تود إزالته.&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;
function spawn()&lt;br /&gt;
    setElementData(source,&amp;quot;spawned&amp;quot;,true)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerSpawn&amp;quot;, getRootElement(), spawn )&lt;br /&gt;
function wasted()&lt;br /&gt;
    removeElementData(source,&amp;quot;spawned&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerWasted&amp;quot;, getRootElement(), wasted )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getElementData&amp;diff=48820</id>
		<title>AR/getElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getElementData&amp;diff=48820"/>
		<updated>2016-08-12T04:08:22Z</updated>

		<summary type="html">&lt;p&gt;SPLM: &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;
&lt;br /&gt;
==تركيب الجملة البرمجية==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;var getElementData ( element theElement, string key [, inherit = true] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[element]]:getData||setElementData}}&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة===&lt;br /&gt;
*'''theElement:''' العنصر الذي تود جلب بياناته .&lt;br /&gt;
*'''key:'''  اسم مفتاح بيانات العنصر الذي تود جلبها . x ( 31 حرف كحد أقصى للمفتاح )&lt;br /&gt;
&lt;br /&gt;
===العناصر الاختيارية===&lt;br /&gt;
*'''inherit:''' - تفعيل الوظيفة أم لا التي يجب ان تذهب أعلى التسلسل الهرمي للعثور على المفتاح المطلوب في حالة ان العنصر المحدد لا يملكها.&lt;br /&gt;
&lt;br /&gt;
===النواتج===&lt;br /&gt;
هذه الوظيفة تقوم بإرجاع متغير يحتوي على بيانات العنصر المطلوب، أو خطأ إذا كان العنصر أو بيانات العنصر غير موجودة .&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
هذا المثال يخزن وقت دخول اللاعب بالميلي ثانية ليسمح لهم بمعرفة كم مدة اتصالهم بوظيفة 'joinTime'.&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;سيرفر&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function joinTime ( )&lt;br /&gt;
    setElementData ( source, &amp;quot;joinTime&amp;quot;, getTickCount() ) -- تخزين الوقت الصحيح بالميلي ثانية لدى اللاعب مع المفتاح 'joinTime'&lt;br /&gt;
end&lt;br /&gt;
-- صنع وظيفتنا لوقت الدخول لتقوم بعملها عندما يدخل لاعب&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, root, joinTime )&lt;br /&gt;
&lt;br /&gt;
function showJoinTime ( source, commandName, playerName )&lt;br /&gt;
	if ( playerName ) then -- تحقق من اسم اللاعب المحدد&lt;br /&gt;
		thePlayer = getPlayerFromName ( playerName ) -- جلب عنصر اللاعب للاعب المحدد&lt;br /&gt;
		if ( thePlayer ) then -- اذا كان موجوداً ...&lt;br /&gt;
			local timeOnline = (getTickCount() - getElementData ( thePlayer, &amp;quot;joinTime&amp;quot; )) / 1000 -- جلب بيانات اللاعب منذ الدخول وحسابها&lt;br /&gt;
			outputChatBox ( getPlayerName ( thePlayer )..&amp;quot; joined &amp;quot;..timeOnline..&amp;quot; seconds ago&amp;quot;, source ) -- اخراج وقت دخول اللاعب في الشات&lt;br /&gt;
		else&lt;br /&gt;
			outputChatBox ( &amp;quot;Couldn't find '&amp;quot; .. playerName .. &amp;quot;'&amp;quot;, source ) -- عرض خطأ اذا كان اللاعب غير موجود&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- عرض للاعب الذي قام بكتابة الامر طريقة استخدام الوظيفة ليرى وقت دخول الاشخاص الاخرين&lt;br /&gt;
		local timeOnline = (getTickCount() - getElementData ( source, &amp;quot;joinTime&amp;quot; )) / 1000 -- حساب وقت دخول اللاعب&lt;br /&gt;
		outputChatBox ( &amp;quot;You joined &amp;quot; ..timeOnline..&amp;quot; seconds ago&amp;quot;, source )&lt;br /&gt;
		outputChatBox ( &amp;quot;Use 'join_time &amp;lt;player name&amp;gt;' to see other people's join time&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
-- اضافة امر وقت الدخول , مع عنصر اضافي وهو اسم اللاعب&lt;br /&gt;
addCommandHandler ( &amp;quot;joinTime&amp;quot;, showJoinTime )&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;
{{Element functions}}&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getElementData&amp;diff=48819</id>
		<title>AR/getElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getElementData&amp;diff=48819"/>
		<updated>2016-08-12T03:56:16Z</updated>

		<summary type="html">&lt;p&gt;SPLM: /* النواتج */&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;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;var getElementData ( element theElement, string key [, inherit = true] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[element]]:getData||setElementData}}&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة===&lt;br /&gt;
*'''theElement:''' العنصر الذي تود جلب بياناته .&lt;br /&gt;
*'''key:'''  اسم مفتاح بيانات العنصر الذي تود جلبها . x ( 31 حرف كحد أقصى للمفتاح )&lt;br /&gt;
&lt;br /&gt;
===العناصر الاختارية===&lt;br /&gt;
*'''inherit:''' - تفعيل الوظيفة أم لا التي يجب ان تذهب أعلى التسلسل الهرمي للعثور على المفتاح المطلوب في حالة ان العنصر المحدد لا يملكها.&lt;br /&gt;
&lt;br /&gt;
===النواتج===&lt;br /&gt;
هذه الوظيفة تقوم بإرجاع متغير يحتوي على بيانات العنصر المطلوب، أو خطأ إذا كان العنصر أو بيانات العنصر غير موجودة .&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
هذا المثال يخزن وقت دخول اللاعب بالميلي ثانية ليسمح لهم بمعرفة كم مدة اتصالهم بوظيفة 'joinTime'.&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;سيرفر&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function joinTime ( )&lt;br /&gt;
    setElementData ( source, &amp;quot;joinTime&amp;quot;, getTickCount() ) -- تخزين الوقت الصحيح بالميلي ثانية لدى اللاعب مع المفتاح 'joinTime'&lt;br /&gt;
end&lt;br /&gt;
-- صنع وظيفتنا لوقت الدخول لتقوم بعملها عندما يدخل لاعب&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, root, joinTime )&lt;br /&gt;
&lt;br /&gt;
function showJoinTime ( source, commandName, playerName )&lt;br /&gt;
	if ( playerName ) then -- تحقق من اسم اللاعب المحدد&lt;br /&gt;
		thePlayer = getPlayerFromName ( playerName ) -- جلب عنصر اللاعب للاعب المحدد&lt;br /&gt;
		if ( thePlayer ) then -- اذا كان موجوداً ...&lt;br /&gt;
			local timeOnline = (getTickCount() - getElementData ( thePlayer, &amp;quot;joinTime&amp;quot; )) / 1000 -- جلب بيانات اللاعب منذ الدخول وحسابها&lt;br /&gt;
			outputChatBox ( getPlayerName ( thePlayer )..&amp;quot; joined &amp;quot;..timeOnline..&amp;quot; seconds ago&amp;quot;, source ) -- اخراج وقت دخول اللاعب في الشات&lt;br /&gt;
		else&lt;br /&gt;
			outputChatBox ( &amp;quot;Couldn't find '&amp;quot; .. playerName .. &amp;quot;'&amp;quot;, source ) -- عرض خطأ اذا كان اللاعب غير موجود&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- عرض للاعب الذي قام بكتابة الامر طريقة استخدام الوظيفة ليرى وقت دخول الاشخاص الاخرين&lt;br /&gt;
		local timeOnline = (getTickCount() - getElementData ( source, &amp;quot;joinTime&amp;quot; )) / 1000 -- حساب وقت دخول اللاعب&lt;br /&gt;
		outputChatBox ( &amp;quot;You joined &amp;quot; ..timeOnline..&amp;quot; seconds ago&amp;quot;, source )&lt;br /&gt;
		outputChatBox ( &amp;quot;Use 'join_time &amp;lt;player name&amp;gt;' to see other people's join time&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
-- اضافة امر وقت الدخول , مع عنصر اضافي وهو اسم اللاعب&lt;br /&gt;
addCommandHandler ( &amp;quot;joinTime&amp;quot;, showJoinTime )&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;
{{Element functions}}&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setElementData&amp;diff=48818</id>
		<title>AR/setElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setElementData&amp;diff=48818"/>
		<updated>2016-08-12T01:50:16Z</updated>

		<summary type="html">&lt;p&gt;SPLM: Created page with &amp;quot;{{Server client function}} __NOTOC__  هذه الوظيفة تحفظ بيانات العنصر على مفتاح معين، يتبع لعنصر. يتم تعيين بيانات...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
هذه الوظيفة تحفظ بيانات العنصر على مفتاح معين، يتبع لعنصر. يتم تعيين بيانات العنصر باستخدام هذا ثم يتم مزامنتها مع جميع العملاء والخادم. يمكن أن يحتوى الخادم على عناصر البيانات التي تم إنشاؤها ، ولكن يجب تجنب تمرير البيانات الغير قادرة على أن تكون متمازنه مثل xmlnodes، قوائم ACL، aclgroups الخ.&lt;br /&gt;
&lt;br /&gt;
كما يتم ممازنة بيانات العنصر مع جميع العملاء، يمكن أن تولد الكثير من الضغط على الشبكة وتستهلك وحدة المعالجة المركزية للخادم. الأحداث أكثر كفاءة لإرسال البيانات من العميل إلى الملقم فقط، أو من ملقم إلى عميل خاص.&lt;br /&gt;
&lt;br /&gt;
{{Tip|A simple and efficient way to make a variable known to the server and clients is to use setElementData on the [[root]] element.}}&lt;br /&gt;
{{Note|See [[Script security]] for tips on preventing cheaters when using events and element data}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setElementData ( element theElement, string key, var value [, bool synchronize = true ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:setData||getElementData}}&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة=== &lt;br /&gt;
*'''theElement:''' العنصر الذي تود بتعيين بيانات له.&lt;br /&gt;
*'''key:''' اسم مفتاح بيانات العنصر الذي تود تعيين البيانات عليه . x ( 31 حرف كحد أقصى للمفتاح )&lt;br /&gt;
*'''value:''' للحصول على قائمة من أنواع البيانات المقبولة [[element data]] القيمة التي تود بحفظها , انظر&lt;br /&gt;
&lt;br /&gt;
===العناصر الاختيارية=== &lt;br /&gt;
*'''synchronize:''' يحدد ما إذا كان سيتم مزامنة البيانات مع الخادم (تغير العميل) والعملاء عن بعد (كلا الاختلافات) أو لا&lt;br /&gt;
&lt;br /&gt;
===النواتج===&lt;br /&gt;
إرجاع '' صحيح '' إذا تم تعيين البيانات بنجاح، '' خطأ '' على خلاف ذلك.&lt;br /&gt;
&lt;br /&gt;
===Issues===&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|7389|[Fixed in 1.3.5-7389] Problem with floating numbers}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==مثال== &lt;br /&gt;
&amp;lt;section name=&amp;quot;سيرفر&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
يسمح هذا المثال لللاعب لإضافة علامة مخصصة على لقبه، وأيضا يرجعه مرة أخرى إلى وضعه الطبيعي إذا رغب في ذلك.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function addPlayerCustomTag ( thePlayer, command, newTag )&lt;br /&gt;
	-- لنتأكد من علامة التاج الجديد المدخلة ...&lt;br /&gt;
	if ( newTag ) then&lt;br /&gt;
		-- جلب اسمه الحالي للحفظ&lt;br /&gt;
		local sPlayerNickname = getPlayerName ( thePlayer )&lt;br /&gt;
		-- انشاء اسمه المستعار الجديد مع التاج&lt;br /&gt;
		local sNewPlayerNickname = newTag .. &amp;quot; &amp;quot; .. sPlayerNickname&lt;br /&gt;
		&lt;br /&gt;
		--دعونا أولا نجلب بيانات العنصر، لمعرفة ما اذا كان هنالك بيانات بالفعل&lt;br /&gt;
		--مرتين / addtag والسبب في ذلك هو أنه إذا كان لاعب قام بعمل&lt;br /&gt;
		--التاج يرفق مسبقاً للمره الثانية&lt;br /&gt;
		local sOldNick = getElementData( thePlayer, &amp;quot;tempdata.originalnick&amp;quot; )&lt;br /&gt;
		if ( sOldNick == false ) then&lt;br /&gt;
			-- حفظ اسمه الاصلي في بياناته&lt;br /&gt;
			setElementData ( thePlayer, &amp;quot;tempdata.originalnick&amp;quot;, sPlayerNickname )&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		-- تعيين الاسم المستعار الجديد كأسم للاعب&lt;br /&gt;
		setPlayerName ( thePlayer, sNewPlayerNickname )&lt;br /&gt;
		&lt;br /&gt;
		--اخباره بانه تم&lt;br /&gt;
		outputChatBox ( &amp;quot;Your new nickname has been set, to put it back to its original state you can use /deltag&amp;quot;, thePlayer )&lt;br /&gt;
	else&lt;br /&gt;
		--علامة التاج الجديد لم يتم ادخالها , اعطاء رسالة خطأ&lt;br /&gt;
		outputChatBox ( &amp;quot;/addtag - Incorrect syntax, Correct: /addtag &amp;lt;newtag&amp;gt;&amp;quot;, thePlayer )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;addtag&amp;quot;, addPlayerCustomTag )&lt;br /&gt;
&lt;br /&gt;
function removePlayerCustomTag ( thePlayer, command )&lt;br /&gt;
	--لنقوم به الان, /addtag نحن اولاً نحتاج الى التحقق من انهم مسبقاً استخدمو&lt;br /&gt;
	local sOldNick = getElementData( thePlayer, &amp;quot;tempdata.originalnick&amp;quot; )&lt;br /&gt;
	if ( sOldNick ) then&lt;br /&gt;
		-- جيد , لديه تاج مضاف , لنقوم بإعادة تعيينه لهم&lt;br /&gt;
		&lt;br /&gt;
		--( false يجب ان تكون ) x اولاً نحن نريد ان نعيد تعيين بيانات العنصر لإرجاعه الى الافتراضي&lt;br /&gt;
		setElementData ( thePlayer, &amp;quot;tempdata.originalnick&amp;quot;, false )&lt;br /&gt;
		&lt;br /&gt;
		-- الآن تعيين اسم العميل الى القديم&lt;br /&gt;
		setPlayerName( thePlayer, sOldNick )&lt;br /&gt;
		&lt;br /&gt;
		-- عمل تنبيه له&lt;br /&gt;
		outputChatBox ( &amp;quot;Your old nickname has been set&amp;quot;, thePlayer )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;deltag&amp;quot;, removePlayerCustomTag )&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;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/removeElementData&amp;diff=48817</id>
		<title>AR/removeElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/removeElementData&amp;diff=48817"/>
		<updated>2016-08-12T01:08:07Z</updated>

		<summary type="html">&lt;p&gt;SPLM: Created page with &amp;quot;{{Server function}} __NOTOC__  هذه الوظيفة تقوم بإزالة البيانات للعنصر بواسطة المفتاح المعطى. مزيل بيانات الع...&amp;quot;&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 removeElementData ( element theElement, string key ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:removeData||}}&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة=== &lt;br /&gt;
*'''theElement:''' العنصر الذي تود في إزالة البيانات منه.&lt;br /&gt;
*'''key:''' مفتاح البيانات الذي تود إزالته.&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;
function spawn()&lt;br /&gt;
    setElementData(source,&amp;quot;spawned&amp;quot;,true)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerSpawn&amp;quot;, getRootElement(), spawn )&lt;br /&gt;
function wasted()&lt;br /&gt;
    removeElementData(source,&amp;quot;spawned&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerWasted&amp;quot;, getRootElement(), wasted )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getElementData&amp;diff=48816</id>
		<title>AR/getElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getElementData&amp;diff=48816"/>
		<updated>2016-08-12T00:50:37Z</updated>

		<summary type="html">&lt;p&gt;SPLM: /* مثال */&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;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;var getElementData ( element theElement, string key [, inherit = true] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[element]]:getData||setElementData}}&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة===&lt;br /&gt;
*'''theElement:''' العنصر الذي تود جلب بياناته .&lt;br /&gt;
*'''key:'''  اسم مفتاح بيانات العنصر الذي تود جلبها . x ( 31 حرف كحد أقصى للمفتاح )&lt;br /&gt;
&lt;br /&gt;
===العناصر الاختارية===&lt;br /&gt;
*'''inherit:''' - تفعيل الوظيفة أم لا التي يجب ان تذهب أعلى التسلسل الهرمي للعثور على المفتاح المطلوب في حالة ان العنصر المحدد لا يملكها.&lt;br /&gt;
&lt;br /&gt;
===النواتج===&lt;br /&gt;
هذه الدالة تقوم بإرجاع متغير يحتوي على بيانات العنصر المطلوب، أو خطأ إذا كان العنصر أو بيانات العنصر غير موجودة .&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
هذا المثال يخزن وقت دخول اللاعب بالميلي ثانية ليسمح لهم بمعرفة كم مدة اتصالهم بوظيفة 'joinTime'.&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;سيرفر&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function joinTime ( )&lt;br /&gt;
    setElementData ( source, &amp;quot;joinTime&amp;quot;, getTickCount() ) -- تخزين الوقت الصحيح بالميلي ثانية لدى اللاعب مع المفتاح 'joinTime'&lt;br /&gt;
end&lt;br /&gt;
-- صنع وظيفتنا لوقت الدخول لتقوم بعملها عندما يدخل لاعب&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, root, joinTime )&lt;br /&gt;
&lt;br /&gt;
function showJoinTime ( source, commandName, playerName )&lt;br /&gt;
	if ( playerName ) then -- تحقق من اسم اللاعب المحدد&lt;br /&gt;
		thePlayer = getPlayerFromName ( playerName ) -- جلب عنصر اللاعب للاعب المحدد&lt;br /&gt;
		if ( thePlayer ) then -- اذا كان موجوداً ...&lt;br /&gt;
			local timeOnline = (getTickCount() - getElementData ( thePlayer, &amp;quot;joinTime&amp;quot; )) / 1000 -- جلب بيانات اللاعب منذ الدخول وحسابها&lt;br /&gt;
			outputChatBox ( getPlayerName ( thePlayer )..&amp;quot; joined &amp;quot;..timeOnline..&amp;quot; seconds ago&amp;quot;, source ) -- اخراج وقت دخول اللاعب في الشات&lt;br /&gt;
		else&lt;br /&gt;
			outputChatBox ( &amp;quot;Couldn't find '&amp;quot; .. playerName .. &amp;quot;'&amp;quot;, source ) -- عرض خطأ اذا كان اللاعب غير موجود&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- عرض للاعب الذي قام بكتابة الامر طريقة استخدام الوظيفة ليرى وقت دخول الاشخاص الاخرين&lt;br /&gt;
		local timeOnline = (getTickCount() - getElementData ( source, &amp;quot;joinTime&amp;quot; )) / 1000 -- حساب وقت دخول اللاعب&lt;br /&gt;
		outputChatBox ( &amp;quot;You joined &amp;quot; ..timeOnline..&amp;quot; seconds ago&amp;quot;, source )&lt;br /&gt;
		outputChatBox ( &amp;quot;Use 'join_time &amp;lt;player name&amp;gt;' to see other people's join time&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
-- اضافة امر وقت الدخول , مع عنصر اضافي وهو اسم اللاعب&lt;br /&gt;
addCommandHandler ( &amp;quot;joinTime&amp;quot;, showJoinTime )&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;
{{Element functions}}&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getElementData&amp;diff=48815</id>
		<title>AR/getElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getElementData&amp;diff=48815"/>
		<updated>2016-08-12T00:49:27Z</updated>

		<summary type="html">&lt;p&gt;SPLM: Created page with &amp;quot;__NOTOC__ {{Server client function}}  هذه الوظيقة تقوم بجلب بيانات الالمنت الموجودة على مفتاح معين.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[lua,n...&amp;quot;&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;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;var getElementData ( element theElement, string key [, inherit = true] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[element]]:getData||setElementData}}&lt;br /&gt;
&lt;br /&gt;
===العناصر المطلوبة===&lt;br /&gt;
*'''theElement:''' العنصر الذي تود جلب بياناته .&lt;br /&gt;
*'''key:'''  اسم مفتاح بيانات العنصر الذي تود جلبها . x ( 31 حرف كحد أقصى للمفتاح )&lt;br /&gt;
&lt;br /&gt;
===العناصر الاختارية===&lt;br /&gt;
*'''inherit:''' - تفعيل الوظيفة أم لا التي يجب ان تذهب أعلى التسلسل الهرمي للعثور على المفتاح المطلوب في حالة ان العنصر المحدد لا يملكها.&lt;br /&gt;
&lt;br /&gt;
===النواتج===&lt;br /&gt;
هذه الدالة تقوم بإرجاع متغير يحتوي على بيانات العنصر المطلوب، أو خطأ إذا كان العنصر أو بيانات العنصر غير موجودة .&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
هذا المثال يخزن وقت دخول اللاعب بالميلي ثانية ليسمح لهم بمعرفة كم مدة اتصالهم بأستخدام وظيفة 'joinTime'.&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;سيرفر&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function joinTime ( )&lt;br /&gt;
    setElementData ( source, &amp;quot;joinTime&amp;quot;, getTickCount() ) -- تخزين الوقت الصحيح بالميلي ثانية لدى اللاعب مع المفتاح 'joinTime'&lt;br /&gt;
end&lt;br /&gt;
-- صنع وظيفتنا لوقت الدخول لتقوم بعملها عندما يدخل لاعب&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, root, joinTime )&lt;br /&gt;
&lt;br /&gt;
function showJoinTime ( source, commandName, playerName )&lt;br /&gt;
	if ( playerName ) then -- تحقق من اسم اللاعب المحدد&lt;br /&gt;
		thePlayer = getPlayerFromName ( playerName ) -- جلب عنصر اللاعب للاعب المحدد&lt;br /&gt;
		if ( thePlayer ) then -- اذا كان موجوداً ...&lt;br /&gt;
			local timeOnline = (getTickCount() - getElementData ( thePlayer, &amp;quot;joinTime&amp;quot; )) / 1000 -- جلب بيانات اللاعب منذ الدخول وحسابها&lt;br /&gt;
			outputChatBox ( getPlayerName ( thePlayer )..&amp;quot; joined &amp;quot;..timeOnline..&amp;quot; seconds ago&amp;quot;, source ) -- اخراج وقت دخول اللاعب في الشات&lt;br /&gt;
		else&lt;br /&gt;
			outputChatBox ( &amp;quot;Couldn't find '&amp;quot; .. playerName .. &amp;quot;'&amp;quot;, source ) -- عرض خطأ اذا كان اللاعب غير موجود&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- عرض للاعب الذي قام بكتابة الامر طريقة استخدام الوظيفة ليرى وقت دخول الاشخاص الاخرين&lt;br /&gt;
		local timeOnline = (getTickCount() - getElementData ( source, &amp;quot;joinTime&amp;quot; )) / 1000 -- حساب وقت دخول اللاعب&lt;br /&gt;
		outputChatBox ( &amp;quot;You joined &amp;quot; ..timeOnline..&amp;quot; seconds ago&amp;quot;, source )&lt;br /&gt;
		outputChatBox ( &amp;quot;Use 'join_time &amp;lt;player name&amp;gt;' to see other people's join time&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
-- اضافة امر وقت الدخول , مع عنصر اضافي وهو اسم اللاعب&lt;br /&gt;
addCommandHandler ( &amp;quot;joinTime&amp;quot;, showJoinTime )&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;
{{Element functions}}&lt;/div&gt;</summary>
		<author><name>SPLM</name></author>
	</entry>
</feed>