Simple meme resource which enables networked fart sounds to be emitted from a players entity. This resource has zero dependencies and can be influenced based on any audio occlusions configured within the game.
Included is a simple playerfart
command that you can use to test & explore the functionality.
This resource can easily be invoked by triggering a server side event on the target player. The event is configured to play a "networked" sound event, so all players will hear it.
TriggerClientEvent('tofu-farts:client:doFart', <player id>, 'fart01')
The only argument the event requires is the sound identifier which should be played. This resources comes with four (4) by default, all of which are DMCA and royalty free.
fart01
fart02
fart03
fart04
If you want to add or modify the sounds its a pretty simple process.
- Add a
.wav
formatted audio file totofu-farts/customfarts
directory.- Audio must be a Mono channel, 16bit PCM @ 44100Hz.
- Update
tofu-farts/customfarts.awc.xml
to add a new audio item entry. You can use the existing values as a good template of what is needed. - Open CodeWalker RPF Explorer, click the
mods
folder on the left menu.- Click "Edit mode" in top right corner
- In open space on right side,
right click -> Import XML
- Choose
tofu-farts/customfarts.awc.xml
, this will createcustomfarts.awc
- Select
customfarts.awc
and copy/drag that file to your Windows File Explorer.
- Update
data/customfarts_sounds.dat54.rel.xml
with the new audio files- Create a new
SimpleSound
item entry. You can use the existing values as a good template of what is needed. - Update the
SoundSet
at the bottom, referencing theSimpleSound
entry you have just created.
- Create a new
- Open CodeWalker RPF Explorer, click the
mods
folder on the left menu.- Click "Edit mode" in top right corner
- In open space on right side,
right click -> Import XML
- Choose
tofu-farts/customfarts_sounds.dat64.rel.xml
, this will createcustomfarts_sounds.dat64.rel
- Select
customfarts_sounds.dat64.rel
and copy/drag that file to your Windows File Explorer.
If you are wanting more information on game sounds the following repositories are a good source of information.