As per last few days in #support, myself and a few others have been encountering infinite loading screen when loading into a house that has furniture placed. Common issue we saw was the model was failing to load, and this simply fixes it.
Details
During debugging, I noticed IsModelInCdimage() and IsModelValid() was returning false for certain house objects in random spots of the map. I managed to track down that the ytyp for specific objects was not loaded within those areas - bypass would be to set the YTYP as permament as per method included in the changes.
UI Changes / Functionality
See fxmanifest.lua to see fix
Testing Steps
Check if a model exists by using IsModelValid or IsModelInCdimage
Fly around the map until it turns false
You replicated the issue.
[x] Did you test the changes you made?
[x] Did you test core functionality of the script to ensure your changes do not regress other areas?
[x] Did you test your changes in multiplayer to ensure it works correctly on all clients?
Overview
As per last few days in #support, myself and a few others have been encountering infinite loading screen when loading into a house that has furniture placed. Common issue we saw was the model was failing to load, and this simply fixes it.
Details
During debugging, I noticed IsModelInCdimage() and IsModelValid() was returning false for certain house objects in random spots of the map. I managed to track down that the ytyp for specific objects was not loaded within those areas - bypass would be to set the YTYP as permament as per method included in the changes.
UI Changes / Functionality
See fxmanifest.lua to see fix
Testing Steps