This is a nodeJS project to convert MP3 files to the specific standard to be used as FiveM native audio, and prepare XMLs for conversion with CodeWalk. Essentially, it automates the SimpleAudio process outlined in this repo from @ChatDisabled, which also includes a sample resource with usage. In addition, the script also prepares the radio station and track data to be used with Chat’s Custom Native Radio Stations resource.
Included, is also a script to convert all those OGG files that are used in xsound
and interact-sound
so that you can use them, without the need for those resources. Check out the below function for more information on usage:
- PlaySound - FiveM Natives @ Cfx.re Docs
- PlaySoundFromCoord - FiveM Natives @ Cfx.re Docs
- PlaySoundFromEntity - FiveM Natives @ Cfx.re Docs
- PlaySoundFrontend - FiveM Natives @ Cfx.re Docs
Features
- Converts MP3s to properly formatted WAVs for OpenIV conversion
- Prepares the necessary XMLs for OpenIV conversion
- Includes script to convert OGGs to MP3s, to be used in the generation tool.
Dependencies
nodeJS
CodeWalker the outputted WAV and XML data is imported into CodeWalker, to create the AWC and REL information