<?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=Tony</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=Tony"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Tony"/>
	<updated>2026-04-30T01:31:41Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerSerial&amp;diff=33725</id>
		<title>GetPlayerSerial</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerSerial&amp;diff=33725"/>
		<updated>2012-10-08T15:48:23Z</updated>

		<summary type="html">&lt;p&gt;Tony: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function returns the [[serial]] for a specified [[player]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPlayerSerial ( player thePlayer )&lt;br /&gt;
&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;
&amp;lt;/section&amp;gt;&lt;br /&gt;
{{New feature|3.0110|1.1|&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPlayerSerial ( )&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;
==Returns==&lt;br /&gt;
Returns the serial as a ''string'' if it was found, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 1&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example creates a command with which player can check their own serial.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkMySerial( thePlayer, command )&lt;br /&gt;
    local theSerial = getPlayerSerial( thePlayer )&lt;br /&gt;
    if theSerial then&lt;br /&gt;
        outputChatBox( &amp;quot;Your serial is: &amp;quot; .. theSerial, thePlayer )&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox( &amp;quot;Sorry, you have no serial. =(&amp;quot;, thePlayer )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;myserial&amp;quot;, checkMySerial )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 2&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example add command to ban player serial.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function banSerial( source, command, noob, reason )&lt;br /&gt;
   if ( noob ) then&lt;br /&gt;
      local theNoob = getPlayerFromName( noob )&lt;br /&gt;
      local theNoobSerial = getPlayerSerial( theNoob )&lt;br /&gt;
      if ( theNoob ) then&lt;br /&gt;
         addBan( theNoobSerial, source, reason )&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;banserial&amp;quot;, banSerial )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 3&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example add command to get client's serial.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getMySerial( )&lt;br /&gt;
      local theSerial = getPlayerSerial()&lt;br /&gt;
      outputChatBox(&amp;quot;Your serial is: &amp;quot;..tostring(theSerial))&lt;br /&gt;
     end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;myserial&amp;quot;, getMySerial )&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;
{{Serial functions}}&lt;/div&gt;</summary>
		<author><name>Tony</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerSerial&amp;diff=33724</id>
		<title>GetPlayerSerial</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerSerial&amp;diff=33724"/>
		<updated>2012-10-08T15:48:06Z</updated>

		<summary type="html">&lt;p&gt;Tony: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function returns the [[serial]] for a specified [[player]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPlayerSerial ( player thePlayer )&lt;br /&gt;
&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;
&amp;lt;/section&amp;gt;&lt;br /&gt;
{{New feature|3.0110|1.1|&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPlayerSerial ( )&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;
==Returns==&lt;br /&gt;
Returns the serial as a ''string'' if it was found, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 1&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example creates a command with which player can check their own serial.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkMySerial( thePlayer, command )&lt;br /&gt;
    local theSerial = getPlayerSerial( thePlayer )&lt;br /&gt;
    if theSerial then&lt;br /&gt;
        outputChatBox( &amp;quot;Your serial is: &amp;quot; .. theSerial, thePlayer )&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox( &amp;quot;Sorry, you have no serial. =(&amp;quot;, thePlayer )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;myserial&amp;quot;, checkMySerial )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 2&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example add command to ban player serial.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function banSerial( source, command, noob, reason )&lt;br /&gt;
   if ( noob ) then&lt;br /&gt;
      local theNoob = getPlayerFromName( noob )&lt;br /&gt;
      local theNoobSerial = getPlayerSerial( theNoob )&lt;br /&gt;
      if ( theNoob ) then&lt;br /&gt;
         addBan( theNoobSerial, source, reason )&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;banserial&amp;quot;, banSerial )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 3&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example add command to get client's serial.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getMySerial( )&lt;br /&gt;
      local theSerial = getPlayerSerial()&lt;br /&gt;
      outputChatBox(&amp;quot;Your serial is: &amp;quot;..tostring(theSerial))&lt;br /&gt;
     end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;serial&amp;quot;, getMySerial )&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;
{{Serial functions}}&lt;/div&gt;</summary>
		<author><name>Tony</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGetStatus&amp;diff=32412</id>
		<title>DxGetStatus</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGetStatus&amp;diff=32412"/>
		<updated>2012-08-20T13:57:29Z</updated>

		<summary type="html">&lt;p&gt;Tony: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets information about various internal datum&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table dxGetStatus ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table with the following entries:&lt;br /&gt;
* '''TestMode :''' The current dx test mode. See [[dxSetTestMode]].&lt;br /&gt;
*'''VideoCardName :''' The name of the graphics card.&lt;br /&gt;
*'''VideoCardRAM :''' The installed memory in MB of the graphics card.&lt;br /&gt;
*'''VideoCardPSVersion :''' The maximum pixel shader version of the graphics card.&lt;br /&gt;
*'''VideoMemoryFreeForMTA :''' The amount of memory in MB available for MTA to use. '''When this gets to zero, [[guiCreateFont]], [[dxCreateFont]] and [[dxCreateRenderTarget]] will fail.'''&lt;br /&gt;
*'''VideoMemoryUsedByFonts :''' The amount of graphic memory in MB used by custom fonts.&lt;br /&gt;
*'''VideoMemoryUsedByTextures :''' The amount of graphic memory in MB used by textures.&lt;br /&gt;
*'''VideoMemoryUsedByRenderTargets :''' The amount of graphic memory in MB used by render targets.&lt;br /&gt;
*'''SettingWindowed :''' The windowed setting. (true/false)&lt;br /&gt;
*'''SettingFXQuality :''' The FX Quality. (0-3)&lt;br /&gt;
*'''SettingDrawDistance :''' The draw distance setting. (0-100)&lt;br /&gt;
*'''SettingVolumetricShadows :''' The volumetric shadows setting. (true/false)&lt;br /&gt;
*'''SettingStreamingVideoMemoryForGTA :''' The usable graphics memory setting. (50-4000)&lt;br /&gt;
*'''AllowScreenUpload :''' The allows screen uploads setting. (true/false)&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getinfo&amp;quot;,function()&lt;br /&gt;
    local info=dxGetStatus()&lt;br /&gt;
    for k,v in pairs(info) do&lt;br /&gt;
        outputChatBox(k..&amp;quot; : &amp;quot;..tostring(v),root,255,0,0,true)&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;
{{Drawing_functions}}&lt;/div&gt;</summary>
		<author><name>Tony</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehicleWheelStates&amp;diff=32306</id>
		<title>SetVehicleWheelStates</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleWheelStates&amp;diff=32306"/>
		<updated>2012-08-13T21:43:42Z</updated>

		<summary type="html">&lt;p&gt;Tony: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function sets the state of wheels on the vehicle.&lt;br /&gt;
&lt;br /&gt;
Internally, no vehicles have more than 4 wheels. If they appear to, they will be duplicating other wheels.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setVehicleWheelStates ( vehicle theVehicle, int frontLeft, [ int rearLeft = -1, int frontRight = -1, int rearRight = -1 ])&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''theVehicle:''' A handle to the [[vehicle]] that you wish to change the wheel states of.&lt;br /&gt;
*'''frontLeft:''' A whole number representing the wheel state (-1 for no change)&lt;br /&gt;
&lt;br /&gt;
==Optional Arguments==&lt;br /&gt;
*'''rearLeft:''' A whole number representing the wheel state (-1 for no change)&lt;br /&gt;
*'''frontRight:''' A whole number representing the wheel state (-1 for no change)&lt;br /&gt;
*'''rearRight:''' A whole number representing the wheel state (-1 for no change)&lt;br /&gt;
&lt;br /&gt;
==Wheel-State values==&lt;br /&gt;
* '''0:''' Inflated&lt;br /&gt;
* '''1:''' Flat&lt;br /&gt;
* '''2:''' Fallen off&lt;br /&gt;
* '''3:''' Collisionless&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns a boolean value ''true'' or ''false'' that tells you if it was successful or not.&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 displays the states of the vehicle's wheels and changes their states if any arguments were passed.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function scriptWheelStates ( thePlayer, command, newFLeft, newRLeft, newFRight, newRRight )&lt;br /&gt;
    local theVehicle = getPedOccupiedVehicle ( thePlayer )&lt;br /&gt;
    if ( theVehicle ) then      -- check if the player is in a car&lt;br /&gt;
        if ( newFLeft ) then    -- if there's at least one argument passed, we change the wheel states&lt;br /&gt;
            if not setVehicleWheelStates ( theVehicle, newFLeft, newRLeft, newFRight, newRRight ) then&lt;br /&gt;
                outputChatBox ( &amp;quot;Bad arguments.&amp;quot; )&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
        local states = { [0]=&amp;quot;inflated&amp;quot;, [1]=&amp;quot;flat&amp;quot;, [2]=&amp;quot;fallen off&amp;quot; }    -- we store the states in a table&lt;br /&gt;
        local frontLeft, rearLeft, frontRight, rearRight = getVehicleWheelStates ( theVehicle )&lt;br /&gt;
        outputChatBox ( &amp;quot;Your vehicle's wheel states:&amp;quot;, thePlayer )        -- output them in the chatbox&lt;br /&gt;
        outputChatBox ( &amp;quot;Front-Left: &amp;quot; .. states [ frontLeft ] .. &amp;quot;, Front-Right: &amp;quot; .. states [ frontRight ] ..&lt;br /&gt;
           &amp;quot;, Rear-Left: &amp;quot; .. states [ rearLeft ] .. &amp;quot;, Rear-Right: &amp;quot; .. states [ rearRight ], thePlayer )&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox ( &amp;quot;You have to be in a vehicle to use this command.&amp;quot;, thePlayer )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;wheelstates&amp;quot;, scriptWheelStates )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>Tony</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerMuted&amp;diff=32058</id>
		<title>SetPlayerMuted</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerMuted&amp;diff=32058"/>
		<updated>2012-07-31T22:06:24Z</updated>

		<summary type="html">&lt;p&gt;Tony: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
Use this function to mute or unmute the player.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setPlayerMuted ( player thePlayer, bool state )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer:''' The [[player]] you are muting or unmuting.&lt;br /&gt;
*'''state:''' Use '''true''' to mute and '''false''' to unmute the player.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player was successfully muted or unmuted, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This adds a /mute command that can be used to mute a player.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- create the function&lt;br /&gt;
function mutePlayer(player,command,victimName)&lt;br /&gt;
	-- if the player has specified a victim name to mute&lt;br /&gt;
	if victimName then&lt;br /&gt;
		-- get the victim player element from their name&lt;br /&gt;
		local victim = getPlayerFromName(victimName)&lt;br /&gt;
		-- if the player exists&lt;br /&gt;
		if victim then&lt;br /&gt;
			-- if they arent already muted&lt;br /&gt;
			if ( not isPlayerMuted(victim) ) then&lt;br /&gt;
				-- mute them and output a message to the chat&lt;br /&gt;
				setPlayerMuted(victim, true)&lt;br /&gt;
				outputChatBox(&amp;quot;You have been muted.&amp;quot;,victim)&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			outputChatBox(&amp;quot;Could not find player with name: &amp;quot;..tostring(victimName),player)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;Usage: /mute &amp;lt;player name&amp;gt;&amp;quot;,player)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
-- add the /mute command&lt;br /&gt;
addCommandHandler(&amp;quot;mute&amp;quot;,mutePlayer)&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>Tony</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateRadarArea&amp;diff=31981</id>
		<title>CreateRadarArea</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateRadarArea&amp;diff=31981"/>
		<updated>2012-07-23T18:25:36Z</updated>

		<summary type="html">&lt;p&gt;Tony: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function can be used to create custom radar areas on the radar.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
radararea createRadarArea ( float leftX, float bottomY, float sizeX, float sizeY,&lt;br /&gt;
                          [ int r = 255, int g = 0, int b = 0, int a = 255,&lt;br /&gt;
                            element visibleTo = getRootElement() ] )             &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''leftX:''' A float representing the left 'x' position of the radar area.&lt;br /&gt;
*'''bottomY:''' A float representing the bottom 'y' position of the radar area.&lt;br /&gt;
*'''sizeX:''' A float representing the width of the radar area.&lt;br /&gt;
*'''sizeY:''' A float representing the height of the radar area.&lt;br /&gt;
&lt;br /&gt;
*'''r:''' An integer representing the amount of red in the color.  Maximum value is 255&lt;br /&gt;
*'''g:''' An integer representing the amount of green in the color.  Maximum value is 255&lt;br /&gt;
*'''b:''' An integer representing the amount of blue in the color.  Maximum value is 255&lt;br /&gt;
*'''a:''' An integer representing the amount of alpha in the color.  This allows setting the transparency of the radar area.  255 is opaque and 0 is transparent.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''visibleTo:''' An [[element]] that you wish to restrict the [[visibility]] of the radar area to. (Server function only)&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 creates a radar area for the King of the hill script, and a colsquare. When the player enters the radar area it flashes, and stops flashing when a player leaves it.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- create our hill area for our gamemode&lt;br /&gt;
local hillArea = createColRectangle ( -2171.0678710938, 678.17950439453, 15, 15 )&lt;br /&gt;
local hillRadar = createRadarArea ( -2183.5678710938, 705.67950439453, 40, -40, 0, 255, 0, 175 )&lt;br /&gt;
&lt;br /&gt;
-- add hill_Enter as a handler for when a player enters the hill area&lt;br /&gt;
function hill_Enter ( thePlayer, matchingDimension )&lt;br /&gt;
        -- announce to everyone that the player entered the hill&lt;br /&gt;
        if (getElementType(thePlayer) == &amp;quot;player&amp;quot;) then&lt;br /&gt;
                outputChatBox( getPlayerName(thePlayer) .. &amp;quot; entered the zone!&amp;quot;, getRootElement(), 255, 255, 109 )&lt;br /&gt;
                setRadarAreaFlashing ( hillRadar, true )&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onColShapeHit&amp;quot;, hillArea, hill_Enter )&lt;br /&gt;
