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

What you seem to be doing (and I might be wrong here as I don’t see your folder structure) is attempting to load a model (police4) directly on the server side. Unless your resource file is labeled police4.lua. Having a screenshot of your resource directory would go a long way in getting you back on track. What you should have is a folder that uses your mod name, as an example “assets” within that folder should be a stream folder, and your controlling __resources.lua file. inside the stream folder should be a police4 folder (as that appears to be the vehicle you are working with), and your vehicle files (.yft and .ytd)should be in there. in your citmp-server.yml file you should not see a police4 asset, but instead an assets one (if you used the example above.) if you continue to have the issue, try moving the .yft and .ytd files out of the police4 directory, so that they are loose files in the stream folder.

Hope this helps!

Hey guys,

Is it possible to stream (or at least pre-load) ped models with the following format? (See attached screenshots)

If so, how is this achieved? I’ve not been able to figure it out when the ytd/ydd files are all separate.

Capture1Capture2

1 Like

How do I set them as default police cars?

Im trying to figure out the same… Keep getting crashes no matter which way I go about this.

Works great withelse that i need to somehow add the vehicle to the ESX_Cardealer list, i have my phpmyadmin up and in the “vehicle” tab but i need the ID of the car am i right?

Got a link to ESX_Cardealer? Been looking for it but couldn’t find it…

I’m not sure what streaming is. Is that to have scripts/models/vehicles etc that you have personally, as a server sided thing?

For example, Mello trainer is server sided, Lambda Menu is not but if I streamed it then it would be?

I’m pretty noob so thanks in advance for your help.

1 Like

It’s called a server.cfg file ever since FXServer was released.

@FAVORABLE_BRAINCASE Message me if you know how and give me the files and i will fix it for you :wink:

it work but i can not punch other player or ped
ony can shooting when i use the gun …

so when i use non stream character i can punch to other player and ped …

what wrong with stream methode ? does it need additional file such as meta file to get all ped action work ?

The same way. Just you dont need the meta files.

is this for addons too?

I’ve edit the post to be compatible with the new FX server. So people no longer get caught on the citmp-server.yml thing :slight_smile:

+ Added the new default server config.

1 Like

keeps coming up with failed to start assets when i try and load into the server. im using a vps will that change anything? does gta v have to be installed on the vps? i need help please

no, having a VPS does not change anything.
no, you do not need GTA V installed on your VPS.

Whatever asset resource you are trying to load is misconfigured. Need a little bit of more info to know what is wrong. Have a look into your CitizenFX.log after you tried to connect to the server and see if you see any errors regarding that resource

Hi, does anyone have any idea how to add a vehicle such as this?
(or if it is even possible)
Heinkel 111

I tried, both using this guide and this one: https://github.com/mecwerks/fiverebornstuff/tree/master/addon-convert

The server started no problem both times but I was unable to spawn the plane in by any name (including renaming the file to “ambulance” when I followed this guide).

ok I have followed this correctly and still no luck I have deleted my server caches and aslo still no luck and don’t ask if I have two underscore before resource because I do here is how my server is set out if someone can help me that would be awesome

FXServer\serverdata\resources\emergency
in the emergency folder I have two things the stream folder and an empty __resource.lua file like said

FXServer\serverdata\resources\emergency\stream
in this stream folder I have folders like shown in this picture: https://drive.google.com/file/d/1VhnFK5hWxeYbGUrvCCJrXBrNHDZsGH1M/view?usp=sharing

than in those folders I will have all the files I think are required so in the ambulance folder I have ambulance.yft, ambulance.ytd and ambulance_hi.yft please help this is the same with all the other folders but different names

Note: I did change the file names like for so ambulance.yft use to be firetruck.yft if this does effect it please let me know

Can i some how, get the .ydd and .ytd files, or does i need .ytf, for it will work?

I’ve done everything very carefully, tried your method and using an addon car installer. Every time I go to spawn them in vMenu, its says make sure content is streaming correctly. Any ideas?

can i stream my own outfit for policejob on online players? i want to have my own uniforms and the online players can take only the police guys!