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

So im like 99% sure that i did this right. when i start up the server i get some errors about the streaming part.

Screenshot

You __resource.lua is wrong. Try to turn on hidden file extensions.

You’ll have to excuse me as im still new to this whole Modding/scripting thing. I am running Windows 10, how exactly would I go about doing this

@PotHead4897 when your streaming the cars, dont have anything in the __resource.lua.
https://gyazo.com/e15b4e037e653cae2150751c7d7f9a29
Then
https://gyazo.com/230a8ce57f1733290b45075fe339efb9

So i made it an actual .lua file with absolutly nothing in it. same thing happens.

@PotHead4897 C:/…/assets/__resources.lua.
wooow.
you have to put the folder not the file.
C:/…/assets/stream(folder)
the __resourece.lua stays in hte assets folder.

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

@PotHead4897 C:/…/assets/__resources.lua.
wooow.
you have to put the folder not the file.
C:/…/assets/stream(folder)
the __resourece.lua stays in hte assets folder.

You make no sense. My _resouce.lua is inside my assets folder. wooow.

put the __resourece.lua file into the assest folder along with making a stream folder where you place your yft and etc vehicle files.

Making the __resourece.lua can be empty do it with notepad ++

1 Like

It seems you only have one underscore in front of the __resource.lua file. There should be two.

My server is not starting, tried everything please help!!!
What I’m I doing wrong?

after doing this i cant log in my server i just crash and i did this on the newest update

doesn’t work for me,i did that you has said,but when i put spawnpoint 'name of ped" ect,don’t work when i spawn on my server

How do I have to enter this into the __resourece.lua?

@zoro you don’t need to __resourece.lua needs to be emty

Where you have put the resource in your citmp-server.yml (e.g. - assets) change the space in front of it from a tab to be spacebar spaces

It works thank yous!!! GREAT POST :grin:

Is this still the correct method as i cant seem to spawn in after loading screen

Yes of is

   

Is this after you updated your server?

If yes, are you using essentialmode?

If yes, did you change the Fivem = True back to Essentialmode = True in your map resource after copying the new server files?

^ If you don’t, this can cause your game to freeze after the loading screen.