<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=OnPlayerToggleVehicleNitro</id>
	<title>OnPlayerToggleVehicleNitro - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=OnPlayerToggleVehicleNitro"/>
	<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=OnPlayerToggleVehicleNitro&amp;action=history"/>
	<updated>2026-04-30T00:10:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://dev.playonset.com/index.php?title=OnPlayerToggleVehicleNitro&amp;diff=3955&amp;oldid=prev</id>
		<title>BlueMountains: Created page with &quot;{{Info|Event|Client|1.2.0}}  {{FuncDescription|Called when a (local) player presses the key to turn nitro on/off. You can return &#039;&#039;&#039;false&#039;&#039;&#039; to prevent turning it on. Requires...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=OnPlayerToggleVehicleNitro&amp;diff=3955&amp;oldid=prev"/>
		<updated>2020-05-24T09:03:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Info|Event|Client|1.2.0}}  {{FuncDescription|Called when a (local) player presses the key to turn nitro on/off. You can return &amp;#039;&amp;#039;&amp;#039;false&amp;#039;&amp;#039;&amp;#039; to prevent turning it on. Requires...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Info|Event|Client|1.2.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Called when a (local) player presses the key to turn nitro on/off. You can return &amp;#039;&amp;#039;&amp;#039;false&amp;#039;&amp;#039;&amp;#039; to prevent turning it on. Requires [[AttachVehicleNitro]] to be enabled on the vehicle.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|OnPlayerToggleVehicleNitro(vehicle, toggle)}}&lt;br /&gt;
{{FuncParam|vehicle|The vehicle identifier.}}&lt;br /&gt;
{{FuncParam|toggle|&amp;#039;&amp;#039;&amp;#039;true&amp;#039;&amp;#039;&amp;#039; if the player will turn on nitro, &amp;#039;&amp;#039;&amp;#039;false&amp;#039;&amp;#039;&amp;#039; otherwise.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;gt;&lt;br /&gt;
AddEvent(&amp;quot;OnPlayerToggleVehicleNitro&amp;quot;, function(vehicle, toggle)&lt;br /&gt;
    if toggle == true then&lt;br /&gt;
        return false -- do not allow the player to turn on the nitro&lt;br /&gt;
    end&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
{{VehicleClientEvents}}&lt;/div&gt;</summary>
		<author><name>BlueMountains</name></author>
	</entry>
</feed>