<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/IsVehicleDoubleExhaust?action=history&amp;feed=atom</id>
	<title>IsVehicleDoubleExhaust - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/IsVehicleDoubleExhaust?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsVehicleDoubleExhaust&amp;action=history"/>
	<updated>2026-07-04T20:39:35Z</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=IsVehicleDoubleExhaust&amp;diff=71128&amp;oldid=prev</id>
		<title>Alex7202: Created page with &quot;{{Useful Function}} &lt;lowercasetitle&gt;&lt;/lowercasetitle&gt; __NOTOC__ This function checks if a exhaust vehicle is double.  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt;bool isVehicle...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsVehicleDoubleExhaust&amp;diff=71128&amp;oldid=prev"/>
		<updated>2021-05-29T06:05:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Useful Function}} &amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt; __NOTOC__ This function checks if a exhaust &lt;a href=&quot;/wiki/Vehicle&quot; class=&quot;mw-redirect&quot; title=&quot;Vehicle&quot;&gt;vehicle&lt;/a&gt; is double.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isVehicle...&amp;quot;&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 if a exhaust [[vehicle]] is double.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isVehicleDoubleExhaust( element vehicle )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''vehicle''': The [[vehicle]] you want to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the vehicle has double exhaust, ''false'' if not double exhaust.&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;
local bytes = {[&amp;quot;2&amp;quot;] = true, [&amp;quot;6&amp;quot;] = true, [&amp;quot;A&amp;quot;] = true, [&amp;quot;E&amp;quot;] = true}&lt;br /&gt;
function isDoubleExhauts (veh)&lt;br /&gt;
    local handling = getVehicleHandling (veh)[&amp;quot;modelFlags&amp;quot;]&lt;br /&gt;
    local newHandling = string.format (&amp;quot;%X&amp;quot;, handling)&lt;br /&gt;
    local reversedHex = string.reverse ( newHandling )..string.rep ( &amp;quot;0&amp;quot;, 8 - string.len ( newHandling ) )&lt;br /&gt;
	&lt;br /&gt;
    local byte4 = string.sub(reversedHex, 4, 4)&lt;br /&gt;
    if bytes[byte4] then&lt;br /&gt;
        return true&lt;br /&gt;
    else&lt;br /&gt;
        return false&lt;br /&gt;
    end&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>Alex7202</name></author>
	</entry>
</feed>