<?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=BrophY</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=BrophY"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/BrophY"/>
	<updated>2026-05-17T19:53:39Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateColPolygon&amp;diff=18056</id>
		<title>CreateColPolygon</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateColPolygon&amp;diff=18056"/>
		<updated>2008-12-30T14:20:30Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function creates a collision polygon. See [http://en.wikipedia.org/wiki/Polygon Wikipedia] for a definition of a polygon. The first set of X Y of this shape is not part of the colshape bounds, so can set anywhere in the game world, however for performance, place it somewhere within the polygon. It should be noted this shape is '''2D'''. There should be at least 3 bound points set. &lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
colshape createColPolygon ( float fX, float fY, float fX1, float fY1, float fX2, float fY2, float fX3, float fY3, ... )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''fX:''' The X position of the collision polygon's dummy point&lt;br /&gt;
*'''fY:''' The Y position of the collision polygon's dummy point&lt;br /&gt;
*'''fX1:''' The 1st X position of the collision polygon's bound point&lt;br /&gt;
*'''fY1:''' The 1st Y position of the collision polygon's bound point&lt;br /&gt;
*'''fX2:''' The 2nd X position of the collision polygon's bound point&lt;br /&gt;
*'''fY2:''' The 2nd Y position of the collision polygon's bound point&lt;br /&gt;
*'''fX3:''' The 3rd X position of the collision polygon's bound point&lt;br /&gt;
*'''fY3:''' The 3rd Y position of the collision polygon's bound point&lt;br /&gt;
*'''...''' From the 3rd position you can have as many points as you require to create the colshape.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[colshape]] element if successful, ''false'' if invalid arguments were passed to the function.&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;--To Do.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&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;--To Do.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Collision shape functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Collision_shape_functions&amp;diff=18055</id>
		<title>Template:Collision shape functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Collision_shape_functions&amp;diff=18055"/>
		<updated>2008-12-29T18:10:10Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[createColCircle]]&lt;br /&gt;
&lt;br /&gt;
*[[createColCuboid]]&lt;br /&gt;
&lt;br /&gt;
*[[createColSphere]]&lt;br /&gt;
&lt;br /&gt;
*[[createColRectangle]]&lt;br /&gt;
&lt;br /&gt;
*[[createColTube]]&lt;br /&gt;
&lt;br /&gt;
*[[createColPolygon]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateColPolygon&amp;diff=18054</id>
		<title>CreateColPolygon</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateColPolygon&amp;diff=18054"/>
		<updated>2008-12-29T18:08:35Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function creates a collision polygon. See [http://en.wikipedia.org/wiki/Polygon Wikipedia] for a definition of a polygon. The first set of X Y of this shape is not part of the colshape bounds, so can set anywhere in the game world, however for performance, place it somewhere within the polygon. It should be noted this shape is '''2D'''. There should be at least 3 bound points set. &lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
colshape createColPolygon ( float fX, float fY, float fX1, float fX2, float fX3, ... )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''fX:''' The X position of the collision polygon's dummy point&lt;br /&gt;
*'''fY:''' The Y position of the collision polygon's dummy point&lt;br /&gt;
*'''fX1:''' The 1st position of the collision polygon's bound point&lt;br /&gt;
*'''fX2:''' The 2st position of the collision polygon's bound point&lt;br /&gt;
*'''fX3:''' The 3st position of the collision polygon's bound point&lt;br /&gt;
*'''...''' From the 3rd position you can have as many points as you require to create the colshape.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[colshape]] element if successful, ''false'' if invalid arguments were passed to the function.&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;--To Do.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&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;--To Do.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Collision shape functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateColPolygon&amp;diff=18053</id>
		<title>CreateColPolygon</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateColPolygon&amp;diff=18053"/>
		<updated>2008-12-29T18:07:56Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function creates a collision polygon. See [http://en.wikipedia.org/wiki/Polygon Wikipedia] for a definition of a polygon. The first set of X Y of this shape is not part of the colshape bounds, so can set anywhere in the game world, however for performance, place it somewhere within the polygon. It should be noted this shape is '''2D'''. There should be at least 3 bound points set. &lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
colshape createColPolygon ( float fX, float fY, float fX1, float fX2, float fX3, ... )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''fX:''' The X position of the collision polygon's dummy point&lt;br /&gt;
*'''fY:''' The Y position of the collision polygon's dummy point&lt;br /&gt;
*'''fX1:''' The 1st position of the collision polygon's bound point&lt;br /&gt;
*'''fX2:''' The 2st position of the collision polygon's bound point&lt;br /&gt;
*'''fX3:''' The 3st position of the collision polygon's bound point&lt;br /&gt;
*'''...''' From the 3rd position you can have as many points as you require to create the colshape.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[colshape]] element if successful, ''false'' if invalid arguments were passed to the function.&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lang=&amp;quot;lua&amp;quot;&amp;gt;--To Do.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&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; lang=&amp;quot;lua&amp;quot;&amp;gt;--To Do.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Collision shape functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateColPolygon&amp;diff=18052</id>
		<title>CreateColPolygon</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateColPolygon&amp;diff=18052"/>
		<updated>2008-12-29T18:06:30Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function creates a collision polygon. See [http://en.wikipedia.org/wiki/Polygon Wikipedia] for a definition of a polygon. The first set of X Y of this shape is not part of the colshape bounds, so can set anywhere in the game world, however for performance, place it somewhere within the polygon. It should be noted this shape is '''2D'''. There should be at least 3 bound points set. &lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
colshape createColPolygon ( float fX, float fY, float fX1, float fX2, float fX3, ... )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''fX:''' The X position of the collision polygon's dummy point&lt;br /&gt;
*'''fY:''' The Y position of the collision polygon's dummy point&lt;br /&gt;
*'''fX1:''' The 1st position of the collision polygon's bound point&lt;br /&gt;
*'''fX2:''' The 2st position of the collision polygon's bound point&lt;br /&gt;
*'''fX3:''' The 3st position of the collision polygon's bound point&lt;br /&gt;
*'''...''' From the 3rd position you can have as many points as you require to create the colshape.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[colshape]] element if successful, ''false'' if invalid arguments were passed to the function.&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;
To Do.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Collision shape functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateColPolygon&amp;diff=18051</id>
		<title>CreateColPolygon</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateColPolygon&amp;diff=18051"/>
		<updated>2008-12-29T18:05:42Z</updated>

		<summary type="html">&lt;p&gt;BrophY: New page: __NOTOC__  {{Server client function}} This function creates a collision polygon. See [http://en.wikipedia.org/wiki/Polygon Wikipedia] for a definition of a polygon. The first set of X Y of...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function creates a collision polygon. See [http://en.wikipedia.org/wiki/Polygon Wikipedia] for a definition of a polygon. The first set of X Y of this shape is not part of the colshape bounds, so can set anywhere in the game world, however for performance, place it somewhere within the polygon. It should be noted this shape is '''2D'''. There should be at least 3 bound points set. &lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
colshape createColPolygon ( float fX, float fY, float fX1, float fX2, float fX3, ... )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''fX:''' The X position of the collision polygon's dummy point&lt;br /&gt;
*'''fY:''' The Y position of the collision polygon's dummy point&lt;br /&gt;
*'''fX1:''' The 1st position of the collision polygon's bound point&lt;br /&gt;
*'''fX2:''' The 2st position of the collision polygon's bound point&lt;br /&gt;
*'''fX3:''' The 3st position of the collision polygon's bound point&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[colshape]] element if successful, ''false'' if invalid arguments were passed to the function.&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;
To Do.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Collision shape functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateColCuboid&amp;diff=18050</id>
		<title>CreateColCuboid</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateColCuboid&amp;diff=18050"/>
		<updated>2008-12-29T18:05:18Z</updated>

		<summary type="html">&lt;p&gt;BrophY: Edited wrong page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function creates a collision cuboid. This is a shape that has a position, width, depth and height. See [http://en.wikipedia.org/wiki/Cuboid Wikipedia] for a definition of a cuboid. The XYZ of the col starts at the southwest bottom corner of the shape.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
colshape createColCuboid ( float fX, float fY, float fZ, float fWidth, float fDepth, float fHeight )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''fX:''' The X position of the collision cuboid's western side&lt;br /&gt;
*'''fY:''' The Y position of the collision cuboid's southern side&lt;br /&gt;
*'''fZ:''' The Z position of the collision cuboid's lowest side&lt;br /&gt;
*'''fWidth:''' The collision cuboid's width&lt;br /&gt;
*'''fDepth:''' The collision cuboid's depth&lt;br /&gt;
*'''fHeight:''' The collision cuboid's height&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[colshape]] element if successful, ''false'' if invalid arguments were passed to the function.&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 a chat message when a player enters the colshape and allows the colshape to be created using a console function ''set_zone''.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
theZone = false&lt;br /&gt;
&lt;br /&gt;
function shapeHit ( thePlayer ) &lt;br /&gt;
    outputChatBox ( getClientName ( thePlayer ) .. &amp;quot; is in the zone!&amp;quot; )  -- display a message in everyone's chat box&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function setZone ( playerSource, commandName, fX, fY, fZ )&lt;br /&gt;
    if ( fZ and fY and fX ) then                                         -- check we've got all 3 args we need&lt;br /&gt;
        local tempCol = createColCuboid ( fX, fY, fZ, 10.0, 10.0, 10.0 )   -- create a col&lt;br /&gt;
        if ( tempCol == false ) then                                     -- did the col get created successfully?&lt;br /&gt;
            outputConsole ( &amp;quot;Syntax is: set_zone &amp;lt;X&amp;gt; &amp;lt;Y&amp;gt; &amp;lt;Z&amp;gt;&amp;quot; )          -- inform the user what the valid syntax is&lt;br /&gt;
        else&lt;br /&gt;
            if ( theZone ~= false ) then                                 -- did we already have a zone?&lt;br /&gt;
                destroyElement ( theZone )                               -- if so, destroy it&lt;br /&gt;
            else&lt;br /&gt;
                addEventHandler ( &amp;quot;onColShapeHit&amp;quot;, theZone, shapeHit )   -- add a handler for the onColShapeHit event&lt;br /&gt;
            end&lt;br /&gt;
            theZone = tempCol                                            -- store the new zone we've made&lt;br /&gt;
            outputChatBox ( &amp;quot;Zone has moved!&amp;quot; )                          -- and tell everyone&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;set_zone&amp;quot;, setZone ) -- add a console function called set_zone that will trigger the function setZone&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;
{{Collision shape functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateColCuboid&amp;diff=18049</id>
		<title>CreateColCuboid</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateColCuboid&amp;diff=18049"/>
		<updated>2008-12-29T18:04:08Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function creates a collision polygon. See [http://en.wikipedia.org/wiki/Polygon Wikipedia] for a definition of a polygon. The first set of X Y of this shape is not part of the colshape bounds, so can set anywhere in the game world, however for performance, place it somewhere within the polygon. It should be noted this shape is '''2D'''. There should be at least 3 bound points set. &lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
colshape createColPolygon ( float fX, float fY, float fX1, float fX2, float fX3, ... )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''fX:''' The X position of the collision polygon's dummy point&lt;br /&gt;
*'''fY:''' The Y position of the collision polygon's dummy point&lt;br /&gt;
*'''fX1:''' The 1st position of the collision polygon's bound point&lt;br /&gt;
*'''fX2:''' The 2st position of the collision polygon's bound point&lt;br /&gt;
*'''fX3:''' The 3st position of the collision polygon's bound point&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[colshape]] element if successful, ''false'' if invalid arguments were passed to the function.&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;
To Do.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Collision shape functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateColCuboid&amp;diff=18048</id>
		<title>CreateColCuboid</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateColCuboid&amp;diff=18048"/>
		<updated>2008-12-29T18:04:00Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function creates a collision polygon. See [http://en.wikipedia.org/wiki/Polygon Wikipedia] for a definition of a polygon. The first set of X Y of this shape is not part of the colshape bounds, so can set anywhere in the game world, however for performance, place it somewhere within the polygon. It should be noted this shape is '''2D'''. There should be at least 3+ bound points set. &lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
colshape createColPolygon ( float fX, float fY, float fX1, float fX2, float fX3, ... )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''fX:''' The X position of the collision polygon's dummy point&lt;br /&gt;
*'''fY:''' The Y position of the collision polygon's dummy point&lt;br /&gt;
*'''fX1:''' The 1st position of the collision polygon's bound point&lt;br /&gt;
*'''fX2:''' The 2st position of the collision polygon's bound point&lt;br /&gt;
*'''fX3:''' The 3st position of the collision polygon's bound point&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[colshape]] element if successful, ''false'' if invalid arguments were passed to the function.&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;
To Do.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Collision shape functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateColCuboid&amp;diff=18047</id>
		<title>CreateColCuboid</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateColCuboid&amp;diff=18047"/>
		<updated>2008-12-29T18:03:37Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function creates a collision polygon. See [http://en.wikipedia.org/wiki/Polygon Wikipedia] for a definition of a polygon. The first set of X Y of this shape is not part of the colshape bounds, so can set anywhere in the game world, however for performance, place it somewhere within the polygon. It should be noted this shape is '''2D'''. You should be at least 3+ bound points set. &lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
colshape createColPolygon ( float fX, float fY, float fX1, float fX2, float fX3, ... )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''fX:''' The X position of the collision polygon's dummy point&lt;br /&gt;
*'''fY:''' The Y position of the collision polygon's dummy point&lt;br /&gt;
*'''fX1:''' The 1st position of the collision polygon's bound point&lt;br /&gt;
*'''fX2:''' The 2st position of the collision polygon's bound point&lt;br /&gt;
*'''fX3:''' The 3st position of the collision polygon's bound point&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[colshape]] element if successful, ''false'' if invalid arguments were passed to the function.&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;
To Do.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Collision shape functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientGUIClick&amp;diff=17713</id>
		<title>OnClientGUIClick</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientGUIClick&amp;diff=17713"/>
		<updated>2008-09-21T11:32:01Z</updated>

		<summary type="html">&lt;p&gt;BrophY: Undo revision 17712 by BrophY (Talk) Oops, wrong page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Needs Checking|''middle'' button does not trigger this event.--[[User:50pence|50pence]] 12:19, 19 May 2008 (CDT)}}&lt;br /&gt;
This event is fired when the user clicks a GUI element.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string button, string state, int absoluteX, int absoluteY&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''button:''' the name of the mouse button that the GUI element was clicked with, can be ''left'', ''right'', or ''middle''.&lt;br /&gt;
*'''state:''' the state of the mouse button, will be ''down'' if the mouse button was pushed, or ''up'' if it was released.&lt;br /&gt;
*'''absoluteX:''' the X position of the mouse cursor, in pixels, measured from the left side of the screen.&lt;br /&gt;
*'''absoluteY:''' the Y position of the mouse cursor, in pixels, measured from the top of the screen.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the GUI element that was clicked.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates an edit box alongside an &amp;quot;Output!&amp;quot; button. When the button is clicked with the left mouse button, it will output the message in the edit box into the Chat Box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- when client's resource start, create the gui&lt;br /&gt;
function initGUI( )&lt;br /&gt;
    --create our button&lt;br /&gt;
    btnOutput = guiCreateButton( 0.7, 0.1, 0.2, 0.1, &amp;quot;Output!&amp;quot;, true )&lt;br /&gt;
&lt;br /&gt;
    --Create an edit box and define it as &amp;quot;editBox&amp;quot;.&lt;br /&gt;
    editBox = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, &amp;quot;Type your message here!&amp;quot;, true )&lt;br /&gt;
    guiEditSetMaxLength ( editBox, 128 ) --the max chatbox length is 128, so force this&lt;br /&gt;
end&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement( getThisResource( ) ), initGUI )&lt;br /&gt;
&lt;br /&gt;
--setup our function to output the message to the chatbox&lt;br /&gt;
function outputEditBox (button)&lt;br /&gt;
    if button == &amp;quot;left&amp;quot; then&lt;br /&gt;
        local text = guiGetText ( editBox )--get the text from the edit box&lt;br /&gt;
        outputChatBox ( text ) --output that text&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
--and attach our button to the outputEditBox function&lt;br /&gt;
addEventHandler ( &amp;quot;onClientGUIClick&amp;quot;, btnOutput, outputEditBox, false )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===GUI events===&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientGUIClick&amp;diff=17712</id>
		<title>OnClientGUIClick</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientGUIClick&amp;diff=17712"/>
		<updated>2008-09-21T11:30:26Z</updated>

		<summary type="html">&lt;p&gt;BrophY: button hasnt been a 'string' for a long time, changed to element&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Needs Checking|''middle'' button does not trigger this event.--[[User:50pence|50pence]] 12:19, 19 May 2008 (CDT)}}&lt;br /&gt;
