<?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=DABL</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=DABL"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/DABL"/>
	<updated>2026-04-24T22:27:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:DABL&amp;diff=47334</id>
		<title>User talk:DABL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:DABL&amp;diff=47334"/>
		<updated>2016-04-04T04:30:41Z</updated>

		<summary type="html">&lt;p&gt;DABL: Created page with &amp;quot;don't look here go learn :)&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;don't look here go learn :)&lt;/div&gt;</summary>
		<author><name>DABL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/Client_Scripting_Functions&amp;diff=46987</id>
		<title>AR/Client Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/Client_Scripting_Functions&amp;diff=46987"/>
		<updated>2016-03-24T23:08:22Z</updated>

		<summary type="html">&lt;p&gt;DABL: /* وظائف السيارة */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;client&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 '''client-side''' scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function or event, use [[Requested Functions and Events]]&lt;br /&gt;
&lt;br /&gt;
For more functions, check the [[Useful_Functions|useful functions page]].&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==وظائف الصوت==&lt;br /&gt;
{{AR/Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف علامات الخريطة==&lt;br /&gt;
{{AR/Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الكاميرا==&lt;br /&gt;
{{AR/Camera_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الملابس==&lt;br /&gt;
{{AR/Client_Clothes and body functions}}&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_cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
== وظائف الرسم==&lt;br /&gt;
{{AR/Drawing_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف التأثيرات==&lt;br /&gt;
{{AR/Client_Effects_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العناصر==&lt;br /&gt;
{{AR/Client_Element_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف المحرك==&lt;br /&gt;
{{AR/Engine_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الحدث==&lt;br /&gt;
{{AR/Client_event_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الانفجارات==&lt;br /&gt;
{{AR/Client_explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الملف==&lt;br /&gt;
{{AR/Client file functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الحريق==&lt;br /&gt;
{{AR/Client fire functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف واجهة المستخدم الرسومية==&lt;br /&gt;
{{AR/GUI_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف مدخلات==&lt;br /&gt;
{{AR/Client_input_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظيفة العلامات==&lt;br /&gt;
{{AR/Client_marker_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف لهدف معين==&lt;br /&gt;
{{AR/Client_object_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الإخراج==&lt;br /&gt;
{{AR/Client_output_functions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==وظائف الدعم==&lt;br /&gt;
{{AR/Client_pickup_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الاعب==&lt;br /&gt;
{{AR/Client_player_functions}}&lt;br /&gt;
&lt;br /&gt;
==Projectile functions==&lt;br /&gt;
{{AR/Client_projectile_functions}}&lt;br /&gt;
&lt;br /&gt;
==Radar-area functions==&lt;br /&gt;
{{AR/Client_radar-area_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الموارد==&lt;br /&gt;
{{AR/Client_resource_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف فريق==&lt;br /&gt;
{{AR/Client_team_functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{AR/Client_utility_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف المركبة==&lt;br /&gt;
{{AR/Client_vehicle_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف المياه==&lt;br /&gt;
{{AR/Client_water_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف سلاح==&lt;br /&gt;
{{AR/Client_weapon_functions}}&lt;br /&gt;
&lt;br /&gt;
==Weapon Creation functions==&lt;br /&gt;
Documentation can be found [http://code.google.com/p/mtasa-blue/source/detail?r=4555 here] and [http://code.google.com/p/mtasa-blue/source/detail?r=4557 here]&lt;br /&gt;
{{AR/Client_weapon_creation_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف العالم==&lt;br /&gt;
{{AR/Client_world_functions}}&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
{{AR/Client XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:Client Scripting Functions]]&lt;br /&gt;
[[en:Client Scripting Functions]]&lt;br /&gt;
[[pl:Funkcje po stronie klienta]]&lt;br /&gt;
[[it:Funzioni Client-side]]&lt;br /&gt;
[[ru:Client Scripting Functions]]&lt;br /&gt;
[[de:Clientseitige_Funktionen]]&lt;br /&gt;
[[tr:Client Taraflı Fonksiyonlar]]&lt;/div&gt;</summary>
		<author><name>DABL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=46761</id>
		<title>String.count</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=String.count&amp;diff=46761"/>
		<updated>2016-03-02T23:28:07Z</updated>

		<summary type="html">&lt;p&gt;DABL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function counts how many times a string is found from within another string.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int string.count(string text, string search)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''text:''' A string to find the text from&lt;br /&gt;
*'''search:''' A string defining what to find&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function string.count(text, search)&lt;br /&gt;
	if search and text then&lt;br /&gt;
		local string_count = 0&lt;br /&gt;
		for i in string.gfind(text, search) do&lt;br /&gt;
			string_count = string_count + 1&lt;br /&gt;
		end&lt;br /&gt;
		return string_count&lt;br /&gt;
	else&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox(string.count(&amp;quot;A Text&amp;quot;, &amp;quot;T&amp;quot;)) -- and the result is 2!&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Code and Edit by Krischkros.&lt;/div&gt;</summary>
		<author><name>DABL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:DABL&amp;diff=46697</id>
		<title>User:DABL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:DABL&amp;diff=46697"/>
		<updated>2016-02-19T01:31:01Z</updated>

		<summary type="html">&lt;p&gt;DABL: Created page with &amp;quot;????&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;????&lt;/div&gt;</summary>
		<author><name>DABL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetMaxPlayers&amp;diff=46696</id>
		<title>GetMaxPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetMaxPlayers&amp;diff=46696"/>
		<updated>2016-02-18T18:52:43Z</updated>

		<summary type="html">&lt;p&gt;DABL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function returns the maximum number of player slots on the server.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getMaxPlayers ()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the maximum number of players allowed on the server.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example outputs the current number of players together with the maximum number of players when a player joins.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showPlayers()&lt;br /&gt;
	outputChatBox(&amp;quot;There are &amp;quot;..getPlayerCount()..&amp;quot;/&amp;quot;..getMaxPlayers()..&amp;quot; players playing.&amp;quot;,source) --output a message to the joined player informing the player count and max players.&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerJoin&amp;quot;,root,showPlayers) --Add an event handler to call the function when a player joins.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>DABL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetMaxPlayers&amp;diff=46695</id>
		<title>GetMaxPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetMaxPlayers&amp;diff=46695"/>
		<updated>2016-02-18T18:52:23Z</updated>

		<summary type="html">&lt;p&gt;DABL: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
هذه الوظيفة تقوم بأحضار اقصي من الاعبين يسمح به في الخادم.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getMaxPlayers ()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the maximum number of players allowed on the server.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example outputs the current number of players together with the maximum number of players when a player joins.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showPlayers()&lt;br /&gt;
	outputChatBox(&amp;quot;There are &amp;quot;..getPlayerCount()..&amp;quot;/&amp;quot;..getMaxPlayers()..&amp;quot; players playing.&amp;quot;,source) --output a message to the joined player informing the player count and max players.&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerJoin&amp;quot;,root,showPlayers) --Add an event handler to call the function when a player joins.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>DABL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetMaxPlayers&amp;diff=46694</id>
		<title>GetMaxPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetMaxPlayers&amp;diff=46694"/>
		<updated>2016-02-18T18:51:40Z</updated>

		<summary type="html">&lt;p&gt;DABL: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
هذه الوظيفة تقوم بأحضار اقصي من الاعبين يسمح به في الخادم.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getMaxPlayers ()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
تحضر لك اقصي مسموح من الاعبين داخل السيرفر.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example outputs the current number of players together with the maximum number of players when a player joins.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showPlayers()&lt;br /&gt;
	outputChatBox(&amp;quot;There are &amp;quot;..getPlayerCount()..&amp;quot;/&amp;quot;..getMaxPlayers()..&amp;quot; players playing.&amp;quot;,source) --output a message to the joined player informing the player count and max players.&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerJoin&amp;quot;,root,showPlayers) --Add an event handler to call the function when a player joins.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>DABL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetMaxPlayers&amp;diff=46693</id>
		<title>GetMaxPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetMaxPlayers&amp;diff=46693"/>
		<updated>2016-02-18T18:35:30Z</updated>

		<summary type="html">&lt;p&gt;DABL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
هذه الوظيفة تقوم بأحضار اقصي من الاعبين يسمح به في الخادم.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getMaxPlayers ()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
تحضر لك اقصي مسموح من الاعبين داخل السيرفر.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
هذا المثال يخرج في الدردشة اقصي عدد للاعبين في الخادم مع العدد الحالي للاعبين في الخادم عند دخول الاعب.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showPlayers()&lt;br /&gt;
	outputChatBox(&amp;quot;There are &amp;quot;..getPlayerCount()..&amp;quot;/&amp;quot;..getMaxPlayers()..&amp;quot; players playing.&amp;quot;,source) --output a message to the joined player informing the player count and max players.&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerJoin&amp;quot;,root,showPlayers) --Add an event handler to call the function when a player joins.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>DABL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetMaxPlayers&amp;diff=46692</id>
		<title>GetMaxPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetMaxPlayers&amp;diff=46692"/>
		<updated>2016-02-18T18:34:45Z</updated>

		<summary type="html">&lt;p&gt;DABL: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
هذه الوظيفة تقوم بأحضار اقصي من الاعبين يسمح به في الخادم.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getMaxPlayers ()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
تحضر لك اقصي مسموح من الاعبين داخل السيرفر.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example outputs the current number of players together with the maximum number of players when a player joins.&lt;br /&gt;
هذا المثال يخرج في الدردشة اقصي عدد للاعبين في الخادم مع العدد الحالي للاعبين في الخادم عند دخول الاعب.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showPlayers()&lt;br /&gt;
	outputChatBox(&amp;quot;There are &amp;quot;..getPlayerCount()..&amp;quot;/&amp;quot;..getMaxPlayers()..&amp;quot; players playing.&amp;quot;,source) --output a message to the joined player informing the player count and max players.&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerJoin&amp;quot;,root,showPlayers) --Add an event handler to call the function when a player joins.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>DABL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CountPlayersInTeam&amp;diff=46586</id>
		<title>CountPlayersInTeam</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CountPlayersInTeam&amp;diff=46586"/>
		<updated>2016-02-08T19:31:49Z</updated>

		<summary type="html">&lt;p&gt;DABL: /* See Also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is for returning the number of players in the specified team.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int countPlayersInTeam ( team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[team]]:countPlayers|playerCount|}}&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
*'''theTeam:''' The team you wish to retrieve the player count of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an integer containing the number of players in the team, ''false'' if it could not be retrieved.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 1&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt; &lt;br /&gt;
This example adds a command in the console to find out how many players are on your team.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function outputTeamSize ( source, commandName )&lt;br /&gt;
	-- Get player's team&lt;br /&gt;
	local theTeam = getPlayerTeam ( source )&lt;br /&gt;
	-- If the player is in any team&lt;br /&gt;
	if theTeam then&lt;br /&gt;
		-- Tell the player how big his team is&lt;br /&gt;
		outputChatBox ( &amp;quot;Your team has &amp;quot; .. countPlayersInTeam ( theTeam ) .. &amp;quot; players.&amp;quot;, source )&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox ( &amp;quot;You're not in a team.&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;teamsize&amp;quot;, outputTeamSize )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 2&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt; &lt;br /&gt;
This example adds a command in the console to find out how many players are on your team, clientside&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function outputTeamSize ( commandName )&lt;br /&gt;
	-- Get player's team&lt;br /&gt;
	local theTeam = getPlayerTeam ( getLocalPlayer() )&lt;br /&gt;
	-- If the player is in any team&lt;br /&gt;
	if team then&lt;br /&gt;
		-- Tell the player how big his team is&lt;br /&gt;
		outputChatBox ( &amp;quot;Your team has &amp;quot; .. countPlayersInTeam ( theTeam ) .. &amp;quot; players.&amp;quot; )&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox ( &amp;quot;You're not in a team.&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;teamsize&amp;quot;, outputTeamSize )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 3&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt; &lt;br /&gt;
This example balances a gamemode, to ensure equal number of players between the &amp;quot;grove&amp;quot; and &amp;quot;ballas&amp;quot; teams.  This could be triggered when a player joins the server, or for all players currently in the server when the gamemode starts.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function balanceTeams ( thePlayer )&lt;br /&gt;
	--get the team pointers from their names&lt;br /&gt;
	local groveTeam = getTeamFromName ( &amp;quot;grove&amp;quot; )&lt;br /&gt;
	local ballasTeam = getTeamFromName ( &amp;quot;ballas&amp;quot; )&lt;br /&gt;
	--count the number of players in each team, and store them&lt;br /&gt;
	local groveCount = countPlayersInTeam ( groveTeam )&lt;br /&gt;
	local ballasCount = countPlayersInTeam ( ballasTeam )&lt;br /&gt;
	if groveCount == ballasCount then --if the teams are equal&lt;br /&gt;
		setPlayerTeam ( thePlayer , groveTeam ) --place the player in grove&lt;br /&gt;
	elseif groveCount &amp;gt; ballasCount then --if there are more in grove&lt;br /&gt;
		setPlayerTeam ( thePlayer , ballasTeam ) --place him in ballas&lt;br /&gt;
	elseif groveCount &amp;lt; ballasCount then --if there are more in ballas&lt;br /&gt;
		setPlayerTeam ( thePlayer , groveTeam ) --place him in grove.&lt;br /&gt;
	end&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==شاهد ايضاً==&lt;br /&gt;
{{Team functions}}&lt;/div&gt;</summary>
		<author><name>DABL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Events&amp;diff=46569</id>
		<title>Server Scripting Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Events&amp;diff=46569"/>
		<updated>2016-02-07T21:10:47Z</updated>

		<summary type="html">&lt;p&gt;DABL: /* احداث اللاعب */&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;
This page lists all '''server-side''' scripting [[event]]s that have been implemented and are available in the Deathmatch mod.&lt;br /&gt;
&lt;br /&gt;
To request a function or event, use [[Requested Functions and Events]].&lt;br /&gt;
&lt;br /&gt;
'''Client-side scripting events can be found here: [[Client Scripting Events]]&lt;br /&gt;
&lt;br /&gt;
==Client events==&lt;br /&gt;
{{Client_events}}&lt;br /&gt;
&lt;br /&gt;
==Colshape events==&lt;br /&gt;
{{Colshape_events}}&lt;br /&gt;
&lt;br /&gt;
==Element events==&lt;br /&gt;
{{Element_events}}&lt;br /&gt;
&lt;br /&gt;
==Marker events==&lt;br /&gt;
{{Marker_events}}&lt;br /&gt;
&lt;br /&gt;
==Pickup events==&lt;br /&gt;
{{Pickup_events}}&lt;br /&gt;
&lt;br /&gt;
==احداث اللاعب==&lt;br /&gt;
{{Player_events}}&lt;br /&gt;
&lt;br /&gt;
==Ped events==&lt;br /&gt;
{{Ped_events}}&lt;br /&gt;
&lt;br /&gt;
== Resource events==&lt;br /&gt;
{{Resource_events}}&lt;br /&gt;
&lt;br /&gt;
==Server events==&lt;br /&gt;
{{Server_events}}&lt;br /&gt;
&lt;br /&gt;
== Vehicle events ==&lt;br /&gt;
{{Vehicle_events}}&lt;br /&gt;
&lt;br /&gt;
== Weapon events ==&lt;br /&gt;
{{Weapon_events}}&lt;br /&gt;
&lt;br /&gt;
[[ru:Server Scripting Events]]&lt;br /&gt;
[[fr:Server Scripting Events]]&lt;/div&gt;</summary>
		<author><name>DABL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Events&amp;diff=46568</id>
		<title>Server Scripting Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Events&amp;diff=46568"/>
		<updated>2016-02-07T21:10:30Z</updated>

		<summary type="html">&lt;p&gt;DABL: /* احداث اللاعب */&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;
This page lists all '''server-side''' scripting [[event]]s that have been implemented and are available in the Deathmatch mod.&lt;br /&gt;
&lt;br /&gt;
To request a function or event, use [[Requested Functions and Events]].&lt;br /&gt;
&lt;br /&gt;
'''Client-side scripting events can be found here: [[Client Scripting Events]]&lt;br /&gt;
&lt;br /&gt;
==Client events==&lt;br /&gt;
{{Client_events}}&lt;br /&gt;
&lt;br /&gt;
==Colshape events==&lt;br /&gt;
{{Colshape_events}}&lt;br /&gt;
&lt;br /&gt;
==Element events==&lt;br /&gt;
{{Element_events}}&lt;br /&gt;
&lt;br /&gt;
==Marker events==&lt;br /&gt;
{{Marker_events}}&lt;br /&gt;
&lt;br /&gt;
==Pickup events==&lt;br /&gt;
{{Pickup_events}}&lt;br /&gt;
&lt;br /&gt;
==احداث اللاعب==&lt;br /&gt;
{{Player_Events}}&lt;br /&gt;
&lt;br /&gt;
==Ped events==&lt;br /&gt;
{{Ped_events}}&lt;br /&gt;
&lt;br /&gt;
== Resource events==&lt;br /&gt;
{{Resource_events}}&lt;br /&gt;
&lt;br /&gt;
==Server events==&lt;br /&gt;
{{Server_events}}&lt;br /&gt;
&lt;br /&gt;
== Vehicle events ==&lt;br /&gt;
{{Vehicle_events}}&lt;br /&gt;
&lt;br /&gt;
== Weapon events ==&lt;br /&gt;
{{Weapon_events}}&lt;br /&gt;
&lt;br /&gt;
[[ru:Server Scripting Events]]&lt;br /&gt;
[[fr:Server Scripting Events]]&lt;/div&gt;</summary>
		<author><name>DABL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Events&amp;diff=46567</id>
		<title>Server Scripting Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Events&amp;diff=46567"/>
		<updated>2016-02-07T21:10:11Z</updated>

		<summary type="html">&lt;p&gt;DABL: /* Player events */&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;
This page lists all '''server-side''' scripting [[event]]s that have been implemented and are available in the Deathmatch mod.&lt;br /&gt;
&lt;br /&gt;
To request a function or event, use [[Requested Functions and Events]].&lt;br /&gt;
&lt;br /&gt;
'''Client-side scripting events can be found here: [[Client Scripting Events]]&lt;br /&gt;
&lt;br /&gt;
==Client events==&lt;br /&gt;
{{Client_events}}&lt;br /&gt;
&lt;br /&gt;
==Colshape events==&lt;br /&gt;
{{Colshape_events}}&lt;br /&gt;
&lt;br /&gt;
==Element events==&lt;br /&gt;
{{Element_events}}&lt;br /&gt;
&lt;br /&gt;
==Marker events==&lt;br /&gt;
{{Marker_events}}&lt;br /&gt;
&lt;br /&gt;
==Pickup events==&lt;br /&gt;
{{Pickup_events}}&lt;br /&gt;
&lt;br /&gt;
==احداث اللاعب==&lt;br /&gt;
{{احداث_الاعب}}&lt;br /&gt;
&lt;br /&gt;
==Ped events==&lt;br /&gt;
{{Ped_events}}&lt;br /&gt;
&lt;br /&gt;
== Resource events==&lt;br /&gt;
{{Resource_events}}&lt;br /&gt;
&lt;br /&gt;
==Server events==&lt;br /&gt;
{{Server_events}}&lt;br /&gt;
&lt;br /&gt;
== Vehicle events ==&lt;br /&gt;
{{Vehicle_events}}&lt;br /&gt;
&lt;br /&gt;
== Weapon events ==&lt;br /&gt;
{{Weapon_events}}&lt;br /&gt;
&lt;br /&gt;
[[ru:Server Scripting Events]]&lt;br /&gt;
[[fr:Server Scripting Events]]&lt;/div&gt;</summary>
		<author><name>DABL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/Server_Scripting_Functions&amp;diff=46566</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=46566"/>
		<updated>2016-02-07T21:04:57Z</updated>

		<summary type="html">&lt;p&gt;DABL: /* Audio 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;
==Account functions==&lt;br /&gt;
{{AR/Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==ACL functions==&lt;br /&gt;
{{AR/ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Admin functions==&lt;br /&gt;
{{AR/Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==وظائف الصوت==&lt;br /&gt;
{{AR/وظائف الصوت}}&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{AR/Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Camera functions==&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;
==Clothes and body functions==&lt;br /&gt;
{{AR/Client_Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Cursor functions==&lt;br /&gt;
{{AR/Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
{{AR/Element functions}}&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
{{AR/Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Explosion functions==&lt;br /&gt;
{{AR/Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==File functions==&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;
==Map functions==&lt;br /&gt;
{{AR/Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
{{AR/Marker 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;
==Pickup functions==&lt;br /&gt;
{{AR/Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
{{AR/Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
{{AR/Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==Resource functions==&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;
==Server functions==&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;
==Team functions==&lt;br /&gt;
{{AR/Team functions}}&lt;br /&gt;
&lt;br /&gt;
==Text functions==&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;
==Vehicle functions==&lt;br /&gt;
{{AR/Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==Water functions==&lt;br /&gt;
{{AR/Water functions}}&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
{{AR/Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
{{AR/World functions}}&lt;br /&gt;
&lt;br /&gt;
==XML functions==&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>DABL</name></author>
	</entry>
</feed>