Jump to content

Vehicle Sound SFX Swap


TYMECRUISER47

Recommended Posts

Hi! I recently played on a server that had swapped sounds for cars. Not Customs.

What I would like to do for example is using the Tractors sound for the Greenwood.

Is it Possible to change the sound with a script or do I have to use the Tractor sound as a "custom sound" ?

Thanks in advance if anyone has any ideas.

Link to comment

Hello, from my understanding what you can do is:
 

- disable vehicle engine sounds (and the ones you want to replace) using https://wiki.multitheftauto.com/wiki/SetWorldSoundEnabled - https://wiki.multitheftauto.com/wiki/World_sound_groups 

 

- play custom sounds using playSound and playSound3D

You can't just "replace" game sounds sadly, they need to be first disabled then you may use custom MTA functions to play sounds.

You could use these scripts for inspiration, but I don't recommend using the entire resource in your server because this is a bit outdated and could be better optimized.

https://github.com/brzys/bengines 

@TYMECRUISER47

Link to comment
  • Administrators
On 20/12/2023 at 20:10, TYMECRUISER47 said:

Well that's bad news for me, i don't want to use customs beacuse they are usually wonky and glitchy.

Thanks for your help anyways!

Define wonky and glitchy? It depends really on if your script is properlly programmed.
I haven't had issues with either functions not behaving as intended.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...