&lt;br /&gt;
-- add hill_Enter as a handler for when a player leaves the hill area&lt;br /&gt;
function hill_Exit ( thePlayer, matchingDimension )&lt;br /&gt;
        -- check if the player is not dead&lt;br /&gt;
        if (getElementType(thePlayer) == &amp;quot;player&amp;quot;) then&lt;br /&gt;
                if isPedDead ( thePlayer ) ~= true then&lt;br /&gt;
                        -- if he was alive, announce to everyone that the player has left the hill&lt;br /&gt;
                        outputChatBox ( getPlayerName(thePlayer) .. &amp;quot; left the zone!&amp;quot;, getRootElement(), 255, 255, 109 )&lt;br /&gt;
                        setRadarAreaFlashing ( hillRadar, false )&lt;br /&gt;
                end&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onColShapeLeave&amp;quot;, hillArea, hill_Exit )&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;
{{Radar area_functions}}&lt;/div&gt;</summary>
		<author><name>Tony</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountName&amp;diff=31554</id>
		<title>GetAccountName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountName&amp;diff=31554"/>
		<updated>2012-06-21T23:31:23Z</updated>

		<summary type="html">&lt;p&gt;Tony: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function retrieves the name of an account.&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 getAccountName ( account theAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to get the name of&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string containing the account's name, ''false'' if the account does not exist or an invalid argument was passed to the function.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example announces into the console when a player logs into his account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function outputOnLogin ( previous_account, current_account, auto_login ) --when a player logs in&lt;br /&gt;
	outputConsole(getAccountName(previous_account)..&amp;quot; Logged into &amp;quot;..getAccountName(current_account)) -- announce it into chatbox&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;,getRootElement(),outputOnLogin ) --add an event handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[es:getAccountName]]&lt;/div&gt;</summary>
		<author><name>Tony</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FxAddGunshot&amp;diff=31347</id>
		<title>FxAddGunshot</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FxAddGunshot&amp;diff=31347"/>
		<updated>2012-06-09T00:51:59Z</updated>

		<summary type="html">&lt;p&gt;Tony: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Fxgunshot.png|thumb|200px|Gunshot]]&lt;br /&gt;