This event is fired when the user clicks a GUI element.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element button, string state, int absoluteX, int absoluteY&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''button:''' the name of the mouse button that the GUI element was clicked with, can be ''left'', ''right'', or ''middle''.&lt;br /&gt;
*'''state:''' the state of the mouse button, will be ''down'' if the mouse button was pushed, or ''up'' if it was released.&lt;br /&gt;
*'''absoluteX:''' the X position of the mouse cursor, in pixels, measured from the left side of the screen.&lt;br /&gt;
*'''absoluteY:''' the Y position of the mouse cursor, in pixels, measured from the top of the screen.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the GUI element that was clicked.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates an edit box alongside an &amp;quot;Output!&amp;quot; button. When the button is clicked with the left mouse button, it will output the message in the edit box into the Chat Box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- when client's resource start, create the gui&lt;br /&gt;
function initGUI( )&lt;br /&gt;
    --create our button&lt;br /&gt;
    btnOutput = guiCreateButton( 0.7, 0.1, 0.2, 0.1, &amp;quot;Output!&amp;quot;, true )&lt;br /&gt;
&lt;br /&gt;
    --Create an edit box and define it as &amp;quot;editBox&amp;quot;.&lt;br /&gt;
    editBox = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, &amp;quot;Type your message here!&amp;quot;, true )&lt;br /&gt;
    guiEditSetMaxLength ( editBox, 128 ) --the max chatbox length is 128, so force this&lt;br /&gt;
end&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement( getThisResource( ) ), initGUI )&lt;br /&gt;
&lt;br /&gt;
--setup our function to output the message to the chatbox&lt;br /&gt;
function outputEditBox (button)&lt;br /&gt;
    if button == &amp;quot;left&amp;quot; then&lt;br /&gt;
        local text = guiGetText ( editBox )--get the text from the edit box&lt;br /&gt;
        outputChatBox ( text ) --output that text&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
--and attach our button to the outputEditBox function&lt;br /&gt;
addEventHandler ( &amp;quot;onClientGUIClick&amp;quot;, btnOutput, outputEditBox, false )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===GUI events===&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dictionary&amp;diff=16604</id>
		<title>Dictionary</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dictionary&amp;diff=16604"/>
		<updated>2008-04-22T10:35:51Z</updated>

		<summary type="html">&lt;p&gt;BrophY: New page: Over the years MTA's community has come across some new terms and words. They are most often used in IRC and on the forums but some are also featered in the game. What follows is an alphab...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Over the years MTA's community has come across some new terms and words. They are most often used in IRC and on the forums but some are also featered in the game. What follows is an alphabetical list.&lt;br /&gt;
&amp;lt;hr /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Bitchpack (verb)&lt;br /&gt;
 Use of the lack of enter vehicle animation in MTA 0.x in order to get unlimited players into a &lt;br /&gt;
 vehicle&lt;br /&gt;
&lt;br /&gt;
* Johnline (being a ..) (noun)&lt;br /&gt;
 acting immature, using a lot of sexual related insults hoping to make you look cool/mature.&lt;br /&gt;
&lt;br /&gt;
* MAD_BOY (noun)&lt;br /&gt;
 When something is refered to as old or outdated&lt;br /&gt;
&lt;br /&gt;
* Ransom&lt;br /&gt;
 GTANet's resident bastard operator from hell&lt;br /&gt;
&lt;br /&gt;
* RIFK&lt;br /&gt;
 A common typographical error of &amp;quot;rofl&amp;quot;, has also come to be known as an acronym &lt;br /&gt;
 for &amp;quot;rolling in fucking kitchens.&amp;quot; Though first pioneered in #mta by Jani, it is most&lt;br /&gt;
 frequently used by BrophY and Johnline&lt;br /&gt;
&lt;br /&gt;
* Robpol86 (verb)/(noun)&lt;br /&gt;
 -Consistent use of mushrooms in order to grow and the ability to jump incredibly high&lt;br /&gt;
 -Also a mythical creature with a mustache of supernatural size and ability&lt;br /&gt;
&lt;br /&gt;
* YOIV&lt;br /&gt;
 -Your Opinion Is Void (aka &amp;quot;pulling a Luke&amp;quot;)&lt;br /&gt;
 -Used to discribe a situation where an admin uses his powers to force his own opinion onto &lt;br /&gt;
 a person or a group of people.&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=9041</id>
		<title>User:BrophY</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=9041"/>
		<updated>2007-07-09T08:53:12Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;IJs and ChrML fear BrophY&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Image:BatChild.jpg]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:IJs&amp;diff=8883</id>
		<title>User:IJs</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:IJs&amp;diff=8883"/>
		<updated>2007-07-04T07:22:14Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''IJs'''&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I work on various parts of MTA and the Blue platform, including the GUI, POSIX compatibility and the modifications. Also founder of the MTA project (on Feb 9, 2003).&lt;br /&gt;
