[How-to] Stream vehicles/models from server to client

Introduction

This tutorial is for people who host their own server and want to stream vehicles or models towards their players. Please note that this tutorial is written in the assumption you have already a basic server set-up and working. If not use the Support Forums for support on that.

Basics
  1. Open your main server folder, in this example the is path is C:\Server
  2. Navigate to C:\Server\resources
  3. In there you should see the following files;

image

Creating the stream folders

If you have the above sorted, you have confirmed you have a blank server. Now we need to add the stream path.

  1. Create another folder in \resources.
    You could give it any name but for this example I will name it \assets

image

  1. In this folder you should add another folder called stream.
  2. Also you will need to add a __resource.lua file.
    To create this file, just create a Wordpad file, rename it to __resource.lua it does not have to contain anything inside.

It should look like this:
image

Setting up streams

In the stream folder you can place the models you would like to stream.

  1. Inside C:\Server\resources\assets\stream create a folder wich has the same name as the model you want to stream.
    For this example we will stream the ambulance model.
  2. So should now have this path: C:\Server\resources\assets\stream\ambulance
  3. Place the .yft and .ytd files in here.

image

  1. You will need to make a new folder in \stream for each vehicle or model you wish to replace.

 

Add the stream files to your server.cfg

Put start assets after the other start <resource> entries

# you probably don't want to change these!
# only change them if you're using a server with multiple network interfaces
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

start mapmanager
start chat
start spawnmanager
start sessionmanager
start fivem
start hardcap
start â– â– â– â– â– â– â– 
start scoreboard
start playernames

sv_scriptHookAllowed 1

# change this
#rcon_password yay

# a comma-separated list of tags for your server
# for example: sets tags "drifting, cars, racing" or sets tags "roleplay, military, tanks"
sets tags "default"

sv_hostname "My new FXServer!"

# nested configs!
#exec server_internal.cfg

# loading a server icon (96x96 PNG file)
#load_server_icon myLogo.png

# convars for use from script
set temp_convar "hey world!"

# disable announcing? clear out the master by uncommenting this
#sv_master1 ""

# want to only allow players authenticated with a third-party provider like Steam?
#sv_authMaxVariance 1
#sv_authMinTrust 5

# add system admins
add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don't allow quit
add_principal identifier.steam:110000112345678 group.admin # add the admin to the group

# remove the # to hide player endpoints in external log output
sv_endpointprivacy true

# server slots limit (must be between 1 and 31)
sv_maxclients 30

# license key for server (https://keymaster.fivem.net)
sv_licenseKey changeme```

##### Restart your server and enjoy!
25 Likes

Might want to note that that cache in Server/cache/http-files/[streamedresourcename].rpf/.sfl will need to be deleted every time new files are added to be streamed otherwise the newly-added mods will not be streamed in game.

3 Likes

I dont know what to type in the citmp-server.yml

1 Like

@Swemodz3 look below.

AutoStartResources:
- fivem
- assets
- chat
- spawnmanager
- fivem-map-skater
- baseevents

1 Like

it dousent work i dont realy understand

1 Like

Just follow the steps above, step by step. Its really everything that can be explained.

3 Likes

i’m not so good at english that is the problem i need a video tutorial :slight_smile:

1 Like

Sup, how do I stream maps? Is it a different process altogether? I’m really looking at trying to run Vice City on the game but just don’t know how. Any help would be appreciated.

1 Like

how to add Add-on cars?) example is https://www.gta5-mods.com/vehicles/2015-bmw-i8

@Boss I asked a normal question in the forum, why blocked my topic? I did not get the correct answer http://www.fivereborn.com/topic/355/how-to-add-add-on-cars-server-side
how to add Add-on cars?) example is https://www.gta5-mods.com/vehicles/2015-bmw-i8

@Kaka_kz at this point you can’t use add-on cars. Only replace. That’s because this line;

\Grand Theft Auto V\update\update.rpf\common\data\extratitleupdatedata.meta

is not working.

@Boss thx

@Kaka_kz said in How to Stream Vehicles/Models [SERVERSIDED CARMODS]:

@Boss I asked a normal question in the forum, why blocked my topic? I did not get the correct answer http://www.fivereborn.com/topic/355/how-to-add-add-on-cars-server-side
how to add Add-on cars?) example is https://www.gta5-mods.com/vehicles/2015-bmw-i8

No one answered you because it’s been answered several times.

Open the .rpf with openiv. look for the car files. They look like this: “banshee.yft, banshee.ytd, banshee_hi.ytd”. The files in the add on pack will likely say bmwi8.ytd, or whatever addon car you’re trying to add.

Extract those files to a folder. Rename them to a car that exists in the game already. here’s a list.

Put those files in the resources/assets/stream folder you created for your server.

How do you add .meta files and upgrade files?

can someone make a video tutorial?

2 Likes

@bubbajack1038 pictures isn’t enough? Its all there…

@Boss How do you add .meta files and upgrade files?

@pipje2001
You can’t stream .meta files, but you can stream models of existing upgrade parts for existing cars in the game.

@alfieengland Yeah really! Thanks for the comment, it helped me a lot! lol

after I did this my server won’t even launch and yes I tried running as administrator

1 Like