mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Vehicle audio settings

Open TheNormalnij opened this issue 4 years ago • 13 comments

Hi, everybody. It's a old feature, that provide vehicle audio settings interface.

-- All functions are clinet-side
setVehicleModelAudioSetting( number modelID, eVehicleSoundSetting parameter, var value ) 
getVehicleModelAudioSetting( number modelID, eVehicleSoundSetting parameter )

setVehicleAudioSetting( vehicle theVehicle, eVehicleSoundSetting parameter, var value ) 
getVehicleAudioSetting( vehicle theVehicle, eVehicleSoundSetting parameter )

Possible parameters:

  • door-sound
  • engine-off-soundbank-id
  • engine-on-soundbank-id
  • horn-high (float)
  • horn-ton
  • horn-volume-delta (float)
  • radion-num
  • radio-type
  • sound-type
  • stereo
  • unk3
  • unk4
  • unk6
  • vehicle-type-for-audio

I didn't check this code last time. Maybe it can cause crash with wrong *-soundbank-id parameters

TheNormalnij avatar Sep 12 '21 10:09 TheNormalnij

What about RC Rider or RC Plane sound ?

Inder00 avatar Sep 12 '21 14:09 Inder00

What about RC Rider or RC Plane sound ?

They're just vehicles like infernus, dodo, jetmax etc, there should not be a problem with those.

Allerek avatar Sep 14 '21 19:09 Allerek

Merge conflicts must be resolved.

patrikjuvonen avatar Apr 08 '23 11:04 patrikjuvonen

This draft pull request is stale because it has been open for at least 90 days with no activity. Please continue on your draft pull request or it will be closed in 30 days automatically.

github-actions[bot] avatar Jul 08 '23 01:07 github-actions[bot]

Merge conflicts solved

TheNormalnij avatar Jul 14 '23 19:07 TheNormalnij

Nice feature. I think this should be added. Radio sync (#2781) is a different feature that can be added later.

Fernando-A-Rocha avatar Dec 18 '23 13:12 Fernando-A-Rocha

@TheNormalnij Please resolve conflicts and see if there's anything you would have done differently if you'd make this feature in 2024

Dutchman101 avatar Jun 16 '24 00:06 Dutchman101

Will it work with allocated model IDs (engineRequestModel) ?

Fernando-A-Rocha avatar Jul 14 '24 12:07 Fernando-A-Rocha