&lt;br /&gt;
Self-taught programmer mainly experienced in C/C++, Basic, Java, PHP, (X)HTML, Perl, ASM. Started with batches and EXE's on MS-DOS. Worked on various projects on different hardware platforms including x86's, mobile phones, C64 and Amiga's. Also experienced in various scripting languages, OpenGL programming, reverse engineering, hardware modifications, sound engineering, composing music, mapping, graphics design, maintaining linux servers, Counter-Strike and OS research.&lt;br /&gt;
&lt;br /&gt;
[http://i128.photobucket.com/albums/p175/the_chosen_one1/Care-Room.jpg]&lt;br /&gt;
&lt;br /&gt;
I'm also scared of BrophY, but dont tell him that!&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Announce_functions&amp;diff=8854</id>
		<title>Template:Announce functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Announce_functions&amp;diff=8854"/>
		<updated>2007-07-03T10:37:38Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[setGameType]]&lt;br /&gt;
&lt;br /&gt;
*[[setMapName]]&lt;br /&gt;
&lt;br /&gt;
*[[getRuleValue]]&lt;br /&gt;
&lt;br /&gt;
*[[setRuleValue]]&lt;br /&gt;
&lt;br /&gt;
*[[removeRuleValue]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RemoveRuleValue&amp;diff=8853</id>
		<title>RemoveRuleValue</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RemoveRuleValue&amp;diff=8853"/>
		<updated>2007-07-03T10:34:49Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
This function removes a set rule value that can be viewed by server browsers.&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 removeRuleValue ( string key )              &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''key:''' The name of the rule you wish to remove&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the rule value was removed, ''false'' if it failed.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example shows how you could set a rule that shows that your script is running on the server.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
removeRuleValue ( &amp;quot;myScriptRunning&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{ASE_functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=8528</id>
		<title>User:BrophY</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=8528"/>
		<updated>2007-06-04T15:20:56Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Capture the Vehicle'''&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Also thanks to Talidan, Dragon, Ransom :)&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Tasks to be Completed:&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnScreen&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnPoints&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Teams and Weapons&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Markers&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Move everything XML side (in .map)&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 10:20, 4 June 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Vehicle Placements ( Random Locations )&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Scoreboard&amp;lt;/strike&amp;gt; ''Include/Use Scoreboard Resource'' --[[User:BrophY|BrophY]] 08:35, 12 May 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Normal Vehicle Placements&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 08:35, 12 May 2007 (CDT)&lt;br /&gt;