This function creates a gunshot particle effect.&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 fxAddGunshot ( float posX, float posY, float posZ, float dirX, float dirY, float dirZ, [bool includeSparks=true] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''posX, posY, posZ:''' the world coordinates where the effect originates.&lt;br /&gt;
*'''dirX, dirY, dirZ:''' a direction vector indicating where the bullet is fired.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
* '''includeSparks:''' A bool representing whether the particle effect will generate sparks.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a true if the operation was 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 adds a sparks in front of your face.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;sshot&amp;quot;, function()&lt;br /&gt;
    local x, y, z = getElementPosition(localPlayer)&lt;br /&gt;
    fxAddGunshot(x, y+0.5, z+0.5, 0, 0, 0, true)&lt;br /&gt;
end)&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;
{{Client Effects functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Tony</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FxAddGunshot&amp;diff=31346</id>
		<title>FxAddGunshot</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FxAddGunshot&amp;diff=31346"/>
		<updated>2012-06-09T00:49:55Z</updated>

		<summary type="html">&lt;p&gt;Tony: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Fxgunshot.png|thumb|200px|Gunshot]]&lt;br /&gt;
This function creates a gunshot particle effect.&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 fxAddGunshot ( float posX, float posY, float posZ, float dirX, float dirY, float dirZ, [bool includeSparks=true] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''posX, posY, posZ:''' the world coordinates where the effect originates.&lt;br /&gt;
*'''dirX, dirY, dirZ:''' a direction vector indicating where the bullet is fired.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
* '''includeSparks:''' A bool representing whether the particle effect will generate sparks.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a true if the operation was successful, false otherwise. &lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example adds a sparks in front of your face&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;fshot&amp;quot;, function()&lt;br /&gt;
    local x, y, z = getElementPosition(localPlayer)&lt;br /&gt;
    fxAddGunshot(x, y+0.5, z+0.5, 0, 0, 0, true)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client Effects functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Tony</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FxAddGunshot&amp;diff=31345</id>
		<title>FxAddGunshot</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FxAddGunshot&amp;diff=31345"/>
		<updated>2012-06-09T00:48:33Z</updated>

		<summary type="html">&lt;p&gt;Tony: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Fxgunshot.png|thumb|200px|Gunshot]]&lt;br /&gt;
