[How-to] Stream addon props

You need OpenIV, nodejs, npm and this tool :

npm install -g ymap-utils

If you installed it at the time I written my previous tutorial [How-to] Map an interior and stream it in FiveM you have to update it to 2.1.1

npm update -g

Create a props folder inside resources then add start props in your server.cfg.
Create a stream folder inside props and a file named __resource.lua with this content :

resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"

data_file 'DLC_ITYP_REQUEST' 'stream/props.ytyp'

Add your props and texures to the stream folder.

If you have a file named the_prop.ydr rename its texture to the_prop.ytd, this is important, ydr and ytd must have the same file name before extension so we can automate the process.

Using four favorite file explorer, grab the full path to the stream\props folder, for me this is C:\Users\NGD\Desktop\fxserver\resources\props

now open a command prompt and type :

ytyp --genprops --directory "C:\Users\NGD\Desktop\fxserver\resources\props\stream"

The program generate a file named props.ytyp.xml

Put OpenIV in Edit Mode and drop the file in it, then drop it back to the stream folder, now you have props.ytyp

You can now spawn the object

  • With your favorite map editor
  • Using CreateObject
  • Using ESX : /spawnobject the_prop
29 Likes

Very Nice Tutorial! Thanks, GiZz

2 Likes

Tutorial rewritten as it was not working properly with previous method.

Thanks for the Tuto GiZz!

1 Like

would u happen to have a tutorial to addon peds by chance?

2 Likes

How does this work? I cant seem to continue “ytyp --genprops --directory “D:\FiveMServer\resources\props\stream”” on that code. It doesnt create any props.ytyp.xml? =/

NVM It sent the File to another location? :o But getting another error when putting the file in OpenIV = “Failed to initialize Direct3D”

@GiZz Can you confirm this is still working on latest versions because I have not been able to accomplish it as of late.

Thx very much for this tutorial, and if you have an .yft there is a way to do the same?
I tried to change “yft” to “ydr” , do the same process and the model spawn but when I touch it the model go under the ground. Do you know how to do properly or how to fix that? Thx

When I did this method, the addon-props on the map are invisible, meaning you can walk on them but can’t see them. How can I fix this? Also all the files in my stream folder are .ydr files.

2 Likes

Do you need to have ytd files? I have had no luck trying to get this to work.

2 Likes

If you cant find the props.ytyp.xml use the search feature in File Explorer because it may be located somewhere else

1 Like

I can spawn the addon props with “/spawnobject” but when I put it in a map Server dont load the addon props. Anybody can help? Or know why is this happening?
Thx

1 Like

Worked perfectly, cheers.

Anyone that can’t find the props.ytyp.xml, check the location your console was in when you run the command. It will probably store it there.

1 Like

couldn’t load resource i don’t know why?

Tutorial outdated use GTAUtil instead https://github.com/indilo53/gtautil/releases/latest

gtautil genpropdefs --input 'path\to\*.ydr'
2 Likes

Hello, I was wondering if you can explain a way on how to add props to a menu that is made from scratch. :slightly_smiling_face:

How can i stream the pack of

Custom Props Add-On [BETA 3]?

1 Like

I’ve done it


Because you can’t normally stream props from custom props add-on on fivem, so i’ve tried to fix it, and I congrat partially.

If anyone needs help about this topic I’ve managed to spawn add-on props, so I can help you.

Do you happen to know how to stream replacement props? I have been trying to do so recently but haven’t had any luck. I managed to get addon props working though