Help with figuring out how to rework vehicle model storage method

hello! i’ve been working on a car racing game, and as the car count expands, so do studio load times (and resources required), as well as some other things - i have been trying to figure out a way i could make my situation better and i landed on using an ID require with a bunch of model ids that InsertService will either insert whenever they’re needed, or will insert all of them at startup, with no need to have them all inside the studio.

This would also help tons when it comes to adjusting an individual car, because in the event that i have multiple maps in the future, i can avoid having to go map-per-map updating the car, which again, would mean more load times…

My issue is here, is this method i thought of practical and reliable at all? does anyone know any potentially more practical (or even just flat out better) methods? i’ve never really done anything of the sort, so this is a completely foreign thought for me, and i need all the help from more knowledgeable people as i can get.

many thanks in advance!

Hi, @ArisNeta .

Scripts, i think insertservice just add another time to load if loading in startup (assests get added)
and this would require every single car have your own code and things otherwise won’t work.

1 Like

insertservice’s LoadAsset is probably a good idea

You can share it across multiple places

Studio load time would be significantly less, and actual game load time would only suffer when the server first starts up (if you store the model once its inserted the first time)

And you don’t have to put code into each car. Each model would just hold the assets, and the game would have code to handle it. If you want to share code between places, you can also use packages

1 Like

i see, thanks for the comment (s) !

i wasn’t saying that the cars would have specific code, i was just saying that i’d have a (published) master module that housed every model id so that a script ingame could iterate through it at will

one big issue this causes for me is that it’d clog my inventory BAD, i don’t know if there’s any way that i could let the models be insertable using loadasset without them appearing in my inventory, would you happen to know?

probably impossible but what if you use an alt account just to store those models
or you could upload them under a group