<?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=LeetWoovie</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=LeetWoovie"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/LeetWoovie"/>
	<updated>2026-05-09T19:32:05Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Battlefield&amp;diff=23593</id>
		<title>Battlefield</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Battlefield&amp;diff=23593"/>
		<updated>2010-06-01T11:02:37Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| width=&amp;quot;100%&amp;quot; style=&amp;quot;text-align:left; background-color:#F9F9F9; border:1px solid #AAAAAA;&amp;quot;&lt;br /&gt;
| [[Resource:Battlefield|Forward to Battlefield Resource]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Battlefield&amp;diff=22999</id>
		<title>Battlefield</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Battlefield&amp;diff=22999"/>
		<updated>2010-04-22T15:14:42Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;createSquad and getSquad mostly finished.&lt;br /&gt;
&lt;br /&gt;
Need to finish converting/writing the rest of my functions. [[User:LeetWoovie|LeetWoovie]] 14:57, 22 April 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; style=&amp;quot;text-align:left; background-color:#F9F9F9; border:1px solid #AAAAAA;&amp;quot;&lt;br /&gt;
| [[Resource:Battlefield|Return to Battlefield Resource]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Battlefield&amp;diff=22998</id>
		<title>Battlefield</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Battlefield&amp;diff=22998"/>
		<updated>2010-04-22T14:59:51Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;createSquad and getSquad mostly finished.&lt;br /&gt;
&lt;br /&gt;
Need to finish converting/writing the rest of my functions. [[User:LeetWoovie|LeetWoovie]] 14:57, 22 April 2010 (UTC)&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Battlefield&amp;diff=22997</id>
		<title>Battlefield</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Battlefield&amp;diff=22997"/>
		<updated>2010-04-22T14:57:18Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Battlefield&amp;diff=22996</id>
		<title>Battlefield</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Battlefield&amp;diff=22996"/>
		<updated>2010-04-22T14:57:01Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: Created page with 'createSquad and getSquad mostly finished.  Need to finish converting/writing the rest of my functions. ~~~~'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;createSquad and getSquad mostly finished.&lt;br /&gt;
&lt;br /&gt;
Need to finish converting/writing the rest of my functions. [[User:LeetWoovie|LeetWoovie]] 14:57, 22 April 2010 (UTC)&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield&amp;diff=22995</id>
		<title>Resource:Battlefield</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield&amp;diff=22995"/>
		<updated>2010-04-22T14:55:53Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&amp;lt;removeNamespaceName&amp;gt;&amp;lt;/removeNamespaceName&amp;gt;&lt;br /&gt;
&amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt;&lt;br /&gt;
A resource based on the 'Bad Company 2' Battlefield game. Right now it is only a wordpad document of ideas. Hopefully I can get more contributers with time.&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
*Server&lt;br /&gt;
**Squad Functions&lt;br /&gt;
***[[Resource:battlefield/createSquad|createSquad]]&lt;br /&gt;
***[[Resource:battlefield/getSquad|getSquad]]&lt;br /&gt;
***[[Resource:battlefield/getSquadShortn|getSquadShortn]]&lt;br /&gt;
***[[Resource:battlefield/getSquadName|getSquadName]]&lt;br /&gt;
***[[Resource:battlefield/getSquadTeam|getSquadTeam]]&lt;br /&gt;
**Player Functions&lt;br /&gt;
***[[Resource:battlefield/setPlayerSquad|setPlayerSquad]]&lt;br /&gt;
***[[Resource:battlefield/getPlayerSquad|getPlayerSquad]]&lt;br /&gt;
***[[Resource:battlefield/isPlayerSpotted|isPlayerSpotted]]&lt;br /&gt;
***[[Resource:battlefield/setPlayerSpotted|setPlayerSpotted]]&lt;br /&gt;
**Vehicle Functions&lt;br /&gt;
***[[Resource:battlefield/isVehicleSpotted|isVehicleSpotted]]&lt;br /&gt;
***[[Resource:battlefield/setVehicleSpotted|setVehicleSpotted]]&lt;br /&gt;
*Client&lt;br /&gt;
&lt;br /&gt;
==Events==&lt;br /&gt;
Nothing here yet. :)&lt;br /&gt;
[[Category:Resource]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquadID&amp;diff=22994</id>
		<title>Resource:Battlefield/getSquadID</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquadID&amp;diff=22994"/>
		<updated>2010-04-22T14:55:33Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: moved Resource:Battlefield/getSquadID to Resource:Battlefield/getSquadShortn&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Resource:Battlefield/getSquadShortn]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquadShortn&amp;diff=22993</id>
		<title>Resource:Battlefield/getSquadShortn</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquadShortn&amp;diff=22993"/>
		<updated>2010-04-22T14:55:33Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: moved Resource:Battlefield/getSquadID to Resource:Battlefield/getSquadShortn&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function retrieves the squad ID. The squad ID is simply a string representing the full squad name. The first letter of a squad name is the ID. It can be retrieved with the squad element.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
Alpha Bravo Charlie Delta Echo Foxtrot Golf Hotel&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getSquadID ( squad squadElement, team squadTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Resource:battlefield]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquad&amp;diff=22992</id>
		<title>Resource:Battlefield/getSquad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquad&amp;diff=22992"/>
		<updated>2010-04-22T14:54:48Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: /* Function Source */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
==Purpose==&lt;br /&gt;
This command retrieves a [[Resource:Battlefield/squad|squad]] element when given the name or [[Resource:Battlefield/shortname|shortname]] of a squad and the 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;
squad getSquad ( [string squadName, string squadShortn], team squadTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''squadTeam:''' The [[team]] element the squad will be attached to.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''squadName:''' The name of the squad.&lt;br /&gt;
*'''squadShortn:''' The shortname of the squad.&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the ''squad element'' if it was found, otherwise ''false''.&lt;br /&gt;
&lt;br /&gt;
==Function Source==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nameTable = { &amp;quot;Alpha&amp;quot;, &amp;quot;Bravo&amp;quot;, &amp;quot;Charlie&amp;quot;, &amp;quot;Delta&amp;quot;, &amp;quot;Echo&amp;quot;, &amp;quot;Foxtrot&amp;quot;, &amp;quot;Golf&amp;quot;, &amp;quot;Hotel&amp;quot; }&lt;br /&gt;
function getSquad ( name, team )&lt;br /&gt;
	local squads = getElementsByType ( &amp;quot;squad&amp;quot; )&lt;br /&gt;
	for k,v in ipairs ( squads ) do&lt;br /&gt;
		local sTeam = getElementData ( v, &amp;quot;team&amp;quot; )&lt;br /&gt;
		if team == sTeam then&lt;br /&gt;
			for j,l in ipairs ( nameTable ) do&lt;br /&gt;
				shortn = string.lower ( string.sub ( l, 1, 1 ) )&lt;br /&gt;
				if name == l or name == shortn then&lt;br /&gt;
					return v&lt;br /&gt;
				else&lt;br /&gt;
					return false&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			return false&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; style=&amp;quot;text-align:left; background-color:#F9F9F9; border:1px solid #AAAAAA;&amp;quot;&lt;br /&gt;
| [[Resource:Battlefield|Return to Battlefield Resource]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquad&amp;diff=22991</id>
		<title>Resource:Battlefield/getSquad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquad&amp;diff=22991"/>
		<updated>2010-04-22T14:53:17Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: /* Function Source */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
==Purpose==&lt;br /&gt;
This command retrieves a [[Resource:Battlefield/squad|squad]] element when given the name or [[Resource:Battlefield/shortname|shortname]] of a squad and the 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;
squad getSquad ( [string squadName, string squadShortn], team squadTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''squadTeam:''' The [[team]] element the squad will be attached to.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''squadName:''' The name of the squad.&lt;br /&gt;
*'''squadShortn:''' The shortname of the squad.&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the ''squad element'' if it was found, otherwise ''false''.&lt;br /&gt;
&lt;br /&gt;
==Function Source==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nameTable = { &amp;quot;Alpha&amp;quot;, &amp;quot;Bravo&amp;quot;, &amp;quot;Charlie&amp;quot;, &amp;quot;Delta&amp;quot;, &amp;quot;Echo&amp;quot;, &amp;quot;Foxtrot&amp;quot;, &amp;quot;Golf&amp;quot;, &amp;quot;Hotel&amp;quot; }&lt;br /&gt;
function getSquad ( name, team )&lt;br /&gt;
	local squads = getElementsByType ( &amp;quot;squad&amp;quot; )&lt;br /&gt;
	for k,v in ipairs ( squads ) do&lt;br /&gt;
		local sTeam = getElementData ( v, &amp;quot;team&amp;quot; )&lt;br /&gt;
		if team == sTeam then&lt;br /&gt;
			for j,l in ipairs ( nameTable ) do&lt;br /&gt;
				shortn = string.sub ( l, 1, 1 )&lt;br /&gt;
				if name == l or name == shortn then&lt;br /&gt;
					return v&lt;br /&gt;
				else&lt;br /&gt;
					return false&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			return false&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; style=&amp;quot;text-align:left; background-color:#F9F9F9; border:1px solid #AAAAAA;&amp;quot;&lt;br /&gt;
| [[Resource:Battlefield|Return to Battlefield Resource]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquad&amp;diff=22990</id>
		<title>Resource:Battlefield/getSquad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquad&amp;diff=22990"/>
		<updated>2010-04-22T14:45:08Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
==Purpose==&lt;br /&gt;
This command retrieves a [[Resource:Battlefield/squad|squad]] element when given the name or [[Resource:Battlefield/shortname|shortname]] of a squad and the 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;
squad getSquad ( [string squadName, string squadShortn], team squadTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''squadTeam:''' The [[team]] element the squad will be attached to.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''squadName:''' The name of the squad.&lt;br /&gt;
*'''squadShortn:''' The shortname of the squad.&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the ''squad element'' if it was found, otherwise ''false''.&lt;br /&gt;
&lt;br /&gt;
==Function Source==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
nameTable = { &amp;quot;Alpha&amp;quot;, &amp;quot;Bravo&amp;quot;, &amp;quot;Charlie&amp;quot;, &amp;quot;Delta&amp;quot;, &amp;quot;Echo&amp;quot;, &amp;quot;Foxtrot&amp;quot;, &amp;quot;Golf&amp;quot;, &amp;quot;Hotel&amp;quot; }&lt;br /&gt;
shortnTable = { &amp;quot;a&amp;quot;, &amp;quot;b&amp;quot;, &amp;quot;c&amp;quot;, &amp;quot;d&amp;quot;, &amp;quot;e&amp;quot;, &amp;quot;f&amp;quot;, &amp;quot;g&amp;quot;, &amp;quot;h&amp;quot; }&lt;br /&gt;
function getSquad ( name, team )&lt;br /&gt;
	local squads = getElementsByType ( &amp;quot;squad&amp;quot; )&lt;br /&gt;
	for k,v in ipairs ( squads ) do&lt;br /&gt;
		local sTeam = getElementData ( v, &amp;quot;team&amp;quot; )&lt;br /&gt;
		if team == sTeam then&lt;br /&gt;
			for j,l in ipairs ( nameTable ) do&lt;br /&gt;
				if name == l then&lt;br /&gt;
					return v&lt;br /&gt;
				else&lt;br /&gt;
					for u,p in ipairs ( shortnTable ) do&lt;br /&gt;
						if name == p then&lt;br /&gt;
						return v&lt;br /&gt;
					else&lt;br /&gt;
						return false&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			return false&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; style=&amp;quot;text-align:left; background-color:#F9F9F9; border:1px solid #AAAAAA;&amp;quot;&lt;br /&gt;
| [[Resource:Battlefield|Return to Battlefield Resource]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/createSquad&amp;diff=22989</id>
		<title>Resource:Battlefield/createSquad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/createSquad&amp;diff=22989"/>
		<updated>2010-04-22T14:33:51Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
==Purpose==&lt;br /&gt;
Creates a squad element. [[Resource:battlefield/squad|Click here to read more about squads.]]&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
squad createSquad ( team squadTeam, string shortName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''squadTeam:''' The [[team]] element the squad will be attached to.&lt;br /&gt;
*'''shortName:''' The [[Resource:battlefield/shortname|shortname]] for the squad.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the ''squad element'' if it was created, otherwise ''false''.&lt;br /&gt;
&lt;br /&gt;
==Function Source==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function createSquad ( team, shortn )&lt;br /&gt;
	squad = createElement ( &amp;quot;squad&amp;quot;, team, shortn )&lt;br /&gt;
	if squad then&lt;br /&gt;
		return squad&lt;br /&gt;
	else&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; style=&amp;quot;text-align:left; background-color:#F9F9F9; border:1px solid #AAAAAA;&amp;quot;&lt;br /&gt;
| [[Resource:Battlefield|Return to Battlefield Resource]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/createSquad&amp;diff=22988</id>
		<title>Resource:Battlefield/createSquad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/createSquad&amp;diff=22988"/>
		<updated>2010-04-22T14:32:31Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Purpose==&lt;br /&gt;
Creates a squad element. [[Resource:battlefield/squad|Click here to read more about squads.]]&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
squad createSquad ( team squadTeam, string shortName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''squadTeam:''' The [[team]] element the squad will be attached to.&lt;br /&gt;
*'''shortName:''' The [[Resource:battlefield/shortname|shortname]] for the squad.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the ''squad element'' if it was created, otherwise ''false''.&lt;br /&gt;
&lt;br /&gt;
==Function Source==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function createSquad ( team, shortn )&lt;br /&gt;
	squad = createElement ( &amp;quot;squad&amp;quot;, team, shortn )&lt;br /&gt;
	if squad then&lt;br /&gt;
		return squad&lt;br /&gt;
	else&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; style=&amp;quot;text-align:left; background-color:#F9F9F9; border:1px solid #AAAAAA;&amp;quot;&lt;br /&gt;
| [[Resource:Battlefield|Return to Battlefield Resource]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22987</id>
		<title>Resource:Battlefield/Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22987"/>
		<updated>2010-04-22T13:52:07Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A squad is a sub-team element containing 4 or less people. Each team has up to 8 squads. Each squad has its own set of orders set by any member of the squad group. Squad members can respawn on each other as well.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;squad team=&amp;quot;&amp;quot; shortn=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
Squads eliminate the need of a commander and allow organization on the battlefield.&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/squad&amp;diff=22986</id>
		<title>Resource:Battlefield/squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/squad&amp;diff=22986"/>
		<updated>2010-04-22T13:50:43Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: Redirected page to Resource:Battlefield/Squad&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Resource:battlefield/Squad]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/squad&amp;diff=22985</id>
		<title>Resource:Battlefield/squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/squad&amp;diff=22985"/>
		<updated>2010-04-22T13:50:14Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: Redirected page to Squad&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Squad]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/createSquad&amp;diff=22984</id>
		<title>Resource:Battlefield/createSquad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/createSquad&amp;diff=22984"/>
		<updated>2010-04-22T13:49:16Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Purpose==&lt;br /&gt;
Creates a squad element. [[Resource:battlefield/squad|Click here to read more about squads.]]&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
squad createSquad ( team squadTeam, string shortName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''squadTeam:''' The [[team]] element the squad will be attached to.&lt;br /&gt;
*'''shortName:''' The [[Resource:battlefield/shortname|shortname]] for the squad.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the ''squad element'' if it was created, otherwise ''false''.&lt;br /&gt;
&lt;br /&gt;
==Function Source==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function createSquad ( team, shortn )&lt;br /&gt;
	squad = createElement ( &amp;quot;squad&amp;quot;, team, shortn )&lt;br /&gt;
	if squad then&lt;br /&gt;
		return squad&lt;br /&gt;
	else&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquadTeam&amp;diff=22967</id>
		<title>Resource:Battlefield/getSquadTeam</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquadTeam&amp;diff=22967"/>
		<updated>2010-04-21T10:16:00Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function retrieves a squad element's 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;
team getSquadTeam ( squad squadElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[Resource:Battlefield]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquadTeam&amp;diff=22966</id>
		<title>Resource:Battlefield/getSquadTeam</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquadTeam&amp;diff=22966"/>
		<updated>2010-04-21T10:15:43Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: Created page with 'This function retrieves a squad element's team.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; team getSquadTeam ( squad squadElement ) &amp;lt;/syntaxhighlight&amp;gt;'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function retrieves a squad element's 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;
team getSquadTeam ( squad squadElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquadName&amp;diff=22965</id>
		<title>Resource:Battlefield/getSquadName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquadName&amp;diff=22965"/>
		<updated>2010-04-21T10:14:31Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: Created page with 'This function retrieves the squad name. It can be retrieved with the squad element.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt; Alpha Bravo Charlie Delta Echo Foxtrot Golf Hotel  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; string get…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function retrieves the squad name. It can be retrieved with the squad element.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
Alpha Bravo Charlie Delta Echo Foxtrot Golf Hotel&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getSquadName ( squad squadElement, team squadTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Resource:battlefield]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquadShortn&amp;diff=22964</id>
		<title>Resource:Battlefield/getSquadShortn</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquadShortn&amp;diff=22964"/>
		<updated>2010-04-21T10:13:49Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function retrieves the squad ID. The squad ID is simply a string representing the full squad name. The first letter of a squad name is the ID. It can be retrieved with the squad element.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
Alpha Bravo Charlie Delta Echo Foxtrot Golf Hotel&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getSquadID ( squad squadElement, team squadTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Resource:battlefield]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquadShortn&amp;diff=22963</id>
		<title>Resource:Battlefield/getSquadShortn</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquadShortn&amp;diff=22963"/>
		<updated>2010-04-21T10:13:33Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: Created page with 'This function retrieves the squad ID. The squad ID is simply a string representing the full squad name. The first letter of a squad name is the ID. It can be retrieved with the s…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function retrieves the squad ID. The squad ID is simply a string representing the full squad name. The first letter of a squad name is the ID. It can be retrieved with the squad element.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
Alpha Bravo Charlie Delta Echo Foxtrot Golf Hotel&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getSquadID ( squad squadElement, team squadTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield&amp;diff=22962</id>
		<title>Resource:Battlefield</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield&amp;diff=22962"/>
		<updated>2010-04-21T10:07:26Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&amp;lt;removeNamespaceName&amp;gt;&amp;lt;/removeNamespaceName&amp;gt;&lt;br /&gt;
&amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt;&lt;br /&gt;
A resource based on the 'Bad Company 2' Battlefield game. Right now it is only a wordpad document of ideas. Hopefully I can get more contributers with time.&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
*Server&lt;br /&gt;
**Squad Functions&lt;br /&gt;
***[[Resource:battlefield/createSquad|createSquad]]&lt;br /&gt;
***[[Resource:battlefield/getSquad|getSquad]]&lt;br /&gt;
***[[Resource:battlefield/getSquadID|getSquadID]]&lt;br /&gt;
***[[Resource:battlefield/getSquadName|getSquadName]]&lt;br /&gt;
***[[Resource:battlefield/getSquadTeam|getSquadTeam]]&lt;br /&gt;
**Player Functions&lt;br /&gt;
***[[Resource:battlefield/setPlayerSquad|setPlayerSquad]]&lt;br /&gt;
***[[Resource:battlefield/getPlayerSquad|getPlayerSquad]]&lt;br /&gt;
***[[Resource:battlefield/isPlayerSpotted|isPlayerSpotted]]&lt;br /&gt;
***[[Resource:battlefield/setPlayerSpotted|setPlayerSpotted]]&lt;br /&gt;
**Vehicle Functions&lt;br /&gt;
***[[Resource:battlefield/isVehicleSpotted|isVehicleSpotted]]&lt;br /&gt;
***[[Resource:battlefield/setVehicleSpotted|setVehicleSpotted]]&lt;br /&gt;
*Client&lt;br /&gt;
&lt;br /&gt;
==Events==&lt;br /&gt;
Nothing here yet. :)&lt;br /&gt;
[[Category:Resource]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquad&amp;diff=22961</id>
		<title>Resource:Battlefield/getSquad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquad&amp;diff=22961"/>
		<updated>2010-04-21T10:06:46Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This command retrieves a squad element when given the name or ID of a squad and the 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;
squad getSquad ( [string squadName, string squadID], team squadTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Resource:Battlefield]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquad&amp;diff=22960</id>
		<title>Resource:Battlefield/getSquad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/getSquad&amp;diff=22960"/>
		<updated>2010-04-21T10:05:55Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: Created page with 'This command retrieves a squad element when given the name or ID of a squad and the team.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; squad getSquad ( [string squadName, string squadID], team squadT…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This command retrieves a squad element when given the name or ID of a squad and the 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;
squad getSquad ( [string squadName, string squadID], team squadTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22959</id>
		<title>Resource:Battlefield/Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22959"/>
		<updated>2010-04-21T10:03:38Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A squad is a sub-team element containing 4 or less people. Each team has up to 8 squads. Each squad has its own set of orders set by any member of the squad group. Squad members can respawn on each other as well.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;squad team=&amp;quot;&amp;quot; name=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
Squads eliminate the need of a commander and allow organization on the battlefield.&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22958</id>
		<title>Resource:Battlefield/Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22958"/>
		<updated>2010-04-21T10:02:44Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A squad is a sub-team element containing 4 or less people. Each team has up to 8 squads. Each squad has its own set of orders set by any member of the squad group. Squad members can respawn on each other as well.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;squad team=&amp;quot;&amp;quot; name=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/createSquad&amp;diff=22957</id>
		<title>Resource:Battlefield/createSquad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/createSquad&amp;diff=22957"/>
		<updated>2010-04-21T09:59:50Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function creates a [[Resource:battlefield/Squad|squad]] [[element]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
squad createSquad ( team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22956</id>
		<title>Resource:Battlefield/Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22956"/>
		<updated>2010-04-21T09:59:14Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Resource:battlefield/squad|squad]] [[element]] from [[User:Woovie|Woovie's]] [[Resource:battlefield|battlefield]] gamemode.&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22955</id>
		<title>Resource:Battlefield/Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22955"/>
		<updated>2010-04-21T09:58:41Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Resource:battlefield/squad|squad]] [[element]] from [[User:Woovie|Woovie's]] [[Resource:battlefield|battlefield]] gamemode.&lt;br /&gt;
[[Resource:Battlefield/Category:Element]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22954</id>
		<title>Resource:Battlefield/Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22954"/>
		<updated>2010-04-21T09:58:29Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Resource:battlefield/squad|squad]] [[element]] from [[User:Woovie|Woovie's]] [[Resource:battlefield|battlefield]] gamemode.&lt;br /&gt;
Resource:Battlefield/Category:Element&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Category:Element/Squad&amp;diff=22953</id>
		<title>Resource:Battlefield/Category:Element/Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Category:Element/Squad&amp;diff=22953"/>
		<updated>2010-04-21T09:58:15Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: moved Resource:Battlefield/Category:Element/Squad to Resource:Battlefield/Squad&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Resource:Battlefield/Squad]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22952</id>
		<title>Resource:Battlefield/Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22952"/>
		<updated>2010-04-21T09:58:15Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: moved Resource:Battlefield/Category:Element/Squad to Resource:Battlefield/Squad&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;May refer to the [[Resource:battlefield/squad|squad]] [[element]] from [[User:Woovie|Woovie's]] [[Resource:battlefield|battlefield]] gamemode.&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Element/Squad&amp;diff=22951</id>
		<title>Resource:Battlefield/Element/Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Element/Squad&amp;diff=22951"/>
		<updated>2010-04-21T09:58:04Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: moved Resource:Battlefield/Element/Squad to Resource:Battlefield/Category:Element/Squad&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Resource:Battlefield/Category:Element/Squad]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22950</id>
		<title>Resource:Battlefield/Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22950"/>
		<updated>2010-04-21T09:58:04Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: moved Resource:Battlefield/Element/Squad to Resource:Battlefield/Category:Element/Squad&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;May refer to the [[Resource:battlefield/squad|squad]] [[element]] from [[User:Woovie|Woovie's]] [[Resource:battlefield|battlefield]] gamemode.&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Element&amp;diff=22949</id>
		<title>Resource:Battlefield/Element</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Element&amp;diff=22949"/>
		<updated>2010-04-21T09:56:16Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: Created page with 'Elements pertaining to the Resource:battlefield gamemode.'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Elements pertaining to the [[Resource:battlefield]] gamemode.&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Element/Squad&amp;diff=22948</id>
		<title>Element/Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Element/Squad&amp;diff=22948"/>
		<updated>2010-04-21T09:55:47Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: moved Element/Squad to Resource:Battlefield/Element/Squad&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Resource:Battlefield/Element/Squad]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22947</id>
		<title>Resource:Battlefield/Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22947"/>
		<updated>2010-04-21T09:55:47Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: moved Element/Squad to Resource:Battlefield/Element/Squad&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;May refer to the [[Resource:battlefield/squad|squad]] [[element]] from [[User:Woovie|Woovie's]] [[Resource:battlefield|battlefield]] gamemode.&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22946</id>
		<title>Resource:Battlefield/Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22946"/>
		<updated>2010-04-21T09:55:33Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;May refer to the [[Resource:battlefield/squad|squad]] [[element]] from [[User:Woovie|Woovie's]] [[Resource:battlefield|battlefield]] gamemode.&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Elements/Squad&amp;diff=22945</id>
		<title>Elements/Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Elements/Squad&amp;diff=22945"/>
		<updated>2010-04-21T09:53:14Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: moved Elements/Squad to Element/Squad&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Element/Squad]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22944</id>
		<title>Resource:Battlefield/Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22944"/>
		<updated>2010-04-21T09:53:14Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: moved Elements/Squad to Element/Squad&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;May refer to the [[Resource:battlefield/squad|squad]] [[element]] from [[User:Woovie|Woovie's]] [[Resource:battlefield|battlefield]] gamemode.&lt;br /&gt;
[[Category:Element Types]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Squad&amp;diff=22943</id>
		<title>Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Squad&amp;diff=22943"/>
		<updated>2010-04-21T09:52:59Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: moved Squad to Elements/Squad&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Elements/Squad]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22942</id>
		<title>Resource:Battlefield/Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22942"/>
		<updated>2010-04-21T09:52:59Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: moved Squad to Elements/Squad&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;May refer to the [[Resource:battlefield/squad|squad]] [[element]] from [[User:Woovie|Woovie's]] [[Resource:battlefield|battlefield]] gamemode.&lt;br /&gt;
[[Category:Element Types]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/createSquad&amp;diff=22931</id>
		<title>Resource:Battlefield/createSquad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/createSquad&amp;diff=22931"/>
		<updated>2010-04-20T08:18:35Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: Created page with 'This function creates a squad element.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; squad createSquad ( team theTeam ) &amp;lt;/syntaxhighlight&amp;gt;'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function creates a [[Resource:battlefield/squad|squad]] [[element]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
squad createSquad ( team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22930</id>
		<title>Resource:Battlefield/Squad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield/Squad&amp;diff=22930"/>
		<updated>2010-04-20T08:17:23Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: Created page with 'May refer to the squad element from Woovie's battlefield gamemode. Category:Element Types'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;May refer to the [[Resource:battlefield/squad|squad]] [[element]] from [[User:Woovie|Woovie's]] [[Resource:battlefield|battlefield]] gamemode.&lt;br /&gt;
[[Category:Element Types]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield&amp;diff=22925</id>
		<title>Resource:Battlefield</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Battlefield&amp;diff=22925"/>
		<updated>2010-04-19T06:08:05Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: Created page with '&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt; &amp;lt;removeNamespaceName&amp;gt;&amp;lt;/removeNamespaceName&amp;gt; &amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt; A resource based on the 'Bad Company …'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&amp;lt;removeNamespaceName&amp;gt;&amp;lt;/removeNamespaceName&amp;gt;&lt;br /&gt;
&amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt;&lt;br /&gt;
A resource based on the 'Bad Company 2' Battlefield game. Right now it is only a wordpad document of ideas. Hopefully I can get more contributers with time.&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
*Server&lt;br /&gt;
**Squad Functions&lt;br /&gt;
***[[Resource:battlefield/createSquad|createSquad]]&lt;br /&gt;
***[[Resource:battlefield/getSquad|getSquad]]&lt;br /&gt;
***[[Resource:battlefield/getSquadID|getSquadID]]&lt;br /&gt;
***[[Resource:battlefield/getSquadTeam|getSquadTeam]]&lt;br /&gt;
**Player Functions&lt;br /&gt;
***[[Resource:battlefield/setPlayerSquad|setPlayerSquad]]&lt;br /&gt;
***[[Resource:battlefield/getPlayerSquad|getPlayerSquad]]&lt;br /&gt;
***[[Resource:battlefield/isPlayerSpotted|isPlayerSpotted]]&lt;br /&gt;
***[[Resource:battlefield/setPlayerSpotted|setPlayerSpotted]]&lt;br /&gt;
**Vehicle Functions&lt;br /&gt;
***[[Resource:battlefield/isVehicleSpotted|isVehicleSpotted]]&lt;br /&gt;
***[[Resource:battlefield/setVehicleSpotted|setVehicleSpotted]]&lt;br /&gt;
*Client&lt;br /&gt;
&lt;br /&gt;
==Events==&lt;br /&gt;
Nothing here yet. :)&lt;br /&gt;
[[Category:Resource]]&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Requested_Functions_and_Events&amp;diff=22924</id>
		<title>Requested Functions and Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Requested_Functions_and_Events&amp;diff=22924"/>
		<updated>2010-04-19T05:01:21Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Server-side==&lt;br /&gt;
&lt;br /&gt;
onVehicleCreated or an equivalent... shouldn't be too hard? -Robhol (14:15 Jul 6, 08)&lt;br /&gt;
:If we did it, it'd be onElementCreated - what do you want this for? [[User:EAi|eAi]] 08:58, 7 July 2008 (CDT)&lt;br /&gt;
::onElementCreated is a good idea - it could be used for lots of things. Also, how about onVehicleDrown or whatever? that is, when a vehicle hits deep water. Checking for collisions and stuff is very awkward, and client-side only, and has to be checked constantly.. -Robhol (17:31 Jul 9 08)&lt;br /&gt;
:::I second that. It would be useful if you use like me element data like the fuel amount or other stuff. And an event like this would help me to setup those element data, when a car spawns. Otherwise I would either have to edit every car spawn script I use or do a post-setup when someone is entering the car.. [[User:MaddDogg14]] (04:34 Apr 4, 10 (CEST))&lt;br /&gt;
::::i definetly agree, onElementCreated would be VERY useful for utility/librares scripts, but i think this should be limited by ACL, because &amp;quot;evil&amp;quot; scripts could abuse this othervise -Karlis (9:10 Apr 5, 10)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I ask for a function that detects if a ped is on floor, eg. '''isPedOnFloor(ped thePed)''', thanks. --&amp;lt;span style=&amp;quot;font-family:Courier New, Courier, monospace&amp;quot;&amp;gt;[[User:Shadd|Shadd]]&amp;lt;/span&amp;gt;&amp;lt;sub&amp;gt;([[User_talk:Shadd|In caso di emergenza rompere le scatole]])&amp;lt;/sub&amp;gt; 11:29, 15 June 2008 (CDT)&lt;br /&gt;
: [[isPedOnGround]]? [[User:Awwu|Awwu]] 12:58, 15 June 2008 (CDT)&lt;br /&gt;
::I need to know if the player has its back touching the ground, not if it's simply &amp;quot;on ground&amp;quot;. --&amp;lt;span style=&amp;quot;font-family:Courier New, Courier, monospace&amp;quot;&amp;gt;[[User:Shadd|Shadd]]&amp;lt;/span&amp;gt;&amp;lt;sub&amp;gt;([[User_talk:Shadd|In caso di emergenza rompere le scatole]])&amp;lt;/sub&amp;gt; 14:16, 16 June 2008 (CDT)&lt;br /&gt;
:::Check what task the player has, they should have TASK_COMPLEX_FALL_AND_GET_UP or TASK_COMPLEX_FALL_AND_STAY_DOWN... [[User:EAi|eAi]] 19:12, 16 June 2008 (CDT)&lt;br /&gt;
::::Thanks. What task does player have after being hitten by a melee attack that cause it to fall down? Would &amp;quot;TASK_SIMPLE_BE_KICKED_ON_GROUND&amp;quot; and &amp;quot;TASK_SIMPLE_GET_UP&amp;quot; work? --&amp;lt;span style=&amp;quot;font-family:Courier New, Courier, monospace&amp;quot;&amp;gt;[[User:Shadd|Shadd]]&amp;lt;/span&amp;gt;&amp;lt;sub&amp;gt;([[User_talk:Shadd|In caso di emergenza rompere le scatole]])&amp;lt;/sub&amp;gt; 09:35, 17 June 2008 (CDT)&lt;br /&gt;
:::::Try it, I'm not entirely sure. You should be able to produce some code to show the player's current tasks very easily... [[User:EAi|eAi]] 19:20, 17 June 2008 (CDT)&lt;br /&gt;
::::::My goal is to edit the standard damage of the attacks, in this case i have to know when player is on ground to cause higher damage. However it doesn't seem to work, when i hit the player it simply gets up without animation with no damage. --&amp;lt;span style=&amp;quot;font-family:Courier New, Courier, monospace&amp;quot;&amp;gt;[[User:Shadd|Shadd]]&amp;lt;/span&amp;gt;&amp;lt;sub&amp;gt;([[User_talk:Shadd|In caso di emergenza rompere le scatole]])&amp;lt;/sub&amp;gt; 19:10, 19 June 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
It may looks strange and useless (waste of time?) but I think that it could be a awesome feature. Having a web browser.&lt;br /&gt;
Like: http://www.youtube.com/watch?v=wT1UR6qEgdg&lt;br /&gt;
http://princeofcode.com/awesomium.php&lt;br /&gt;
:definetly useles and waste of time, suporting xfire enought. -karlis&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
There could be something like createBrowser( float x, float y, float z, [float rx, float ry, float rz, float width, float high, string url, bool locked] ) &lt;br /&gt;
locked parameter: false = navigation bar present, true = no navigation bar&lt;br /&gt;
toggleBrowserFullsceenMode(browser theBrowser, bool tog, [bool smooth])&lt;br /&gt;
smooth parameter: If set to true the browser will smoothly move from his ingame position to the fullscreen position&lt;br /&gt;
toggleBrowserBackground(browser theBrowser, bool tog)&lt;br /&gt;
Set the browser background transparent.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Security: Disable file downloads, disable popups (disable flash, javascript and any other protocols than http and https [no mailto and stuff...]?)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Should be a Client and server function. --[[User:Masterofquebec|Masterofquebec]] 00:10, 15 October 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Support of tooltips from CEGUI would be cool. I saw a property for that, but it didn't work for me. [[User:MaddDogg14]] (04:36 Apr 4, 10 (CEST))&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I request a function that gets all clothes from a ped, just like getPedClothes but for all bodyparts. With this function it would be more ease to save clothes to database.&lt;br /&gt;
:That's so easy to do yourself that it's barely worth adding. Just loop all the indexes 0-17 and save them to a table. [[User:Awwu|Awwu]] 19:26, 17 April 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[setProjectileTarget]] for setting a projectile to target a specific entity. I am trying to create a Battlefield Bad Company type of gamemode and in that game, you can plant a 'tracer'. Any rocket fired (if the tracer is on screen) will seek the tracer. [[User:LeetWoovie|LeetWoovie]] 05:01, 19 April 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Client-Side==&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Adding possibility to toggle radio hud label by '''showHudComponent''' -karlis  &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Pickup events clientside please, onClientPickupHit onClientPickupUse.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Would it be possible to add a color arg to guiGridListSetItemText()? Im trying to get each item colored differently in one list. Thanks, ABEL&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I need a function which could get current target of hydra or a HS rocket launcher, like when someone press space and targets a element, to get what element is it for calculating distance from it. '''getPlayerOccupiedVehicleTarget''' or '''getPlayerHSTarget'''. &lt;br /&gt;
Thanks in advance -Nidza a.k.a. CodeMaster 2:26 PM 19th June 2008.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
It'd be useful to have something to disable elements of the default hud (weapon display, health display, armor, radar, etcetera) so that you can create your own HUDs. Something like '''setHudElement(element name, toggle)'''.&lt;br /&gt;
&lt;br /&gt;
[[User:Lord Xalphox|Lord Xalphox]] 19:32, 22 March 2009 (CET)&lt;br /&gt;
:[[showPlayerHudComponent]]? [[User:Awwu|Awwu]] 19:43, 22 March 2009 (CET)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I'd like to have a function that sets the chatbox input line text. Then I could script my own chat history function (that inserts the last sent text into the input line again by pressing arrow up) (which samp has since 0.2 btw) since nobody builds it into the client. [[User:NeonBlack|NeonBlack]] 12:03, 4 July 2009 (CEST) PS.: samp also supports cut, copy and paste :P&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
A function setElementMatrix, doing the exact opposite of getElementMatrix would be much appreciated. --[[User:Kayl|Kayl]] 15:21, 13 November 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Functions like setTrainPosition(train,track,pos) and track,pos getTrainPosition(train) would be great in order to allow more script side control of trains.&lt;br /&gt;
The track argument would be an index of the track number (currently there are around 4 tracks handled, including 1 incompletely defined).&lt;br /&gt;
The position would be a float between 0 and 1 (or however you guys handle it) telling where on the track the train currently is.&lt;br /&gt;
It would be great if those functions could be available client and server side. --[[User:Kayl|Kayl]] 12:58, 23 November 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
need this function client and server side '''movePlayerHudComponent(string component, float x, float y)''' --[[User:SuatEyrice|SuatEyrice]] 00:18, 26 February 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerWeaponSwitch&amp;diff=21229</id>
		<title>OnPlayerWeaponSwitch</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerWeaponSwitch&amp;diff=21229"/>
		<updated>2009-08-25T06:36:22Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: It only had 1 end.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server event}}&lt;br /&gt;
This event is triggered when a player switches weapons.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int previousWeaponID, int currentWeaponID&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''previousWeaponID''': An integer representing the weapon that was switched from&lt;br /&gt;
*'''currentWeaponID''': An integer representing the weapon that was switched to&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] that switched his weapon.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example disables use of the minigun upon switch.  It should be noted that this can be done more efficiently clientside.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function weaponSwitchDisableMinigun ( previousWeaponID, currentWeaponID ) --when a player switches his weapon&lt;br /&gt;
     if currentWeaponID == 38 then --if the weapon ID is minigun&lt;br /&gt;
          toggleControl ( source, &amp;quot;fire&amp;quot;, false ) --disable the fire button&lt;br /&gt;
     else --otherwise&lt;br /&gt;
          toggleControl ( source, &amp;quot;fire&amp;quot;, true )  --enable it&lt;br /&gt;
     end&lt;br /&gt;
end&lt;br /&gt;
--add an event handler for onPlayerWeaponSwitch&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerWeaponSwitch&amp;quot;, getRootElement(), weaponSwitchDisableMinigun )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Water_functions&amp;diff=18917</id>
		<title>Template:Water functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Water_functions&amp;diff=18917"/>
		<updated>2009-04-06T20:42:39Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[getWaveHeight]]&lt;br /&gt;
*[[setWaveHeight]]&lt;br /&gt;
&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*[[getWaterLevel]]&lt;br /&gt;
*[[setWaterLevel]]&lt;br /&gt;
*[[createWater]]&lt;br /&gt;
*[[getWaterVertexPosition]]&lt;br /&gt;
*[[setWaterVertexPosition]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_water_functions&amp;diff=18916</id>
		<title>Template:Client water functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_water_functions&amp;diff=18916"/>
		<updated>2009-04-06T20:41:54Z</updated>

		<summary type="html">&lt;p&gt;LeetWoovie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[getWaveHeight]]&lt;br /&gt;
*[[setWaveHeight]]&lt;br /&gt;
&lt;br /&gt;
{{New feature|3|1.0|&lt;br /&gt;
*[[getWaterLevel]]&lt;br /&gt;
*[[setWaterLevel]]&lt;br /&gt;
*[[createWater]]&lt;br /&gt;
*[[getWaterVertexPosition]]&lt;br /&gt;
*[[setWaterVertexPosition]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>LeetWoovie</name></author>
	</entry>
</feed>