<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/SetVehicleAudioSetting?action=history&amp;feed=atom</id>
	<title>SetVehicleAudioSetting - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/SetVehicleAudioSetting?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleAudioSetting&amp;action=history"/>
	<updated>2026-06-24T23:15:11Z</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=SetVehicleAudioSetting&amp;diff=82291&amp;oldid=prev</id>
		<title>Mohab at 18:00, 25 July 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleAudioSetting&amp;diff=82291&amp;oldid=prev"/>
		<updated>2025-07-25T18:00:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&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 18:00, 25 July 2025&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-l57&quot;&gt;Line 57:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 57:&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;*[[setVehicleModelAudioSetting]]&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;*[[setVehicleModelAudioSetting]]&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;*[[getVehicleModelAudioSettings]]&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;*[[getVehicleModelAudioSettings]]&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;{{Vehicle functions|client}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-82285:rev-82291 --&gt;
&lt;/table&gt;</summary>
		<author><name>Mohab</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehicleAudioSetting&amp;diff=82285&amp;oldid=prev</id>
		<title>Mohab: Created page with &quot;{{client function}} __NOTOC__ {{New feature/item|3.0161|1.6.0|23140|This function sets audio properties for a '''specific vehicle instance'''. It allows customization of various vehicle sound settings such as engine sounds, horn characteristics, door sounds, and radio settings.}}  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool setVehicleAudioSetting ( element vehicle, string property, float value ) &lt;/syntaxhighlight&gt;  ===Required Arguments=== *'''vehicle:''' The vehicle el...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleAudioSetting&amp;diff=82285&amp;oldid=prev"/>
		<updated>2025-07-25T17:31:54Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{client function}} __NOTOC__ {{New feature/item|3.0161|1.6.0|23140|This function sets audio properties for a &amp;#039;&amp;#039;&amp;#039;specific vehicle instance&amp;#039;&amp;#039;&amp;#039;. It allows customization of various vehicle sound settings such as engine sounds, horn characteristics, door sounds, and radio settings.}}  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool setVehicleAudioSetting ( element vehicle, string property, float value ) &amp;lt;/syntaxhighlight&amp;gt;  ===Required Arguments=== *&amp;#039;&amp;#039;&amp;#039;vehicle:&amp;#039;&amp;#039;&amp;#039; The vehicle el...&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.0161|1.6.0|23140|This function sets audio properties for a '''specific vehicle instance'''. It allows customization of various vehicle sound settings such as engine sounds, horn characteristics, door sounds, and radio settings.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setVehicleAudioSetting ( element vehicle, string property, float value )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''vehicle:''' The vehicle element to modify audio settings for&lt;br /&gt;
*'''property:''' The audio property to set. Valid properties are:&lt;br /&gt;
**&amp;quot;doorSound&amp;quot; - Door sound effects&lt;br /&gt;
**&amp;quot;engineOffSoundBankID&amp;quot; - Engine off sound bank ID (0-410)&lt;br /&gt;
**&amp;quot;engineOnSoundBankID&amp;quot; - Engine on sound bank ID (0-410)&lt;br /&gt;
**&amp;quot;hornHigh&amp;quot; - Horn high frequency&lt;br /&gt;
**&amp;quot;hornTon&amp;quot; - Horn tone&lt;br /&gt;
**&amp;quot;hornVolumeDelta&amp;quot; - Horn volume delta&lt;br /&gt;
**&amp;quot;radioNum&amp;quot; - Radio number&lt;br /&gt;
**&amp;quot;radioType&amp;quot; - Radio type&lt;br /&gt;
*'''value:''' The numerical value to set for the specified property&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the audio setting was successfully applied, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
{{Tip|This function modifies the audio settings for a '''specific vehicle instance''', while [[setVehicleModelAudioSetting]] modifies the audio settings for all vehicles of a specific model. Changes made with setVehicleModelAudioSetting only affect newly created vehicles of that model, while changes made with setVehicleModelAudioSetting affect all newly created vehicles of that model.}}&lt;br /&gt;
&lt;br /&gt;
{{Note|Sound bank IDs for engine sounds must be 410 or lower. Values above this limit will be rejected. Changes only affect the specified vehicle instance. Other vehicles of the same model will retain their original audio settings. This function only works with standard vehicle models and cannot modify audio settings for vehicles that are already spawned.}}&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Modify the engine sound for a specific vehicle&lt;br /&gt;
local vehicle = createVehicle(411, 0, 0, 3)&lt;br /&gt;
setVehicleAudioSetting(vehicle, &amp;quot;engineOnSoundBankID&amp;quot;, 150)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Customize horn settings for a specific vehicle&lt;br /&gt;
local vehicle = createVehicle(560, 100, 100, 3)&lt;br /&gt;
setVehicleAudioSetting(vehicle, &amp;quot;hornHigh&amp;quot;, 1.5)&lt;br /&gt;
setVehicleAudioSetting(vehicle, &amp;quot;hornTon&amp;quot;, 0.8)&lt;br /&gt;
setVehicleAudioSetting(vehicle, &amp;quot;hornVolumeDelta&amp;quot;, 2.0)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Configure radio and door sounds for a specific vehicle&lt;br /&gt;
local vehicle = createVehicle(562, 200, 200, 3)&lt;br /&gt;
setVehicleAudioSetting(vehicle, &amp;quot;radioNum&amp;quot;, 5)&lt;br /&gt;
setVehicleAudioSetting(vehicle, &amp;quot;radioType&amp;quot;, 2)&lt;br /&gt;
setVehicleAudioSetting(vehicle, &amp;quot;doorSound&amp;quot;, 1.2)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
*[[getVehicleAudioSettings]]&lt;br /&gt;
*[[resetVehicleAudioSettings]]&lt;br /&gt;
*[[setVehicleModelAudioSetting]]&lt;br /&gt;
*[[getVehicleModelAudioSettings]]&lt;/div&gt;</summary>
		<author><name>Mohab</name></author>
	</entry>
</feed>