ResetVehicleModelAudioSettings

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.6.0 r23140:
This function resets all audio settings for a specific vehicle model back to their original GTA San Andreas values. This will undo any modifications made with setVehicleModelAudioSetting.

Syntax

bool resetVehicleModelAudioSettings ( int modelID )

Required Arguments

  • modelID: The vehicle model ID to reset audio settings for

Returns

Returns true if the audio settings were successfully reset, false otherwise.

[[{{{image}}}|link=|]] Note: This function only works with standard vehicle models and cannot reset audio settings for allocated vehicles. Changes only affect newly created vehicles. Existing vehicles will retain their current audio settings.

Example

-- Modify engine sound for Infernus (model 411)
setVehicleModelAudioSetting(411, "engineOnSoundBankID", 200)
setVehicleModelAudioSetting(411, "hornHigh", 2.0)

-- Reset all audio settings back to original
resetVehicleModelAudioSettings(411)

-- New vehicles will now use original audio settings
local vehicle = createVehicle(411, 0, 0, 3)


See Also