TYMECRUISER47 Posted December 16, 2023 Share Posted December 16, 2023 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
FernandoMTA Posted December 18, 2023 Share Posted December 18, 2023 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
TYMECRUISER47 Posted December 20, 2023 Author Share Posted December 20, 2023 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! Link to comment
MTA Team 0xCiBeR Posted December 23, 2023 MTA Team Share Posted December 23, 2023 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now