Need help streaming/spawning a YDR file

Hello, long time developer here but pretty new to FiveM. I’m hoping someone can point me in the right direction as I’ve been trying to figure this out all day.

What I would like to do is spawn this object in the world (it’s from the motel at coords: 152.2605, -1004.471, -98.99999)

I created a very basic resource to try and test this. When the resouce is loaded, press the HOME button and it will spawn you in the airport and attempt to create the bed, a tower and some garbage bags. I’m testing the bed and tower because one is a YDR file and the other is a YFT file.

Here are my results:

As you can see only the garbage bags appear. The bed and tower do not.

Is there something I’m doing wrong? I thought FiveM will see those new models if they’re in a stream directory. Do I need to convert the files or tell FiveM about them in my __resource.lua file?

Here is my test code:

Any help or direction on this would be helpful.

Thanks!

did you make a #typ and load it as DLC_ITYP_REQUEST?

1 Like

I didn’t. Is there any documentation floating around for that? I’m aware of the data file variable but I don’t know how to make a #typ file.

Looks like that did the trick. I realized that I needed to export that file along with the other YDR files and update my resources to:

resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
data_file 'DLC_ITYP_REQUEST' 'stream/v_int_49.ytyp'
client_script 'client.lua'

Thanks for you help!

2 Likes

Where did you get the .ytyp file from?

1 Like

I found mine researching this guys tutorials: Official Map Modding Tutorial (Part 3) : Making a custom ymap! | GTA5-Mods.com Forums