<?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=ReWrite</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=ReWrite"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/ReWrite"/>
	<updated>2026-04-25T04:49:31Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsElementWithinMarker&amp;diff=23613</id>
		<title>IsElementWithinMarker</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsElementWithinMarker&amp;diff=23613"/>
		<updated>2010-06-05T17:04:37Z</updated>

		<summary type="html">&lt;p&gt;ReWrite: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function is used to determine if an [[element]] is within a [[marker]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isElementWithinMarker ( element theElement, marker theMarker )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theElement:''' The [[element]] you're checking.&lt;br /&gt;
*'''theMarker:''' The [[marker]] you're checking.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the element is within the marker, ''false'' otherwise&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
dutymarker = createMarker(126.56,254.98,78.9,'cylinder', 2.0, 255, 0, 0, 150)&lt;br /&gt;
&lt;br /&gt;
function duty(player, matchingDimension)&lt;br /&gt;
 if (isElementWithinMarker(player, dutymarker) == true ) then&lt;br /&gt;
    giveWeapon(player, 22, 100, 1)  &lt;br /&gt;
 else&lt;br /&gt;
    outputChatBox(&amp;quot;You are not at the right place!&amp;quot;, player,255,0,0)&lt;br /&gt;
 end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;duty&amp;quot;, duty)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>ReWrite</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsElementWithinMarker&amp;diff=23612</id>
		<title>IsElementWithinMarker</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsElementWithinMarker&amp;diff=23612"/>
		<updated>2010-06-05T17:03:36Z</updated>

		<summary type="html">&lt;p&gt;ReWrite: i&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function is used to determine if an [[element]] is within a [[marker]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isElementWithinMarker ( element theElement, marker theMarker )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theElement:''' The [[element]] you're checking.&lt;br /&gt;
*'''theMarker:''' The [[marker]] you're checking.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the element is within the marker, ''false'' otherwise&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
dutymarker = createMarker(126.56,254.98,78.9,255,0,0)&lt;br /&gt;
&lt;br /&gt;
function duty(player, matchingDimension)&lt;br /&gt;
 if (isElementWithinMarker(player, dutymarker) == true ) then&lt;br /&gt;
    giveWeapon(player, 22, 100, 1)  &lt;br /&gt;
 else&lt;br /&gt;
    outputChatBox(&amp;quot;You are not at the right place!&amp;quot;, player,255,0,0)&lt;br /&gt;
 end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;duty&amp;quot;, duty)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>ReWrite</name></author>
	</entry>
</feed>