* Any Necessary Pickups&lt;br /&gt;
* &amp;lt;strike&amp;gt;Remove Debug stuff such as Invincible 'Vehicle'&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 11:24, 25 May 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Convert Rounds to carry on straight off the bat&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 11:24, 25 May 2007 (CDT)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
IJs and ChrML fear BrophY&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Image:BatChild.jpg]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=8342</id>
		<title>User:BrophY</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=8342"/>
		<updated>2007-05-25T16:24:30Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Capture the Vehicle'''&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Also thanks to Talidan, Dragon, Ransom :)&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Tasks to be Completed:&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnScreen&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnPoints&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Teams and Weapons&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Markers&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Vehicle Placements ( Random Locations )&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Scoreboard&amp;lt;/strike&amp;gt; ''Include/Use Scoreboard Resource'' --[[User:BrophY|BrophY]] 08:35, 12 May 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Normal Vehicle Placements&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 08:35, 12 May 2007 (CDT)&lt;br /&gt;
* Any Necessary Pickups&lt;br /&gt;
* &amp;lt;strike&amp;gt;Remove Debug stuff such as Invincible 'Vehicle'&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 11:24, 25 May 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Convert Rounds to carry on straight off the bat&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 11:24, 25 May 2007 (CDT)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
IJs and ChrML fear BrophY&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Image:BatChild.jpg]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=8341</id>
		<title>User:BrophY</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=8341"/>
		<updated>2007-05-25T16:14:57Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Capture the Vehicle'''&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Also thanks to Talidan, Dragon, Ransom :)&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Tasks to be Completed:&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnScreen&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnPoints&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Teams and Weapons&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Markers&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Vehicle Placements ( Random Locations )&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Scoreboard&amp;lt;/strike&amp;gt; ''Include/Use Scoreboard Resource'' --[[User:BrophY|BrophY]] 08:35, 12 May 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Normal Vehicle Placements&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 08:35, 12 May 2007 (CDT)&lt;br /&gt;
* Any Necessary Pickups&lt;br /&gt;
* Remove Debug stuff such as Invincible 'Vehicle'&lt;br /&gt;
* Convert Rounds to carry on straight off the bat&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
IJs and ChrML fear BrophY&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Image:BatChild.jpg]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetGameSpeed&amp;diff=8252</id>
		<title>GetGameSpeed</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetGameSpeed&amp;diff=8252"/>
		<updated>2007-05-12T13:45:58Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
==Description==&lt;br /&gt;
This function get the current game speed value&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;getGameSpeed ()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addCommandHandler ( &amp;quot;gamespeed&amp;quot;, &amp;quot;gamespeedvalue&amp;quot; )&lt;br /&gt;
function gamespeedvalue ()&lt;br /&gt;
local speed = getGameSpeed ()&lt;br /&gt;
outputChatbox ( &amp;quot;Gamespeed is currently set to &amp;quot; ..speed.. &amp;quot;&amp;quot; )&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetGameSpeed&amp;diff=8251</id>
		<title>GetGameSpeed</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetGameSpeed&amp;diff=8251"/>
		<updated>2007-05-12T13:45:40Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
==Description==&lt;br /&gt;
This function get the current game speed value&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;getGameSpeed ()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addCommandHandler ( &amp;quot;gamespeed&amp;quot;, &amp;quot;gamespeedvalue&amp;quot; )&lt;br /&gt;
function getgamespeedvalue ()&lt;br /&gt;
local speed = getGameSpeed ()&lt;br /&gt;
outputChatbox ( &amp;quot;Gamespeed is currently set to &amp;quot; ..speed.. &amp;quot;&amp;quot; )&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetGameSpeed&amp;diff=8250</id>
		<title>SetGameSpeed</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetGameSpeed&amp;diff=8250"/>
		<updated>2007-05-12T13:43:29Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
==Description==&lt;br /&gt;
This function sets the game speed to the given value&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;setGameSpeed ( int value )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''value''': The int value of the gamespeed (Range 0 - 10)&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addCommandHandler ( &amp;quot;setgamespeed&amp;quot;, &amp;quot;gamespeedfunction&amp;quot;)&lt;br /&gt;
function gamespeedfunction ( player, command, value )&lt;br /&gt;
setGameSpeed ( tonumber ( value ) )&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=8248</id>
		<title>User:BrophY</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=8248"/>
		<updated>2007-05-12T13:35:32Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Capture the Vehicle'''&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Also thanks to Talidan, Dragon, Ransom :)&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Tasks to be Completed:&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnScreen&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnPoints&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Teams and Weapons&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Markers&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Vehicle Placements ( Random Locations )&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Scoreboard&amp;lt;/strike&amp;gt; ''Include/Use Scoreboard Resource'' --[[User:BrophY|BrophY]] 08:35, 12 May 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Normal Vehicle Placements&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 08:35, 12 May 2007 (CDT)&lt;br /&gt;
* Any Necessary Pickups&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
IJs and ChrML fear BrophY&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Image:BatChild.jpg]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraMode&amp;diff=8210</id>
		<title>SetCameraMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraMode&amp;diff=8210"/>
		<updated>2007-05-07T11:03:23Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
&amp;lt;h2 style=&amp;quot;margin:0; background:#990000; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#fff; padding:0.2em 0.4em;&amp;quot;&amp;gt;Please remember to set players camera mode back to &amp;quot;player&amp;quot; on resource unload, or you will encounter the invisible player 'bug' if players camera is still set to fixed&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function allows you to change a player's camera mode to either &amp;quot;player&amp;quot; or &amp;quot;fixed&amp;quot;. &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 setCameraMode ( player thePlayer, string mode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player whose camera you wish to modify.&lt;br /&gt;
*'''mode:''' The mode to be set. It has the following possible values:&lt;br /&gt;
** '''&amp;quot;player&amp;quot;:''' Sets the camera to follow a player.&lt;br /&gt;
** '''&amp;quot;fixed&amp;quot;:''' Fixes the camera in a set position/rotation.&lt;br /&gt;
 &lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[bool]] with a value of ''true'' if the function was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraMode&amp;diff=8209</id>
		<title>SetCameraMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraMode&amp;diff=8209"/>
		<updated>2007-05-07T11:02:45Z</updated>

		<summary type="html">&lt;p&gt;BrophY: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