This function creates a gunshot particle effect.&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 fxAddGunshot ( float posX, float posY, float posZ, float dirX, float dirY, float dirZ, [bool includeSparks=true] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''posX, posY, posZ:''' the world coordinates where the effect originates.&lt;br /&gt;
*'''dirX, dirY, dirZ:''' a direction vector indicating where the bullet is fired.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
* '''includeSparks:''' A bool representing whether the particle effect will generate sparks.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a true if the operation was successful, false otherwise. &lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This page lacks an example&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;fshot&amp;quot;, function()&lt;br /&gt;
    local x, y, z = getElementPosition(localPlayer)&lt;br /&gt;
    fxAddGunshot(x, y+0.5, z+0.5, 0, 0, 0, true)&lt;br /&gt;
end)[/lua]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client Effects functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Tony</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxSetBlendMode&amp;diff=29974</id>
		<title>DxSetBlendMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxSetBlendMode&amp;diff=29974"/>
		<updated>2012-04-17T00:26:38Z</updated>

		<summary type="html">&lt;p&gt;Tony: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the current blend mode for the dxDraw functions. Changing the blend mode can increase the quality when drawing text or certain other images to a render target. As a general guide use '''modulate_add''' when drawing text to a render target, and '''add''' when drawing the render target to the screen. Don't forget to restore the default '''blend''' at the end.&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 dxSetBlendMode( string blendMode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''blendMode :''' The blend mode to use which can be one of:&lt;br /&gt;
**'''blend:''' The source textures are alpha blended to the screen/render target. The is the default mode for drawing and gives the results we all know and love.&lt;br /&gt;
**'''add:''' The source textures are added to the screen/render target.&lt;br /&gt;
**'''modulate_add:''' The source textures are multiplied by the alpha and then added to the screen/render target.&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns true if successful, or ''false'' if invalid arguments were passed to the function.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.3.0-9.03782|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Tony</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Tony&amp;diff=29971</id>
		<title>User:Tony</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Tony&amp;diff=29971"/>
		<updated>2012-04-17T00:07:32Z</updated>

		<summary type="html">&lt;p&gt;Tony: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Tony ==&lt;br /&gt;
&lt;br /&gt;
I'm Tony and I don't have nothing to put here ;)&lt;/div&gt;</summary>
		<author><name>Tony</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Tony&amp;diff=29970</id>
		<title>User:Tony</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Tony&amp;diff=29970"/>
		<updated>2012-04-17T00:02:38Z</updated>

		<summary type="html">&lt;p&gt;Tony: Created page with &amp;quot;basadsdaasd&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;basadsdaasd&lt;/div&gt;</summary>
		<author><name>Tony</name></author>
	</entry>
</feed>