Model does not load

Hello dear community,

I have an issue when I want to spawn an object. I have my onw resource which I’m developping, it contains a “stream” folder with the .ydr
When I want to spawn client side the object, I do that

if (!HasModelLoaded((uint)shishaPipeHash))
{
    RequestModel((uint)shishaPipeHash);
    while (!HasModelLoaded((uint)shishaPipeHash))
    {
        RequestModel((uint)shishaPipeHash);
        await Delay(0);
    }
}

and the code is stuck in that loop. I don’t have any error, just stuck in that loop.
I tried with another model and it works.

Is there a way to debug this kind of issue?
Thanks

You need to create a YTYP and a request to load the YTYP in your fxmanifest.

2 Likes

hello xotikorukx, thanks for your help.

I tried with another prop and it worked. Create a YTYP to make it loaded via the fxmanifest is like a workarround or it is mandatory and I was lucky with my other model ?

I’m not sure of all the details, but it was required in my case; being a prop that was not overriding one already in the game.

thanks xotikorukx. That way made it work for my project :slight_smile: