
Stream vehicles, maps and sounds
The launcher downloads encrypted DLC packages before starting the game. At the loading screen, the client mounts vehicles, maps and sounds in GTA. The server then fires PlayerConnect.
Add a packaged archive
Place these two files in the server directory as shown. Add adm3cst to the existing resources array in server.toml. The server reads content.xml and extracts nested open PC RPF7 archives.
- resources/adm3cst
- resource.toml
- stream
- dlc.rpf
type = 'dlc'
resources = ["adm3cst"]
Use loose files
Place models and textures under stream/assets/. Select the manifest in resource.toml. In stream.toml, declare the files supplied with your add-on. All paths are relative to the resource directory.
type = 'dlc'
main = 'stream.toml'
client-files = ['stream/*']
files = ['stream/assets/*']
[meta]
'stream/vehicles.meta' = 'VEHICLE_METADATA_FILE'
'stream/handling.meta' = 'HANDLING_FILE'
'stream/carcols.meta' = 'CARCOLS_FILE'
'stream/carvariations.meta' = 'VEHICLE_VARIATION_FILE'
An asterisk includes subdirectories. Use stream/* in both manifests to combine archives and loose files in one resource.
Maps and MLOs
Place the maps (.ymap), collisions (.ybn), models and textures in stream/. The YTYP defines the interior archetypes. Use your actual filename in the example and include any accompanying YMF files.
files = ['stream/*']
[meta]
'stream/hospital.ytyp' = 'DLC_ITYP_REQUEST'
Vehicle audio
In this example the adm3cst vehicle uses the ta122s58 audio profile. The game REL defines the profile, the sound REL references the banks, and the AWC files contain the recordings. Keep the original pack and bank names, including the NPC bank.
- stream/audio
- ta122s58_game.dat151.rel
- ta122s58_sounds.dat54.rel
- sfx/dlc_ta122s58
- ta122s58.awc
- ta122s58_npc.awc
For a standalone sound resource, use the same resource.toml as for a loose vehicle. The wavepack entry names the directory containing the AWC files. Each REL entry can use its physical filename or its logical .dat name.
files = ['stream/audio/*']
[meta]
'stream/audio/ta122s58_game.dat151.rel' = 'AUDIO_GAMEDATA'
'stream/audio/ta122s58_sounds.dat54.rel' = 'AUDIO_SOUNDDATA'
'stream/audio/sfx/dlc_ta122s58' = 'AUDIO_WAVEPACK'
Set the audio profile name in the existing vehicle entry in vehicles.meta. If the vehicle and its audio are separate resources, list the sound resource in the vehicle resource dependencies, for example deps = ["motorsound"].
<audioNameHash>ta122s58</audioNameHash>
Test in game
Start the server and connect using the launcher. Spawn the vehicle from a server script, get in and rev the engine. Have a second player check the exterior sound.
Net.CreateVehicle("adm3cst", player.Position, player.Rotation);
- Empty wavepack in server.log? Check the directory and make sure client-files includes the AWC files. Put the banks directly inside the declared folder.
- Wrong engine sound? Compare audioNameHash with the profile defined in the game REL. Look in client.log for the mounted wavepack and both REL entries.
- After changing a DLC already loaded by GTA, exit the game and reconnect through the launcher. It checks the resource cache on the next launch.