<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/TestSphereAgainstWorld?action=history&amp;feed=atom</id>
	<title>TestSphereAgainstWorld - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/TestSphereAgainstWorld?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=TestSphereAgainstWorld&amp;action=history"/>
	<updated>2026-10-18T03:33:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.1</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=TestSphereAgainstWorld&amp;diff=82860&amp;oldid=prev</id>
		<title>Jayceon: Fixed the return value order in the Returns section as modelID was incorrectly listed after worldModelRotationX,Y,Z; it has been moved to its correct position to match the actual function return order implemented in the source code.</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=TestSphereAgainstWorld&amp;diff=82860&amp;oldid=prev"/>
		<updated>2026-08-01T09:09:50Z</updated>

		<summary type="html">&lt;p&gt;Fixed the return value order in the Returns section as modelID was incorrectly listed after worldModelRotationX,Y,Z; it has been moved to its correct position to match the actual function return order implemented in the source code.&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:09, 1 August 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;bool               -- hit&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;bool               -- hit&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;element            -- hitElement&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;element            -- hitElement&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;int                -- worldModelID&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;float float float  -- worldModelPositionX,Y,Z&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;float float float  -- worldModelPositionX,Y,Z&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;float float float  -- worldModelRotationX,Y,Z&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;float float float  -- worldModelRotationX,Y,Z&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;int                -- worldModelID&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;int                -- worldLODModelID&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;int                -- worldLODModelID&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;string             -- entity type (vehicle, ped, object etc.)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;string             -- entity type (vehicle, ped, object etc.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l46&quot;&gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;hit:&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;true&amp;#039;&amp;#039; if there is a collision, &amp;#039;&amp;#039;false&amp;#039;&amp;#039; otherwise.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;hit:&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;true&amp;#039;&amp;#039; if there is a collision, &amp;#039;&amp;#039;false&amp;#039;&amp;#039; otherwise.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;hitElement:&amp;#039;&amp;#039;&amp;#039; the MTA element hit if any, &amp;#039;&amp;#039;nil&amp;#039;&amp;#039; otherwise.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;hitElement:&amp;#039;&amp;#039;&amp;#039; the MTA element hit if any, &amp;#039;&amp;#039;nil&amp;#039;&amp;#039; otherwise.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*&#039;&#039;&#039;modelID:&#039;&#039;&#039; The ID of the element.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;worldModelPositionX,Y,Z:&amp;#039;&amp;#039;&amp;#039; World position of the detected element.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;worldModelPositionX,Y,Z:&amp;#039;&amp;#039;&amp;#039; World position of the detected element.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;worldModelRotationX,Y,Z:&amp;#039;&amp;#039;&amp;#039; World rotation of the detected element.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;worldModelRotationX,Y,Z:&amp;#039;&amp;#039;&amp;#039; World rotation of the detected element.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*&#039;&#039;&#039;modelID:&#039;&#039;&#039; The ID of the element.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;lodID:&amp;#039;&amp;#039;&amp;#039; The ID of the element&amp;#039;s LOD (or 0).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;lodID:&amp;#039;&amp;#039;&amp;#039; The ID of the element&amp;#039;s LOD (or 0).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;entityType:&amp;#039;&amp;#039;&amp;#039; The type of the element (building, vehicle, ped, object, dummy).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;entityType:&amp;#039;&amp;#039;&amp;#039; The type of the element (building, vehicle, ped, object, dummy).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff:1.41:old-81523:rev-82860:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Jayceon</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=TestSphereAgainstWorld&amp;diff=81523&amp;oldid=prev</id>
		<title>FileEX: Created page with &quot;{{Client function}} __NOTOC__ {{New feature/item|3.161|1.6.0|22837| The function checks whether there is an object within the given radius and returns information about it. The function works similarly to processLineOfSight, but instead of a straight line, it operates based on the specified radius, forming a sphere.}}  ==Syntax==  Return values labelled for ease of reference. &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool               -- hit element            -- hitElement floa...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=TestSphereAgainstWorld&amp;diff=81523&amp;oldid=prev"/>
		<updated>2024-12-22T01:52:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Client function}} __NOTOC__ {{New feature/item|3.161|1.6.0|22837| The function checks whether there is an object within the given radius and returns information about it. The function works similarly to &lt;a href=&quot;/wiki/ProcessLineOfSight&quot; title=&quot;ProcessLineOfSight&quot;&gt;processLineOfSight&lt;/a&gt;, but instead of a straight line, it operates based on the specified radius, forming a sphere.}}  ==Syntax==  Return values labelled for ease of reference. &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool               -- hit element            -- hitElement floa...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|3.161|1.6.0|22837|&lt;br /&gt;
The function checks whether there is an object within the given radius and returns information about it. The function works similarly to [[processLineOfSight]], but instead of a straight line, it operates based on the specified radius, forming a sphere.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
Return values labelled for ease of reference.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool               -- hit&lt;br /&gt;
element            -- hitElement&lt;br /&gt;
float float float  -- worldModelPositionX,Y,Z&lt;br /&gt;
float float float  -- worldModelRotationX,Y,Z&lt;br /&gt;
int                -- worldModelID&lt;br /&gt;
int                -- worldLODModelID&lt;br /&gt;
string             -- entity type (vehicle, ped, object etc.)&lt;br /&gt;
                 testSphereAgainstWorld ( float startX, float startY, float startZ, &lt;br /&gt;
                                       float radius, &lt;br /&gt;
                                       [ bool ignoredElement = nil, &lt;br /&gt;
                                       bool checkBuildings = true, &lt;br /&gt;
                                       bool checkVehicles = true, &lt;br /&gt;
                                       bool checkPeds = true, &lt;br /&gt;
                                       bool checkObjects = true, &lt;br /&gt;
                                       bool checkDummies = true, &lt;br /&gt;
                                       bool ignoreSomeObjectsForCamera = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;startX:&amp;#039;&amp;#039;&amp;#039; The start &amp;#039;&amp;#039;x&amp;#039;&amp;#039; position&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;startY:&amp;#039;&amp;#039;&amp;#039; The start &amp;#039;&amp;#039;y&amp;#039;&amp;#039; position&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;startZ:&amp;#039;&amp;#039;&amp;#039; The start &amp;#039;&amp;#039;z&amp;#039;&amp;#039; position&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;radius:&amp;#039;&amp;#039;&amp;#039; The radius of the sphere.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;ignoredElement:&amp;#039;&amp;#039;&amp;#039; Specifies the element to be excluded from collision detection within the sphere.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;checkBuildings:&amp;#039;&amp;#039;&amp;#039; Specifies whether [[Building|buildings]] should be detected, i.e., elements of the default GTA map or those created using [[createBuilding]].&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;checkVehicles:&amp;#039;&amp;#039;&amp;#039; Specifies whether [[Vehicle|vehicles]] should be detected.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;checkPeds:&amp;#039;&amp;#039;&amp;#039; Specifies whether [[Ped|peds]] (including [[Player|players]]) should be detected.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;checkObjects:&amp;#039;&amp;#039;&amp;#039; Specifies whether [[Object|objects]] should be detected.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;checkDummies:&amp;#039;&amp;#039;&amp;#039; Specifies whether internal GTA dummies should be detected. These are not used in the current MTA version so this argument can be set to &amp;#039;&amp;#039;false&amp;#039;&amp;#039;.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;ignoreSomeObjectsForCamera:&amp;#039;&amp;#039;&amp;#039; Specifies whether certain elements should be ignored. These are objects that have the (K) property in the &amp;#039;object.dat&amp;#039; file. (i.e. Most dynamic objects like boxes or barrels).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;modelID&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;lodID&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;worldModelPositionX,Y,Z&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;worldModelRotationX,Y,Z&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;entityType&amp;#039;&amp;#039;&amp;#039; parameters are returned even if &amp;#039;&amp;#039;&amp;#039;hitElement&amp;#039;&amp;#039;&amp;#039; is &amp;#039;&amp;#039;&amp;#039;nil&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;hit:&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;true&amp;#039;&amp;#039; if there is a collision, &amp;#039;&amp;#039;false&amp;#039;&amp;#039; otherwise.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;hitElement:&amp;#039;&amp;#039;&amp;#039; the MTA element hit if any, &amp;#039;&amp;#039;nil&amp;#039;&amp;#039; otherwise.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;worldModelPositionX,Y,Z:&amp;#039;&amp;#039;&amp;#039; World position of the detected element.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;worldModelRotationX,Y,Z:&amp;#039;&amp;#039;&amp;#039; World rotation of the detected element.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;modelID:&amp;#039;&amp;#039;&amp;#039; The ID of the element.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;lodID:&amp;#039;&amp;#039;&amp;#039; The ID of the element&amp;#039;s LOD (or 0).&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;entityType:&amp;#039;&amp;#039;&amp;#039; The type of the element (building, vehicle, ped, object, dummy).&lt;br /&gt;
&lt;br /&gt;
==Examples== &lt;br /&gt;
{{Needs Example}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client world functions}}&lt;/div&gt;</summary>
		<author><name>FileEX</name></author>
	</entry>
</feed>