<?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=Brandon1171999</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=Brandon1171999"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Brandon1171999"/>
	<updated>2026-06-05T10:39:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Brandon1171999&amp;diff=34139</id>
		<title>User:Brandon1171999</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Brandon1171999&amp;diff=34139"/>
		<updated>2012-11-18T23:52:54Z</updated>

		<summary type="html">&lt;p&gt;Brandon1171999: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Add me on Skype and PSN: brandon1171999&lt;br /&gt;
&lt;br /&gt;
Join my incomplete server: mtasa://199.188.103.20:22005&lt;/div&gt;</summary>
		<author><name>Brandon1171999</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Brandon1171999&amp;diff=34138</id>
		<title>User:Brandon1171999</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Brandon1171999&amp;diff=34138"/>
		<updated>2012-11-18T23:52:13Z</updated>

		<summary type="html">&lt;p&gt;Brandon1171999: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Add me on Skype and PSN: brandon1171999&lt;br /&gt;
&lt;br /&gt;
Join my incomplete server: [http://mtasa://199.188.103.20:22005]&lt;/div&gt;</summary>
		<author><name>Brandon1171999</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Brandon1171999&amp;diff=34137</id>
		<title>User:Brandon1171999</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Brandon1171999&amp;diff=34137"/>
		<updated>2012-11-18T23:51:39Z</updated>

		<summary type="html">&lt;p&gt;Brandon1171999: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Add me on Skype and PSN: brandon1171999&lt;br /&gt;
&lt;br /&gt;
Join my incomplete server: [[Media:mtasa://199.188.103.20:22005]]&lt;/div&gt;</summary>
		<author><name>Brandon1171999</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Brandon1171999&amp;diff=34136</id>
		<title>User:Brandon1171999</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Brandon1171999&amp;diff=34136"/>
		<updated>2012-11-18T23:51:14Z</updated>

		<summary type="html">&lt;p&gt;Brandon1171999: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Add me on Skype and PSN: brandon1171999&lt;br /&gt;
&lt;br /&gt;
Join my incomplete server: [mtasa://199.188.103.20:22005]&lt;/div&gt;</summary>
		<author><name>Brandon1171999</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Brandon1171999&amp;diff=34135</id>
		<title>User:Brandon1171999</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Brandon1171999&amp;diff=34135"/>
		<updated>2012-11-18T23:50:37Z</updated>

		<summary type="html">&lt;p&gt;Brandon1171999: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Add me on Skype and PSN: brandon1171999&lt;br /&gt;
&lt;br /&gt;
Join my incomplete server: mtasa://199.188.103.20:22005&lt;/div&gt;</summary>
		<author><name>Brandon1171999</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Brandon1171999&amp;diff=34134</id>
		<title>User:Brandon1171999</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Brandon1171999&amp;diff=34134"/>
		<updated>2012-11-18T23:50:14Z</updated>

		<summary type="html">&lt;p&gt;Brandon1171999: Created page with &amp;quot;Add me on Skype and PSN: brandon1171999  Join my incomplete server: mtasa://199.188.103.20:22005&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Add me on Skype and PSN: brandon1171999&lt;br /&gt;
&lt;br /&gt;
Join my incomplete server: [[mtasa://199.188.103.20:22005]]&lt;/div&gt;</summary>
		<author><name>Brandon1171999</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxDrawText&amp;diff=33843</id>
		<title>DxDrawText</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxDrawText&amp;diff=33843"/>
		<updated>2012-10-26T02:04:59Z</updated>

		<summary type="html">&lt;p&gt;Brandon1171999: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}} &lt;br /&gt;
&lt;br /&gt;
Draws a string of text on the screen for one frame. In order for the text to stay visible continuously, you need to call this function with the same parameters on each frame update (see [[onClientRender]]).&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxDrawText ( string text, float left, float top [, float right=left, float bottom=top, int color=white, &lt;br /&gt;
                  float scale=1, mixed font=&amp;quot;default&amp;quot;, string alignX=&amp;quot;left&amp;quot;, string alignY=&amp;quot;top&amp;quot;,&lt;br /&gt;
                  bool clip=false, bool wordBreak=false, bool postGUI=false,&lt;br /&gt;
                  bool colorCoded=false, bool subPixelPositioning=false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''text:''' the text to draw&lt;br /&gt;
*'''left:''' the absolute X coordinate of the top left corner of the text&lt;br /&gt;
*'''top:''' the absolute Y coordinate of the top left corner of the text&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''right:''' the absolute X coordinate of the right side of the text bounding box. Used for text aligning, clipping and word breaking.&lt;br /&gt;
*'''bottom:''' the absolute Y coordinate of the bottom side of the text bounding box. Used for text aligning, clipping and word breaking.&lt;br /&gt;
*'''color:''' the color of the text, a value produced by [[tocolor]] or 0xAARRGGBB (AA = alpha, RR = red, GG = green, BB = blue).&lt;br /&gt;
*'''scale:''' the size of the text.{{New feature|3.0110|1.1|'''scale:''' can (optionally) be specified as two floats. i.e. '''scaleX, scaleY'''}}&lt;br /&gt;
*'''font:''' Either a custom [[DX font]] element or the name of a built-in DX font:&lt;br /&gt;
{{DxFonts}}&lt;br /&gt;
*'''alignX:''' horizontal alignment of the text within the bounding box. Can be '''&amp;quot;left&amp;quot;''', '''&amp;quot;center&amp;quot;''' or '''&amp;quot;right&amp;quot;'''.&lt;br /&gt;
*'''alignY:''' vertical alignment of the text within the bounding box. Can be '''&amp;quot;top&amp;quot;''', '''&amp;quot;center&amp;quot;''' or '''&amp;quot;bottom&amp;quot;'''.&lt;br /&gt;
*'''clip:''' if set to ''true'', the parts of the text that don't fit within the bounding box will be cut off.&lt;br /&gt;
*'''wordBreak:''' if set to ''true'', the text will wrap to a new line whenever it reaches the right side of the bounding box. If ''false'', the text will always be completely on one line.&lt;br /&gt;
* '''postGUI:''' A bool representing whether the text should be drawn on top of or behind any ingame GUI (rendered by CEGUI).&lt;br /&gt;
{{New_feature|3.0139|1.3.1|&lt;br /&gt;
*'''colorCoded:''' Set to true to enable embedded #FFFFFF color codes. Note: clip and wordBreak are forced false if this is set.&lt;br /&gt;
*'''subPixelPositioning:''' A bool representing whether the text can be positioned sub-pixel-ly. Looks nicer for moving/scaling animations.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example code will add the current zone name in the lower left corner of the players' screens.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local screenWidth, screenHeight = guiGetScreenSize ( ) -- Get the screen resolution (width and height)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function createText ( )&lt;br /&gt;
    local playerX, playerY, playerZ = getElementPosition ( localPlayer )       -- Get our player's coordinates.&lt;br /&gt;
    local playerZoneName = getZoneName ( playerX, playerY, playerZ )          -- Get name of the zone the player is in.&lt;br /&gt;
&lt;br /&gt;
    -- Draw zone name text's shadow.&lt;br /&gt;
    dxDrawText ( playerZoneName, 44, screenHeight - 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, &amp;quot;pricedown&amp;quot; )&lt;br /&gt;
    -- Draw zone name text.&lt;br /&gt;
    dxDrawText ( playerZoneName, 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, &amp;quot;pricedown&amp;quot; ) &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function HandleTheRendering ( )&lt;br /&gt;
    addEventHandler ( &amp;quot;onClientRender&amp;quot;, root, createText ) -- keep the text visible with onClientRender.&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, resourceRoot, HandleTheRendering )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.0-9.03986|Added colorCoded and subPixelPositioning arguments}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;/div&gt;</summary>
		<author><name>Brandon1171999</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateTeam&amp;diff=33842</id>
		<title>CreateTeam</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateTeam&amp;diff=33842"/>
		<updated>2012-10-26T02:01:15Z</updated>

		<summary type="html">&lt;p&gt;Brandon1171999: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function is for creating a new [[team]], which can be used to group players. Players will not join the team until they are respawned.&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 createTeam ( string teamName, [int colorR = 255, int colorG = 255, int colorB = 255] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''teamName:''' A string representing the teams name.&lt;br /&gt;
*'''colorR:''' An integer representing the red color value.&lt;br /&gt;
*'''colorG:''' An integer representing the green color value.&lt;br /&gt;
*'''colorB:''' An integer representing the blue color value.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a team element if it was successfully created, ''false'' if invalid arguments are passed or a team with that name already exists.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This example creates a new team for a player, then adds him to it.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function gimmeATeam ( source, commandName, teamName )&lt;br /&gt;
  local newTeam = createTeam ( teamName ) -- create a new team with the specified name&lt;br /&gt;
  if newTeam then -- if it was successfully created&lt;br /&gt;
    setPlayerTeam ( source, newTeam ) -- add the player to the new team&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;giveteam&amp;quot;, gimmeATeam)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example 2:''' This example creates two teams, one for Admin and one for Freeroamers, when the resource this script is in is started.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function createTeamsOnStart ()&lt;br /&gt;
	teamAdmmin = createTeam ( &amp;quot;Admin&amp;quot;, 0, 255, 0 ) --change the 3 numbers(0,255,0), the first number is ColourR, the second is ColourG, and the last one is ColourB&lt;br /&gt;
	teamFreeroamers = createTeam ( &amp;quot;Freeroamer&amp;quot;, 200, 0, 100 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, resourceRoot, createTeamsOnStart) --we attach the function to this resource's root element&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example 3:''' This example creates a team for Admin and when an admin logs in, he will be set in the Admin team.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function createAdminTeamOnStart ()&lt;br /&gt;
	AdminTeam = createTeam ( &amp;quot;Admin&amp;quot;, 0, 255, 0 )-- create a new team and name it 'Admin'&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, resourceRoot, createAdminTeamOnStart) -- add an event handler&lt;br /&gt;
&lt;br /&gt;
function setAdminTeam()&lt;br /&gt;
if isObjectInACLGroup(&amp;quot;user.&amp;quot;..getAccountName(getPlayerAccount(source)), aclGetGroup(&amp;quot;Admin&amp;quot;)) then -- if he is admin&lt;br /&gt;
   setPlayerTeam(source, AdminTeam) -- set him to admin team&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;,getRootElement(),setAdminTeam) -- add an event handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Team_functions}}&lt;/div&gt;</summary>
		<author><name>Brandon1171999</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ForcePlayerMap&amp;diff=33841</id>
		<title>ForcePlayerMap</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ForcePlayerMap&amp;diff=33841"/>
		<updated>2012-10-26T01:56:07Z</updated>

		<summary type="html">&lt;p&gt;Brandon1171999: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function is used to forcefully show a player's radar map.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool forcePlayerMap ( player thePlayer, bool forceOn )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer''': A [[player]] object referencing the specified player&lt;br /&gt;
*'''forceOn''': A boolean value representing whether or not the players radar map will be forced on&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player's radar map was forced on, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example forces the radar map to show for the player named &amp;quot;dave&amp;quot; on for 10 seconds, if it hasn't been already.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Get the player named &amp;quot;dave&amp;quot;&lt;br /&gt;
dave = getPlayerFromName ( &amp;quot;dave&amp;quot; )&lt;br /&gt;
-- Make sure we found him&lt;br /&gt;
if ( dave ) then&lt;br /&gt;
    if not isPlayerMapForced ( dave ) then                  -- if his radar map isn't already forced on&lt;br /&gt;
        forcePlayerMap ( dave, true )                       -- force it on&lt;br /&gt;
        setTimer ( forcePlayerMap, 10000, 1, dave, false )  -- stop forcing in 10 seconds&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>Brandon1171999</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementData&amp;diff=33840</id>
		<title>SetElementData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementData&amp;diff=33840"/>
		<updated>2012-10-26T01:53:52Z</updated>

		<summary type="html">&lt;p&gt;Brandon1171999: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function stores [[element data]] under a certain key, attached to an element. Element data set using this is then synced with all clients or the server. As such you should avoid passing data that is not able to be synced into this function (i.e. xmlnodes, acls, aclgroups etc.) Server-created elements are able to be synced.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setElementData ( element theElement, string key, var value [, bool synchronize = true ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The [[element]] you wish to attach the data to.&lt;br /&gt;
*'''key:''' The key you wish to store the data under. (Maximum 31 characters.) &lt;br /&gt;
*'''value:''' The value you wish to store. See [[element data]] for a list of acceptable datatypes.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
*'''synchronize:''' Determines whether or not the data will be synchronized with the server (client-side variation) and remote clients (both variations).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the data was set succesfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example allows a player to add a custom tag onto their nickname, and also reverts it back to normal if they wish.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function addPlayerCustomTag ( thePlayer, command, newTag )&lt;br /&gt;
	--Let's make sure the newTag param has been entered...&lt;br /&gt;
	if ( newTag ) then&lt;br /&gt;
		--Grab their current playername for saving.&lt;br /&gt;
		local sPlayerNickname = getPlayerName ( thePlayer )&lt;br /&gt;
		--Create their new nickname with their tag&lt;br /&gt;
		local sNewPlayerNickname = newTag .. &amp;quot; &amp;quot; .. sPlayerNickname&lt;br /&gt;
		&lt;br /&gt;
		--Let's first load the element data, see if it's there already&lt;br /&gt;
		--The reason for this is that if a player were to do /addtag twice,&lt;br /&gt;
		--the tag would be prepended a second time&lt;br /&gt;
		local sOldNick = getElementData( thePlayer, &amp;quot;tempdata.originalnick&amp;quot; )&lt;br /&gt;
		if ( sOldNick == false ) then&lt;br /&gt;
			--Save their orignal nickname in their element data&lt;br /&gt;
			setElementData ( thePlayer, &amp;quot;tempdata.originalnick&amp;quot;, sPlayerNickname )&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		--Set their new nickname globally&lt;br /&gt;
		setPlayerName ( thePlayer, sNewPlayerNickname )&lt;br /&gt;
		&lt;br /&gt;
		--Tell them it's done&lt;br /&gt;
		outputChatBox ( &amp;quot;Your new nickname has been set, to put it back to its original state you can use /deltag&amp;quot;, thePlayer )&lt;br /&gt;
	else&lt;br /&gt;
		--The newTag param was not entered, give an error message&lt;br /&gt;
		outputChatBox ( &amp;quot;/addtag - Incorrect syntax, Correct: /addtag &amp;lt;newtag&amp;gt;&amp;quot;, thePlayer )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;addtag&amp;quot;, addPlayerCustomTag )&lt;br /&gt;
&lt;br /&gt;
function removePlayerCustomTag ( thePlayer, command )&lt;br /&gt;
	--We first need to check that they have already used /addtag, let's do that now&lt;br /&gt;
	local sOldNick = getElementData( thePlayer, &amp;quot;tempdata.originalnick&amp;quot; )&lt;br /&gt;
	if ( sOldNick ) then&lt;br /&gt;
		--Great, they have a tag added, let's reset them&lt;br /&gt;
		&lt;br /&gt;
		--First we will want to reset the element data back to its default (that being false)&lt;br /&gt;
		setElementData ( thePlayer, &amp;quot;tempdata.originalnick&amp;quot;, false )&lt;br /&gt;
		&lt;br /&gt;
		--Now set the client name back&lt;br /&gt;
		setClientName ( thePlayer, sOldNick )&lt;br /&gt;
		&lt;br /&gt;
		--Notify them&lt;br /&gt;
		outputChatBox ( &amp;quot;Your old nickname has been set&amp;quot;, thePlayer )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;deltag&amp;quot;, removePlayerCustomTag )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>Brandon1171999</name></author>
	</entry>
</feed>