<?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=OnPlayerToggleVehicleHorn</id>
	<title>OnPlayerToggleVehicleHorn - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=OnPlayerToggleVehicleHorn"/>
	<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=OnPlayerToggleVehicleHorn&amp;action=history"/>
	<updated>2026-04-30T00:53:40Z</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=OnPlayerToggleVehicleHorn&amp;diff=4647&amp;oldid=prev</id>
		<title>BlueMountains: Created page with &quot;{{Info|Event|Client|1.2.2}}  {{FuncDescription|Called when a (local) player presses the key to turn the horn on/off. You can return &#039;&#039;&#039;false&#039;&#039;&#039; to prevent turning it on.}}  {{...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=OnPlayerToggleVehicleHorn&amp;diff=4647&amp;oldid=prev"/>
		<updated>2021-01-09T12:23:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Info|Event|Client|1.2.2}}  {{FuncDescription|Called when a (local) player presses the key to turn the horn on/off. You can return &amp;#039;&amp;#039;&amp;#039;false&amp;#039;&amp;#039;&amp;#039; to prevent turning it on.}}  {{...&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.2}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Called when a (local) player presses the key to turn the horn on/off. You can return &amp;#039;&amp;#039;&amp;#039;false&amp;#039;&amp;#039;&amp;#039; to prevent turning it on.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|OnPlayerToggleVehicleHorn(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 turns on the horn, &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;OnPlayerToggleVehicleHorn&amp;quot;, function(vehicle, toggle)&lt;br /&gt;
    if toggle == true then&lt;br /&gt;
        return false -- do not allow the player to use the horn&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>