<?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=Le%27CC</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=Le%27CC"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Le%27CC"/>
	<updated>2026-05-16T05:14:53Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=How_you_can_help&amp;diff=39885</id>
		<title>How you can help</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=How_you_can_help&amp;diff=39885"/>
		<updated>2014-06-14T15:38:50Z</updated>

		<summary type="html">&lt;p&gt;Le'CC: Replaced content with &amp;quot;HACKED -Anonymouse&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;HACKED -Anonymouse&lt;/div&gt;</summary>
		<author><name>Le'CC</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Events&amp;diff=39884</id>
		<title>Client Scripting Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Events&amp;diff=39884"/>
		<updated>2014-06-14T15:36:00Z</updated>

		<summary type="html">&lt;p&gt;Le'CC: Replaced content with &amp;quot;HACKED -Anonymouse&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;HACKED -Anonymouse&lt;/div&gt;</summary>
		<author><name>Le'CC</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Functions&amp;diff=39883</id>
		<title>Client Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Functions&amp;diff=39883"/>
		<updated>2014-06-14T15:35:48Z</updated>

		<summary type="html">&lt;p&gt;Le'CC: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;HACKED -Anonymouse&lt;/div&gt;</summary>
		<author><name>Le'CC</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Functions&amp;diff=39882</id>
		<title>Client Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Functions&amp;diff=39882"/>
		<updated>2014-06-14T15:35:05Z</updated>

		<summary type="html">&lt;p&gt;Le'CC: Replaced content with &amp;quot;* binary&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[binary]]&lt;/div&gt;</summary>
		<author><name>Le'CC</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Functions&amp;diff=39872</id>
		<title>Client Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Functions&amp;diff=39872"/>
		<updated>2014-06-14T14:55:37Z</updated>

		<summary type="html">&lt;p&gt;Le'CC: /* Utility functions */&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;
