ResetVehicleModelAudioSettings: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{client function}} __NOTOC__ {{New feature/item|3.0161|1.6.0|23140|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== <syntaxhighlight lang="lua"> bool resetVehicleModelAudioSettings ( int modelID ) </syntaxhighlight> ===Required Arguments=== *'''modelID:''' The vehicle model ID to reset audio settings for ===Return...") |
(No difference)
|
Revision as of 17:03, 25 July 2025
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.
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)