[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;

Folder

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

alt text

  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:
alt text

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.

alt text

  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 rconlog
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!
12 Likes
How to add police vehicles into an FX Server
Add on Vehicles Help
How do I add Liveries?
Vehicle to resource
AutoStartResources
FiveM Server Custom Skins
How to get Add-On vehicles
How to install cars on {fx} sever
[Help] How to stream this addon ped?
[Help] Addon Peds
[Request] EUP / Emergency Uniforms Pack
Make a ped for Fivereborn
Streaming & Adding Liverys to vehicles
Trouble adding serverside cars
[Release][ES] Weapon Store [v1.1]
Installing Custom Uniforms
How to setup a police server?
Looking for Texas based police ,sheriff,highway cars
Need help adding vehicles
[Release] Vehicle shop by Arturs
[How-to] Create commands like /showid and how to make login bar when get in game
Car installatin
[VIDEO] How To make custom vehicle textures!
How Can I Make It So People Automatically See Custom Cars
How do ı add vehicles to my server?
Replaced vehicles are not replaced
Help with WTD Files
How does one add/replace cars on hosted servers by using filezilla?
[Release] Colored Map (Pause Menu)
[Help] Adding additional vehicles (ex: police5, police6)
Replace models and cars
Helpful scripting & modding resources
[HELP] Liveries only show up for me
Vehicle Skins
HELP! Is there anyway I can get this GTA 5 mod installed on my FiveM server?
Modding help
How do i add custion cars
How to stream Texture of a Vehicle?
How Do i install these types of vehicles?
Gun Models - Client Side?
Install British Uniforms
[REQUEST] Police Supercar Model
Someone could help me. ADD-ON
Zap-Hosting Help needed
Where to put .yft and .ytd files?
Help with cars
Hello can you say me how i put Police Cars on my Zap-Hosting Server
Needing help for my server
Model Transfering
[How-to] Fix failed ZLIB call
[FIVEREBORN SERVER] How to install custom vehicles?!
Custom stuff insall
Please send me server files of a server with modded cars!
FiveReborn server how to add mod plugin
Multiplayer model
Addon car tutorial help
[Release] Colored Hud ( Weapons / Radio / blips )
Custom cars crash game!

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.

1 Like

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

@Swemodz3 look below.

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

it dousent work i dont realy understand

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

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

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.

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?

1 Like

@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