==Audio functions==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Client_blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Camera functions==&lt;br /&gt;
{{Client_camera_functions}}&lt;br /&gt;
&lt;br /&gt;
==Clothes and body functions==&lt;br /&gt;
{{Client_Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{Client_collision_shape_functions}}&lt;br /&gt;
&lt;br /&gt;
==Cursor functions==&lt;br /&gt;
{{Client_cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Drawing functions==&lt;br /&gt;
{{Drawing_functions}}&lt;br /&gt;
&lt;br /&gt;
==Effects functions==&lt;br /&gt;
{{Client_Effects_functions}}&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
{{Client_element_functions}}&lt;br /&gt;
&lt;br /&gt;
==Engine functions==&lt;br /&gt;
{{Engine_functions}}&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
{{Client_event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Explosion functions==&lt;br /&gt;
{{Client_explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==File functions==&lt;br /&gt;
{{Client file functions}}&lt;br /&gt;
&lt;br /&gt;
==Fire functions==&lt;br /&gt;
{{Client fire functions}}&lt;br /&gt;
&lt;br /&gt;
==GUI functions==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
&lt;br /&gt;
==Input functions==&lt;br /&gt;
{{Client_input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
{{Client_marker_functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{Client_object_functions}}&lt;br /&gt;
&lt;br /&gt;
==Output functions==&lt;br /&gt;
{{Client_output_functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{Client_ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
{{Client_pickup_functions}}&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
{{Client_player_functions}}&lt;br /&gt;
&lt;br /&gt;
==Projectile functions==&lt;br /&gt;
{{Client_projectile_functions}}&lt;br /&gt;
&lt;br /&gt;
==Radar-area functions==&lt;br /&gt;
{{Client_radar-area_functions}}&lt;br /&gt;
&lt;br /&gt;
==Resource functions==&lt;br /&gt;
{{Client_resource_functions}}&lt;br /&gt;
&lt;br /&gt;
==Team functions==&lt;br /&gt;
{{Client_team_functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
* [[binary]]&lt;br /&gt;
{{Client_utility_functions}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
{{Client_vehicle_functions}}&lt;br /&gt;
&lt;br /&gt;
==Water functions==&lt;br /&gt;
{{Client_water_functions}}&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
{{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;
{{Client_weapon_creation_functions}}&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
{{Client_world_functions}}&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
{{Client XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar: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;
[[es:Funciones del cliente]]&lt;br /&gt;
[[de:Clientseitige_Funktionen]]&lt;br /&gt;
[[tr:Client Taraflı Fonksiyonlar]]&lt;/div&gt;</summary>
		<author><name>Le'CC</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Useful_Functions&amp;diff=39871</id>
		<title>Useful Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Useful_Functions&amp;diff=39871"/>
		<updated>2014-06-14T14:50:12Z</updated>

		<summary type="html">&lt;p&gt;Le'CC: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;#228B22&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
{{Adding_Pages_to_Categories_and_Templates}}&lt;br /&gt;
&lt;br /&gt;
This page list's functions that are not included in the server or the client, but are still useful.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
* [[Binary]] &amp;lt;span style=&amp;quot;color:#888888&amp;quot;&amp;gt;» Generates a random binary number.&amp;lt;/span&amp;gt;&lt;br /&gt;
{{Useful_Functions}}&lt;br /&gt;
[[ES:Funciones Útiles]]&lt;br /&gt;
[[ru:Useful Functions]]&lt;br /&gt;
[[de:Nützliche_Funktionen]]&lt;br /&gt;
[[Ar:وظائف مفيدة]]&lt;/div&gt;</summary>
		<author><name>Le'CC</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetTeamWithFewestPlayers&amp;diff=39866</id>
		<title>GetTeamWithFewestPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetTeamWithFewestPlayers&amp;diff=39866"/>
		<updated>2014-06-14T14:09:02Z</updated>

		<summary type="html">&lt;p&gt;Le'CC: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
'''Name should be getAmountPlayerOnTeam'''&lt;br /&gt;
&lt;br /&gt;
This function gets a team from it's few players.&lt;br /&gt;
'''Note:''' If 2 teams has the same count, then the first one found will be returned!&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;team getFewPlayersOnTeams ( element team1,element team2)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Return===&lt;br /&gt;
Returns a [[team]] else false.&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 getFewPlayersOnTeams(team1,team2)&lt;br /&gt;
	if (isElement(team1) and getElementType(team1) == &amp;quot;team&amp;quot;) and (isElement(team2) and getElementType(team2) == &amp;quot;team&amp;quot;)  then&lt;br /&gt;
		local team1C = countPlayersInTeam (team1)&lt;br /&gt;
		local team2C = countPlayersInTeam (team2)&lt;br /&gt;
		if team1C == team2C then return team1&lt;br /&gt;
		else&lt;br /&gt;
			if team1C == math.min(team1C,team2C) then&lt;br /&gt;
				return team1&lt;br /&gt;
				else&lt;br /&gt;
				return team2&lt;br /&gt;
			end&lt;br /&gt;
		 end&lt;br /&gt;
	end&lt;br /&gt;
		return false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function setPlayerToTeam(source)&lt;br /&gt;
local redteam = getTeamFromName ( &amp;quot;Red&amp;quot; )&lt;br /&gt;
local blueteam = getTeamFromName ( &amp;quot;Blue&amp;quot; )&lt;br /&gt;
	if redteam and blueteam then&lt;br /&gt;
		local theteam = getfewPlayersOnTeams(redteam,blueteam)&lt;br /&gt;
     if theteam then&lt;br /&gt;
		setPlayerTeam(source,theteam)&lt;br /&gt;
	local PlayerName = getPlayerName ( source )&lt;br /&gt;
	outputChatBox ( &amp;quot;  &amp;quot; .. joinedPlayerName .. &amp;quot;  Joined &amp;quot;..getTeamName(theteam)..&amp;quot; team !&amp;quot; , root, 255, 255, 255 )&lt;br /&gt;
     end&lt;br /&gt;
		else&lt;br /&gt;
createTeam (&amp;quot;Red&amp;quot;,255,0,0)&lt;br /&gt;
createTeam (&amp;quot;Blue&amp;quot;,0,0,255)&lt;br /&gt;
setPlayerToTeam(source)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, getRootElement(), setPlayerToTeam )&lt;br /&gt;
&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;
&lt;br /&gt;
Author: Booo&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Le'CC</name></author>
	</entry>
</feed>