Client-side DLC packs on FiveM (mods folder)
This is not about texoverride. It is a note on how to run a GTA V DLC pack, such as a vehicle audio pack, on the FiveM client without server cooperation. It is written down because working it out took a long evening and one wrong turn, and the answer is three lines of XML.
The short version
Wrap the dlc.rpf in a mods-folder package whose assembly.xml has a top level <add> inside
<content>, pointing at a dlcpacks path:
<content>
<add source="mypack.rpf">update\x64\dlcpacks\myslot\dlc.rpf</add>
</content>
Package layout, all one .rpf with OPEN (unencrypted) headers:
My Pack.rpf
assembly.xml
content/mypack.rpf <- the dlc.rpf, byte for byte
Drop it in %LOCALAPPDATA%\FiveM\FiveM.app\mods\. No dlclist edit, no changes to the real
game folder. Requires the server to have pure mode off, like every mods-folder package.
The bit that is easy to get wrong
<add> behaves completely differently depending on where it sits:
| where | what it does |
|---|---|
inside <archive path="..."> |
inserts a file into an archive that already exists |
directly inside <content> |
writes a file at a game-relative path, creating it if needed |
Only the second form can create a dlcpack. Testing only the first leads to the conclusion that client-side DLCs are impossible on FiveM, which is wrong.
Several packs in one file
<content> takes as many top-level <add> entries as you like, so several DLCs can ship as a single
mods-folder file. Give each its own slot name or they overwrite each other:
<content>
<add source="setA.rpf">update\x64\dlcpacks\mods\dlc.rpf</add>
<add source="setB.rpf">update\x64\dlcpacks\modsb\dlc.rpf</add>
</content>
Where two packs define the same thing, the slot that mounts later wins.
What does not work, and why
- Editing
dlclist.xml. Refused by Cfx outright. Their words: "Not going to happen. DLCs load too early for server reloading to remain working with this kind of feature." The archive count is also hard-coded by Rockstar and protected by Arxan code guards. - Dropping a dlcpack into the real
update/x64/dlcpacks/folder. That directory is hash validated; you get "modified game files". The mods-folder route avoids this because nothing on disk changes, the file only exists in FiveM's virtual view. - Merging a vehicle audio DLC into vanilla
game.dat/sounds.dat. Dat54 entries reference wave banks by index into their own file's name table, so concatenating entries from many files silently mis-points all of them. FiveM never merges; it registers each file separately. - Registering the audio data files from an ASI, by calling the game's own
audMetadataDataFileMounter/audWavePackDataFileMounter. This gets a long way and then crashes inside the game's loader. A file from a pack that demonstrably works as a server resource crashes identically, so it is the loose-folder approach that is wrong, not the files.
Replacing built-in game audio
Weapon fire, impacts, engine notes. This looks like a file replacement and every route that treats it as one fails silently:
- A mods-folder
<archive path="x64\audio\sfx\WEAPONS_PLAYER.rpf">is dropped. Onlyupdate.rpf,x64a.rpftox64w.rpfandcommon.rpfmap as archive targets. - An
addons/overlay carryingplatform/audio/sfx/RESIDENT.rpfmounts once encrypted, and changes nothing.
The route that works is not a replacement. A DLC wave pack whose container folder is named the same
as a base container shadows it. Name your AUDIO_WAVEPACK folder weapons_player and the base
game's own config keeps asking for WEAPONS_PLAYER\PTL_PISTOL and lands on your bank. No .rel
editing, no name tables, no merging.
dlc.rpf
setup2.xml deviceName dlc_wepsnd, EXTRACONTENT_COMPAT_PACK, GROUP_STARTUP changeset
content.xml one AUDIO_WAVEPACK per container, disabled=true, enabled by the changeset
x64/audio/sfx/weapons_player/ 22 .awc name matches the vanilla container
x64/audio/sfx/resident/ 16 .awc
Then wrap it as a pseudo-DLC exactly like any other pack.
Ship the container complete. The shadow is per container, not per file. A folder holding five of RESIDENT's sixteen banks takes the other eleven with it and collision, vehicle and explosion audio go quiet. Extract the vanilla container, overlay the banks you are changing, ship all of them.
Cost scales with what you edited rather than what the archive contains: replacing whole archives
meant a 150 MB RESIDENT.rpf, while shipping only the changed weapon banks is 4.3 MB.
Two opposite requirements that are easy to invert:
| Folder | Encryption |
|---|---|
mods/*.rpf |
must be unencrypted (OPEN) |
addons/*.rpf |
must be encrypted |
Either one wrong and the file is ignored with no error. If you generate an RPF with a tool rather than OpenIV, run ArchiveFix over it before deciding the mod does not work.
Vanilla vehicles
Expect custom sound to work on DLC and add-on vehicles and to be unreliable on vanilla ones. The dlcpack mounts after the base audio config has already defined those vehicles. Pack authors hit this too and generally drop the vanilla entries rather than fight it.
Building one
Any RPF tool that can write OPEN archives will do. With CodeWalker.Core, note that
RpfFile.CreateFile writes a nested .rpf and then re-scans it to build an in-memory tree; that
scan can throw on an embedded NG-encrypted dlc.rpf even though the bytes on disk are already
complete and correct. Catch it, then reopen the finished package and check both members are present
and the inner archive is its original byte length.