&amp;lt;h2 style=&amp;quot;margin:0; background:#990000; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#fff; padding:0.2em 0.4em;&amp;quot;&amp;gt;Please remember to set players camera mode back to &amp;quot;player&amp;quot; on resource unload, or you will encounter the invisible player 'bug'&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function allows you to change a player's camera mode to either &amp;quot;player&amp;quot; or &amp;quot;fixed&amp;quot;. &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 setCameraMode ( player thePlayer, string mode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player whose camera you wish to modify.&lt;br /&gt;
*'''mode:''' The mode to be set. It has the following possible values:&lt;br /&gt;
** '''&amp;quot;player&amp;quot;:''' Sets the camera to follow a player.&lt;br /&gt;
** '''&amp;quot;fixed&amp;quot;:''' Fixes the camera in a set position/rotation.&lt;br /&gt;
 &lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[bool]] with a value of ''true'' if the function was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraMode&amp;diff=8208</id>
		<title>SetCameraMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraMode&amp;diff=8208"/>
		<updated>2007-05-07T11:01:29Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
&amp;lt;h2 style=&amp;quot;margin:0; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;Please remember to set camera mode back to player on resource unload, or you will encounter the invisible player 'bug', just set a loop for onResoureUnload&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function allows you to change a player's camera mode to either &amp;quot;player&amp;quot; or &amp;quot;fixed&amp;quot;. &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 setCameraMode ( player thePlayer, string mode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player whose camera you wish to modify.&lt;br /&gt;
*'''mode:''' The mode to be set. It has the following possible values:&lt;br /&gt;
** '''&amp;quot;player&amp;quot;:''' Sets the camera to follow a player.&lt;br /&gt;
** '''&amp;quot;fixed&amp;quot;:''' Fixes the camera in a set position/rotation.&lt;br /&gt;
 &lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[bool]] with a value of ''true'' if the function was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraMode&amp;diff=8207</id>
		<title>SetCameraMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraMode&amp;diff=8207"/>
		<updated>2007-05-07T11:01:14Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
&amp;lt;h2 style=&amp;quot;margin:0; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;&amp;quot;&amp;gt;Please remember to set camera mode back to player on resource unload, or you will encounter the invisible player 'bug', just set a loop for onResoureUnload&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function allows you to change a player's camera mode to either &amp;quot;player&amp;quot; or &amp;quot;fixed&amp;quot;. &lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setCameraMode ( player thePlayer, string mode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player whose camera you wish to modify.&lt;br /&gt;
*'''mode:''' The mode to be set. It has the following possible values:&lt;br /&gt;
** '''&amp;quot;player&amp;quot;:''' Sets the camera to follow a player.&lt;br /&gt;
** '''&amp;quot;fixed&amp;quot;:''' Fixes the camera in a set position/rotation.&lt;br /&gt;
 &lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[bool]] with a value of ''true'' if the function was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:Mtalogo.png&amp;diff=8021</id>
		<title>File:Mtalogo.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:Mtalogo.png&amp;diff=8021"/>
		<updated>2007-04-14T12:23:26Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=7743</id>
		<title>User:BrophY</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=7743"/>
		<updated>2007-04-06T19:10:59Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Capture the Vehicle'''&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Also thanks to Talidan and Dragon :)&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Tasks to be Completed:&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnScreen&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnPoints&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Teams and Weapons&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Markers&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Vehicle Placements ( Random Locations )&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* Scoreboard ( Probably a onscreen text based one, until we get a working on with team support ? )&lt;br /&gt;
* Normal Vehicle Placements&lt;br /&gt;
* Any Necessary Pickups&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
IJs and ChrML fear BrophY&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Image:BatChild.jpg]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=7740</id>
		<title>User:BrophY</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=7740"/>
		<updated>2007-04-06T11:36:49Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Capture the Vehicle'''&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Also thanks to Talidan and Dragon :)&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Tasks to be Completed:&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnScreen&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnPoints&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Teams and Weapons&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Markers&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Vehicle Placements ( Random Locations )&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* Scoreboard ( Probably a onscreen text based one, until we get a working on with team support ? )&lt;br /&gt;
* Normal Vehicle Placements&lt;br /&gt;
* Any Necessary Pickups&lt;br /&gt;
* Move stuff such as spawnpoints to .map XML&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
IJs and ChrML fear BrophY&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Image:BatChild.jpg]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=7739</id>
		<title>User:BrophY</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=7739"/>
		<updated>2007-04-06T10:10:28Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Capture the Vehicle'''&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Also thanks to Talidan and Dragon :)&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Tasks to be Completed:&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnScreen&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnPoints&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Teams and Weapons&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Markers&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Vehicle Placements ( Random Locations )&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* Scoreboard ( Proberly a onscreen text based one, until we get a working on with team support ? )&lt;br /&gt;
* Normal Vehicle Placements&lt;br /&gt;
* Any Necessary Pickups&lt;br /&gt;
* Move stuff such as spawnpoints to .map XML&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
IJs and ChrML fear BrophY&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Image:BatChild.jpg]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=7738</id>
		<title>User:BrophY</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=7738"/>
		<updated>2007-04-06T10:01:47Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Capture the Vehicle'''&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Also thanks to Talidan and Dragon :)&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Tasks to be Completed:&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnScreen&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnPoints&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Teams and Weapons&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Markers&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Vehicle Placements ( Random Locations )&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 05:01, 6 April 2007 (CDT)&lt;br /&gt;
* Normal Vehicle Placements&lt;br /&gt;
* Any Necessary Pickups&lt;br /&gt;
* Move stuff such as spawnpoints to .map XML&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
IJs and ChrML fear BrophY&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Image:BatChild.jpg]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=7737</id>
		<title>User:BrophY</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=7737"/>
		<updated>2007-04-06T10:00:42Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Capture the Vehicle'''&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Also thanks to Talidan and Dragon :)&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Tasks to be Completed:&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnScreen&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 04:58, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnPoints&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 04:58, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Teams and Weapons&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 04:58, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Markers&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 04:58, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Vehicle Placements ( Random Locations )&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 04:58, 6 April 2007 (CDT)&lt;br /&gt;
* Normal Vehicle Placements&lt;br /&gt;
* Any Necessary Pickups&lt;br /&gt;
* Move stuff such as spawnpoints to .map XML&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
IJs and ChrML fear BrophY&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Image:BatChild.jpg]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=7736</id>
		<title>User:BrophY</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=7736"/>
		<updated>2007-04-06T09:59:44Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Capture the Vehicle'''&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Tasks to be Completed:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Also thanks to Talidan and Dragon :)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnScreen&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 04:58, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnPoints&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 04:58, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Teams and Weapons&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 04:58, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Markers&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 04:58, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Vehicle Placements ( Random Locations )&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 04:58, 6 April 2007 (CDT)&lt;br /&gt;
