<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/IsVehicleOnRoof?action=history&amp;feed=atom</id>
	<title>IsVehicleOnRoof - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/IsVehicleOnRoof?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsVehicleOnRoof&amp;action=history"/>
	<updated>2026-05-14T07:42:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsVehicleOnRoof&amp;diff=32115&amp;oldid=prev</id>
		<title>Wielebny: This function checks, whether vehicle is laying on roof.</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsVehicleOnRoof&amp;diff=32115&amp;oldid=prev"/>
		<updated>2012-08-03T11:36:59Z</updated>

		<summary type="html">&lt;p&gt;This function checks, whether vehicle is laying on roof.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function checks, whether vehicle is laying on roof.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isVehicleOnRoof(vehicle vehicle)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''vehicle''': Vehicle element.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Function source&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function isVehicleOnRoof(vehicle)&lt;br /&gt;
        local rx,ry=getElementRotation(vehicle)&lt;br /&gt;
        if (rx&amp;gt;90 and rx&amp;lt;270) or (ry&amp;gt;90 and ry&amp;lt;270) then&lt;br /&gt;
                return true&lt;br /&gt;
        end&lt;br /&gt;
        return false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Wielebny</name></author>
	</entry>
</feed>