<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/GetVehicleAudioSettings?action=history&amp;feed=atom</id>
	<title>GetVehicleAudioSettings - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/GetVehicleAudioSettings?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetVehicleAudioSettings&amp;action=history"/>
	<updated>2026-05-07T11:46:19Z</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=GetVehicleAudioSettings&amp;diff=82290&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=GetVehicleAudioSettings&amp;diff=82290&amp;oldid=prev"/>
		<updated>2025-07-25T18:00:31Z</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-l64&quot;&gt;Line 64:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 64:&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;*[[resetVehicleModelAudioSettings]]&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;*[[resetVehicleModelAudioSettings]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&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;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Client_Functions]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-82287:rev-82290 --&gt;
&lt;/table&gt;</summary>
		<author><name>Mohab</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetVehicleAudioSettings&amp;diff=82287&amp;oldid=prev</id>
		<title>Mohab: Created page with &quot;{{client function}} __NOTOC__ {{New feature/item|3.0161|1.6.0|23140|This function retrieves the current audio properties for a specific vehicle instance. It allows inspection of various vehicle sound settings such as engine sounds, horn characteristics, door sounds, and radio settings that may have been customized for this particular vehicle.}}  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; table getVehicleAudioSettings ( vehicle theVehicle ) &lt;/syntaxhighlight&gt;  ===Required Ar...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetVehicleAudioSettings&amp;diff=82287&amp;oldid=prev"/>
		<updated>2025-07-25T17:47:35Z</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 retrieves the current audio properties for a specific vehicle instance. It allows inspection of various vehicle sound settings such as engine sounds, horn characteristics, door sounds, and radio settings that may have been customized for this particular vehicle.}}  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; table getVehicleAudioSettings ( vehicle theVehicle ) &amp;lt;/syntaxhighlight&amp;gt;  ===Required Ar...&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 retrieves the current audio properties for a specific vehicle instance. It allows inspection of various vehicle sound settings such as engine sounds, horn characteristics, door sounds, and radio settings that may have been customized for this particular vehicle.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getVehicleAudioSettings ( vehicle theVehicle )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theVehicle:''' The vehicle element to retrieve audio settings from&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''table'' containing audio settings if successful, ''false'' otherwise. The returned table contains the following properties:&lt;br /&gt;
*'''sound-type''' - Sound effect type (integer)&lt;br /&gt;
*'''engine-on-soundbank-id''' - Engine startup sound bank ID (0-410)&lt;br /&gt;
*'''engine-off-soundbank-id''' - Engine shutdown sound bank ID (0-410)&lt;br /&gt;
*'''bass-setting''' - Bass settings (float)&lt;br /&gt;
*'''bass-eq''' - Bass equalizer (float)&lt;br /&gt;
*'''field-c''' - Field C parameter (float)&lt;br /&gt;
*'''horn-ton''' - Horn tone (float)&lt;br /&gt;
*'''horn-high''' - Horn high frequency (float)&lt;br /&gt;
*'''engine-upgrade''' - Engine upgrade sound effect (float)&lt;br /&gt;
*'''door-sound''' - Door sound effects (float)&lt;br /&gt;
*'''radio-num''' - Radio number (float)&lt;br /&gt;
*'''radio-type''' - Radio type (float)&lt;br /&gt;
*'''vehicle-type-for-audio''' - Audio vehicle type (float)&lt;br /&gt;
*'''horn-volume-delta''' - Horn volume delta (float)&lt;br /&gt;
&lt;br /&gt;
{{Note|This function returns the current audio settings for the specific vehicle instance. If the vehicle has custom audio settings applied via [[setVehicleAudioSetting]], those will be returned. Otherwise, it returns the default model audio settings.}}&lt;br /&gt;
&lt;br /&gt;
{{Warning|Sound bank IDs above 410 may cause crashes. The valid range is 0-410 for engine sound bank properties.}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Get the player's current vehicle and display its audio settings&lt;br /&gt;
local player = getLocalPlayer()&lt;br /&gt;
local vehicle = getPedOccupiedVehicle(player)&lt;br /&gt;
&lt;br /&gt;
if vehicle then&lt;br /&gt;
    local settings = getVehicleAudioSettings(vehicle)&lt;br /&gt;
    if settings then&lt;br /&gt;
        outputChatBox(&amp;quot;=== Vehicle Audio Settings ===&amp;quot;)&lt;br /&gt;
        outputChatBox(&amp;quot;Sound Type: &amp;quot; .. tostring(settings[&amp;quot;sound-type&amp;quot;]))&lt;br /&gt;
        outputChatBox(&amp;quot;Engine On Sound Bank: &amp;quot; .. tostring(settings[&amp;quot;engine-on-soundbank-id&amp;quot;]))&lt;br /&gt;
        outputChatBox(&amp;quot;Engine Off Sound Bank: &amp;quot; .. tostring(settings[&amp;quot;engine-off-soundbank-id&amp;quot;]))&lt;br /&gt;
        outputChatBox(&amp;quot;Horn Tone: &amp;quot; .. tostring(settings[&amp;quot;horn-ton&amp;quot;]))&lt;br /&gt;
        outputChatBox(&amp;quot;Horn High: &amp;quot; .. tostring(settings[&amp;quot;horn-high&amp;quot;]))&lt;br /&gt;
        outputChatBox(&amp;quot;Door Sound: &amp;quot; .. tostring(settings[&amp;quot;door-sound&amp;quot;]))&lt;br /&gt;
        outputChatBox(&amp;quot;Radio Type: &amp;quot; .. tostring(settings[&amp;quot;radio-type&amp;quot;]))&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox(&amp;quot;Failed to retrieve vehicle audio settings.&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
else&lt;br /&gt;
    outputChatBox(&amp;quot;You must be in a vehicle to use this command.&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
*[[getVehicleModelAudioSettings]]&lt;br /&gt;
*[[setVehicleAudioSetting]]&lt;br /&gt;
*[[resetVehicleAudioSettings]]&lt;br /&gt;
*[[setVehicleModelAudioSetting]]&lt;br /&gt;
*[[resetVehicleModelAudioSettings]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Client_Functions]]&lt;/div&gt;</summary>
		<author><name>Mohab</name></author>
	</entry>
</feed>