* Normal Vehicle Placements&lt;br /&gt;
* Any Necessary Pickups&lt;br /&gt;
* Move stuff such as spawnpoints to .map XML&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
IJs and ChrML fear BrophY&lt;br /&gt;
&lt;br /&gt;
[[Image:BatChild.jpg]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=7735</id>
		<title>User:BrophY</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=7735"/>
		<updated>2007-04-06T09:58:38Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''BrophY'''&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''Capture the Vehicle'''&lt;br /&gt;
&lt;br /&gt;
Tasks to be Completed:&lt;br /&gt;
&lt;br /&gt;
Also thanks to Talidan and Dragon :)&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnScreen&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 04:58, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;SpawnPoints&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 04:58, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Teams and Weapons&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 04:58, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Markers&amp;lt;strike&amp;gt; --[[User:BrophY|BrophY]] 04:58, 6 April 2007 (CDT)&lt;br /&gt;
* &amp;lt;strike&amp;gt;Capture Vehicle Placements ( Random Locations )&amp;lt;/strike&amp;gt; --[[User:BrophY|BrophY]] 04:58, 6 April 2007 (CDT)&lt;br /&gt;
* Normal Vehicle Placements&lt;br /&gt;
* Any Necessary Pickups&lt;br /&gt;
* Move stuff such as spawnpoints to .map XML&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
IJs and ChrML fear BrophY&lt;br /&gt;
&lt;br /&gt;
[[Image:BatChild.jpg]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Advanced_Topics&amp;diff=7601</id>
		<title>Advanced Topics</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Advanced_Topics&amp;diff=7601"/>
		<updated>2007-03-24T16:16:50Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains some advanced things you can do with scripts, this page should probably be changed later, depending how useful it is.&lt;br /&gt;
&lt;br /&gt;
==Custom element types==&lt;br /&gt;
One of the most powerful areas of MTA scripting is custom element types. These types can be defined in map files and their functionality implemented by scripts. In this example, we're going to look at a custom ''flag'' element, such as you would use in a ''capture-the-flag'' game-mode, though this same method could be used for many different things.&lt;br /&gt;
&lt;br /&gt;
First of all you need to decide what format you want the element to be defined in, we're going to use the following:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[pua,N]&lt;br /&gt;
&amp;lt;flag id=&amp;quot;redFlag&amp;quot; name=&amp;quot;red team flag&amp;quot; posX=&amp;quot;1210.0&amp;quot; posY=&amp;quot;-2241.34&amp;quot; posZ=&amp;quot;18.4332&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can define the flag element in the map file.&lt;br /&gt;
&lt;br /&gt;
Next, you can write some code to handle your flag element. First of all, lets add an event that happens when you pick it up, called ''onFlagPickup''. We should do this in an external script file, lets call this ''capture-the-flag.lua''. At the top of the file (outside any functions), define the event:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEvent ( &amp;quot;onFlagPickup&amp;quot;, &amp;quot;player&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Easy enough! We've added an event that will have a parameter called ''player''. We'll use this to say which player picked up the flag. Next, we have a choice. Either we can add an event handler to the root of the map, and capture every flag pickup event, or we can add it to the individual flag. Its easiest if we use the root of the map, so lets do this here:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mapRoot = getRootElement ( )&lt;br /&gt;
addEventHandler ( &amp;quot;onFlagPickup&amp;quot;, mapRoot, &amp;quot;flagPickup&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This says that we want to direct all ''onFlagPickup'' events to our function called ''flagPickup'', that we're about to define on the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function flagPickup ( player )&lt;br /&gt;
	flagName = getElementData ( source, &amp;quot;name&amp;quot; )&lt;br /&gt;
	playerName = getPlayerName ( player )&lt;br /&gt;
	outputChatBox ( playerName .. &amp;quot; picked up the flag &amp;quot; .. flagName )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final part of the puzzle is to make it so that the event is triggered at the correct time. To do this, we'll need to create a timer that will be used to check if a player is trying to pick up the flag. Put the following code below your previous [[addEventHandler]] call:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
setTimer ( &amp;quot;flagCheckPulse&amp;quot;, 1000 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will make our soon-to-be-defined function ''flagCheckPulse'' be called every second. Now we'll define this function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function flagCheckPulse ( )&lt;br /&gt;
	local flags = getElementsByType ( &amp;quot;flag&amp;quot; )&lt;br /&gt;
	local players = getElementsByType ( &amp;quot;player&amp;quot; )&lt;br /&gt;
	local flagPositionX, flagPositionY, flagPositionZ&lt;br /&gt;
	for flagKey,flagValue in flags do&lt;br /&gt;
		flagX = getElementData ( flagValue, &amp;quot;posX&amp;quot; )&lt;br /&gt;
		flagY = getElementData ( flagValue, &amp;quot;posY&amp;quot; )&lt;br /&gt;
		flagZ = getElementData ( flagValue, &amp;quot;posZ&amp;quot; )       &lt;br /&gt;
		for playerKey,playerValue in players do&lt;br /&gt;
			playerX, playerY, playerZ = getEntityPosition ( playerValue )&lt;br /&gt;
			distance = getDistanceBetweenPoints3D ( flagX, flagY, flagZ, playerX, playerY, playerZ )&lt;br /&gt;
			if ( distance &amp;lt; 1) then&lt;br /&gt;
				triggerEvent ( &amp;quot;onFlagPickup&amp;quot;, flagValue, playerValue )&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	setTimer ( &amp;quot;flagCheckPulse&amp;quot;, 1000 )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And thats it!&lt;br /&gt;
&lt;br /&gt;
Note: Although this should work, its not tested. Some things could be improved if better support was provided by us, for example, theres no getPlayerByIndex, no getElementCount(type), an onPlayerPulse event would be useful. This currently only works for one flag, as theres I'm not sure how to find how many flags getElementByType ( &amp;quot;flag&amp;quot; ) returned.&lt;br /&gt;
&lt;br /&gt;
Next: representing the flag in the world - spawning an object at the flags position.&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Advanced_Topics&amp;diff=7600</id>
		<title>Advanced Topics</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Advanced_Topics&amp;diff=7600"/>
		<updated>2007-03-24T16:16:26Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page explains some advanced things you can do with scripts, this page should probably be changed later, depending how useful it is.&lt;br /&gt;
&lt;br /&gt;
==Custom element types==&lt;br /&gt;
One of the most powerful areas of MTA scripting is custom element types. These types can be defined in map files and their functionality implemented by scripts. In this example, we're going to look at a custom ''flag'' element, such as you would use in a ''capture-the-flag'' game-mode, though this same method could be used for many different things.&lt;br /&gt;
&lt;br /&gt;
First of all you need to decide what format you want the element to be defined in, we're going to use the following:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[xml,N]&lt;br /&gt;
&amp;lt;flag id=&amp;quot;redFlag&amp;quot; name=&amp;quot;red team flag&amp;quot; posX=&amp;quot;1210.0&amp;quot; posY=&amp;quot;-2241.34&amp;quot; posZ=&amp;quot;18.4332&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can define the flag element in the map file.&lt;br /&gt;
&lt;br /&gt;
Next, you can write some code to handle your flag element. First of all, lets add an event that happens when you pick it up, called ''onFlagPickup''. We should do this in an external script file, lets call this ''capture-the-flag.lua''. At the top of the file (outside any functions), define the event:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEvent ( &amp;quot;onFlagPickup&amp;quot;, &amp;quot;player&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Easy enough! We've added an event that will have a parameter called ''player''. We'll use this to say which player picked up the flag. Next, we have a choice. Either we can add an event handler to the root of the map, and capture every flag pickup event, or we can add it to the individual flag. Its easiest if we use the root of the map, so lets do this here:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mapRoot = getRootElement ( )&lt;br /&gt;
addEventHandler ( &amp;quot;onFlagPickup&amp;quot;, mapRoot, &amp;quot;flagPickup&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This says that we want to direct all ''onFlagPickup'' events to our function called ''flagPickup'', that we're about to define on the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function flagPickup ( player )&lt;br /&gt;
	flagName = getElementData ( source, &amp;quot;name&amp;quot; )&lt;br /&gt;
	playerName = getPlayerName ( player )&lt;br /&gt;
	outputChatBox ( playerName .. &amp;quot; picked up the flag &amp;quot; .. flagName )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final part of the puzzle is to make it so that the event is triggered at the correct time. To do this, we'll need to create a timer that will be used to check if a player is trying to pick up the flag. Put the following code below your previous [[addEventHandler]] call:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
setTimer ( &amp;quot;flagCheckPulse&amp;quot;, 1000 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will make our soon-to-be-defined function ''flagCheckPulse'' be called every second. Now we'll define this function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function flagCheckPulse ( )&lt;br /&gt;
	local flags = getElementsByType ( &amp;quot;flag&amp;quot; )&lt;br /&gt;
	local players = getElementsByType ( &amp;quot;player&amp;quot; )&lt;br /&gt;
	local flagPositionX, flagPositionY, flagPositionZ&lt;br /&gt;
	for flagKey,flagValue in flags do&lt;br /&gt;
		flagX = getElementData ( flagValue, &amp;quot;posX&amp;quot; )&lt;br /&gt;
		flagY = getElementData ( flagValue, &amp;quot;posY&amp;quot; )&lt;br /&gt;
		flagZ = getElementData ( flagValue, &amp;quot;posZ&amp;quot; )       &lt;br /&gt;
		for playerKey,playerValue in players do&lt;br /&gt;
			playerX, playerY, playerZ = getEntityPosition ( playerValue )&lt;br /&gt;
			distance = getDistanceBetweenPoints3D ( flagX, flagY, flagZ, playerX, playerY, playerZ )&lt;br /&gt;
			if ( distance &amp;lt; 1) then&lt;br /&gt;
				triggerEvent ( &amp;quot;onFlagPickup&amp;quot;, flagValue, playerValue )&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	setTimer ( &amp;quot;flagCheckPulse&amp;quot;, 1000 )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And thats it!&lt;br /&gt;
&lt;br /&gt;
Note: Although this should work, its not tested. Some things could be improved if better support was provided by us, for example, theres no getPlayerByIndex, no getElementCount(type), an onPlayerPulse event would be useful. This currently only works for one flag, as theres I'm not sure how to find how many flags getElementByType ( &amp;quot;flag&amp;quot; ) returned.&lt;br /&gt;
&lt;br /&gt;
Next: representing the flag in the world - spawning an object at the flags position.&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateExplosion&amp;diff=7587</id>
		<title>CreateExplosion</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateExplosion&amp;diff=7587"/>
		<updated>2007-03-21T10:33:46Z</updated>

		<summary type="html">&lt;p&gt;BrophY: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
Creates an explosion of a certain type at a specified point in the world.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;createExplosion ( float x, float y, float z, int type, [ player creator ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''x:''' A float value that specifies the X coordinate where the object is spawned at in the [[world]]&lt;br /&gt;
*'''y:''' A float value that specifies the Y coordinate where the object is spawned at in the world&lt;br /&gt;
*'''z:''' A float value that specifies the Z coordinate where the object is spawned at in the world&lt;br /&gt;
*'''type:''' A integer specifying the explosion type. Valid types are:&lt;br /&gt;
{{Explosions}}&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''creator:''' The explosion's simulated creator, responsible for it. &lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This code will create an explosion at the player's position when they spawn.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;root = getRootElement ()&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerSpawn&amp;quot;, root, &amp;quot;onPlayerSpawn&amp;quot; )&lt;br /&gt;
function onPlayerSpawn ( spawnpoint )&lt;br /&gt;
  createExplosion ( getElementPosition ( source ), 6, source )&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Explosion functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateExplosion&amp;diff=7586</id>
		<title>CreateExplosion</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateExplosion&amp;diff=7586"/>
		<updated>2007-03-21T10:33:26Z</updated>

		<summary type="html">&lt;p&gt;BrophY: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
Creates an explosion of a certain type at a specified point in the world.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;createExplosion ( float x, float y, float z, int type, [ player creator ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''x:''' A float value that specifies the X coordinate where the object is spawned at in the [[world]]&lt;br /&gt;
*'''y:''' A float value that specifies the Y coordinate where the object is spawned at in the world&lt;br /&gt;
*'''z:''' A float value that specifies the Z coordinate where the object is spawned at in the world&lt;br /&gt;
*'''type:''' A integer specifying the explosion type. Valid types are:&lt;br /&gt;
{{Explosions}}&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''creator:''' The explosion's simulated creator, responsible for it. &lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This code will create an explosion at the player's position when they spawn.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;root = getRootElement ()&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerSpawn&amp;quot;, root, &amp;quot;onPlayerSpawn&amp;quot; )&lt;br /&gt;
function onPlayerSpawn ( spawnpoint )&lt;br /&gt;
  createExplosion ( getElementPosition ( source ), 6, source )&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; lua n&amp;gt;root = getRootElement ()&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerSpawn&amp;quot;, root, &amp;quot;onPlayerSpawn&amp;quot; )&lt;br /&gt;
function onPlayerSpawn ( spawnpoint )&lt;br /&gt;
  createExplosion ( getElementPosition ( source ), 6, source )&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Explosion functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetGravity&amp;diff=7506</id>
		<title>GetGravity</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetGravity&amp;diff=7506"/>
		<updated>2007-03-13T11:02:17Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
==Description==&lt;br /&gt;
This function returns the current gravity level&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;getGravity ()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addCommandHandler ( &amp;quot;gravity&amp;quot;, &amp;quot;gravlevel&amp;quot; )&lt;br /&gt;
function gravlevel ()&lt;br /&gt;
    local gravity = getGravity ( )&lt;br /&gt;
    outputConsole ( &amp;quot;The Gravity is currently set to &amp;quot; ..gravity )&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetGravity&amp;diff=7505</id>
		<title>SetGravity</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetGravity&amp;diff=7505"/>
		<updated>2007-03-13T10:59:38Z</updated>

		<summary type="html">&lt;p&gt;BrophY: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
==Description==&lt;br /&gt;
This function sets the servers gravity level&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;setGravity ( float level )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''level''': The level of gravity ( default is &amp;lt;b&amp;gt;0.008&amp;lt;/b&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addCommandHandler ( &amp;quot;setgravity&amp;quot;, &amp;quot;grav&amp;quot; )&lt;br /&gt;
function grav ( source, command, gravid )&lt;br /&gt;
    setGravity ( gravid )&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetGravity&amp;diff=7504</id>
		<title>SetGravity</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetGravity&amp;diff=7504"/>
		<updated>2007-03-13T10:59:14Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
==Description==&lt;br /&gt;
This function sets the servers gravity level&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;setGravity ( float level )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''level''': The level of gravity ( default is &amp;lt;b&amp;gt;0.008&amp;lt;/b&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addCommandHandler ( &amp;quot;setgravity&amp;quot;, &amp;quot;grav&amp;quot; )&lt;br /&gt;
function grav ( source, command, gravid )&lt;br /&gt;
setGravity ( gravid )&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerFightingStyle&amp;diff=7427</id>
		<title>SetPlayerFightingStyle</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerFightingStyle&amp;diff=7427"/>
		<updated>2007-03-05T20:29:27Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
Sets a player's fighting style&lt;br /&gt;
&lt;br /&gt;
ILL PUT LIST HERE IN A BIT&lt;br /&gt;
&lt;br /&gt;
values from 4-16&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;setPlayerFightingStyle ( player, int style ) &amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''Player:''' Tells the function to give the fighting style to a player&lt;br /&gt;
*'''Style:''' A whole integer specifying the style of fighting you want to give to the player&lt;br /&gt;
&lt;br /&gt;
==Example==  &lt;br /&gt;
This example sets the player's fighting style to the desired style when he types &amp;quot;style&amp;quot; folldowed by a number from 4 to 16 in console.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addCommandHandler ( &amp;quot;style&amp;quot;, &amp;quot;style&amp;quot; ) -- add a command handler for setcash&lt;br /&gt;
function style ( player, command, id ) --when the style function is called&lt;br /&gt;
	setPlayerFightingStyle ( player, id ) --set players fighting style&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=7248</id>
		<title>User:BrophY</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:BrophY&amp;diff=7248"/>
		<updated>2007-02-02T17:06:34Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''BrophY'''&lt;br /&gt;
----&lt;br /&gt;
IJs and ChrML fear BrophY&lt;br /&gt;
&lt;br /&gt;
[[Image:BatChild.jpg]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Events&amp;diff=7143</id>
		<title>Server Scripting Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Events&amp;diff=7143"/>
		<updated>2007-01-26T11:59:10Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Critical_Update|This entire section is undergoing a function-use change. It no longer lists functions designed to handle events, but instead should list all the events themselves, and the arguments they supply, along with information regarding the use of addEventHandler, and instructions detailing how to insert event handlers into the XML code.|[[User:Vandalite|Vandalite]]}}&lt;br /&gt;
&lt;br /&gt;
This is a list of scripting events that currently exist. More will come soon.&lt;br /&gt;
&lt;br /&gt;
===Server Events===&lt;br /&gt;
void [[onClientLogin]] ( [[account]] previous_account, [[account]] current_account, bool auto-login )&lt;br /&gt;
&lt;br /&gt;
void [[onClientLogout]] ( [[account]] previous_account, [[account]] current_account )&lt;br /&gt;
&lt;br /&gt;
void [[onColShapeHit]] ( [[player]] player, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onColShapeLeave]] ( [[player]] player, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onConsole]] ( string message )&lt;br /&gt;
&lt;br /&gt;
void [[onElementDataChange]] ( string name )&lt;br /&gt;
&lt;br /&gt;
void [[onElementColShapeHit]] ( [[colshape]] hitcolshape, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onElementColShapeLeave]] ( [[colshape]] leftcolshape, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onElementClicked]] ( string button, string state, [[player]] clicker, float posX, float posY, float posZ )&lt;br /&gt;
&lt;br /&gt;
void [[onMarkerHit]] ( [[player]] hitplayer, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerChat]] ( string message, bool teamchat )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerDamage]] ( [[player]] attacker, int attackerweapon, int bodypart, float loss )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerJoin]] ()&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerQuit]] ( string reason )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerSpawn]] ( [[spawnpoint]] spawnpoint, team )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerWasted]] ( int ammo, [[player]] killer, int killerweapon, int bodypart )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerTarget]] ( [[element]] targetedElement )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerEnterVehicle]] ( [[vehicle]] vehicle, int seat, [[player]] jacked )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerExitVehicle]] ( [[vehicle]] vehicle, int seat, [[player]] jacker )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerWeaponSwitch]] ( int previousWeaponID, int currentWeaponID )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerTask]] ( string priority, int type, string name )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerMarkerHit]] ( [[marker]] hitmarker, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerPickupHit]] ( [[pickup]] hitpickup, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerPickupUse]] ( [[pickup]] usedpickup )&lt;br /&gt;
&lt;br /&gt;
void [[onPickupSpawn]] ()&lt;br /&gt;
&lt;br /&gt;
void [[onPickupHit]] ( [[player]] player, bool matchingDimension )&lt;br /&gt;
&lt;br /&gt;
void [[onPickupUse]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
void [[onPlayerClick]] ( string button, string state, [[element]] clickedElement, float posX, float posY, float posZ )&lt;br /&gt;
&lt;br /&gt;
void [[onResourceStart]] ( string name )&lt;br /&gt;
&lt;br /&gt;
void [[onResourceStop]] ()&lt;br /&gt;
&lt;br /&gt;
void [[onSpawnpointUse]] ( [[player]] player )&lt;br /&gt;
&lt;br /&gt;
void [[onTrailerAttach]] ( [[vehicle]] towedBy )&lt;br /&gt;
&lt;br /&gt;
void [[onTrailerDetach]] ( [[vehicle]] towedBy )&lt;br /&gt;
&lt;br /&gt;
void [[onVehicleDamage]] ( float loss )&lt;br /&gt;
&lt;br /&gt;
void [[onVehicleRespawn]] ( bool explosion )&lt;br /&gt;
&lt;br /&gt;
void [[onVehicleStartEnter]] ( [[player]] player, int seat, [[player]] jacked )&lt;br /&gt;
&lt;br /&gt;
void [[onVehicleStartExit]] ( [[player]] player, int seat, [[player]] jacker )&lt;br /&gt;
&lt;br /&gt;
void [[onVehicleEnter]] ( [[player]] player, int seat, [[player]] jacked )&lt;br /&gt;
&lt;br /&gt;
void [[onVehicleExit]] ( [[player]] player, int seat, [[player]] jacker )&lt;br /&gt;
&lt;br /&gt;
void [[onVehicleExplode]] ()&lt;br /&gt;
&lt;br /&gt;
===Client Events===&lt;br /&gt;
void [[onClientMapLoad]] ( string name )&lt;br /&gt;
&lt;br /&gt;
void [[onClientMapUnload]] ( void )&lt;br /&gt;
&lt;br /&gt;
void [[onClientWeaponFire]] ( int weapon, int ammo, int ammoInClip, float hitX, float hitY, float hitZ, [[element]] hitElement )&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 3px solid green;padding:5px&amp;quot;&amp;gt;WARNING: These events will change their names to onClientGUI... in the near future&amp;lt;/div&amp;gt;&lt;br /&gt;
bool [[guiWindowEventOnKeyDown]] ( [[element]] theElement, callback )&lt;br /&gt;
&lt;br /&gt;
bool [[guiWindowEventOnClose]] ( [[element]] theElement, callback )&lt;br /&gt;
&lt;br /&gt;
bool [[guiEditEventOnChanged]] ( [[element]] theElement, callback )&lt;br /&gt;
&lt;br /&gt;
bool [[guiEditEventOnAccepted]] ( [[element]] theElement, callback )&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnResourceStop&amp;diff=7142</id>
		<title>OnResourceStop</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnResourceStop&amp;diff=7142"/>
		<updated>2007-01-26T11:58:17Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete Event]]&lt;br /&gt;
This event is triggered when the resource is changed or unloaded.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example displays a message in the textbox when the resource is changed / unloaded&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
addEventHandler ( &amp;quot;onResourceStop&amp;quot;, root, &amp;quot;onResourceStop&amp;quot; )&lt;br /&gt;
function onResourceStop ( )&lt;br /&gt;
  outputChatBox ( &amp;quot;Script Unloaded!&amp;quot;, root, 255, 255, 255 )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnResourceUnload&amp;diff=7141</id>
		<title>OnResourceUnload</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnResourceUnload&amp;diff=7141"/>
		<updated>2007-01-26T11:57:38Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function doesnt exist, its [[onResourceStop]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnResourceLoad&amp;diff=7140</id>
		<title>OnResourceLoad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnResourceLoad&amp;diff=7140"/>
		<updated>2007-01-26T11:56:51Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function doesnt exist, its [[onResourceStart]]&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnResourceLoad&amp;diff=7139</id>
		<title>OnResourceLoad</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnResourceLoad&amp;diff=7139"/>
		<updated>2007-01-26T11:55:33Z</updated>

		<summary type="html">&lt;p&gt;BrophY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>BrophY</name></author>
	</entry>
</feed>