Need help with a data model

Let’s say I have a racing game. The player starts out with a low end car in the beginning of his career, but as he keeps on playing, he can unlock more cars. I need to be able to save information about what cars the player currently has or hasn’t unlocked. How do I represent this?

I have a SaveGame blueprint that is going to generate the save file. I just need this blueprint to organize the available cars that the player has in an efficient data model.

Should I make an array with a bunch of unique strings that represent each car, and store those unique strings if the player unlocked it? Or should I make an array of unique integer ID’s? Or is there a better way?

id say it all depends on what data your looking to store. for example if you are planning to allow the player to upgrade the cars then that could be a different case then id they cannot upgrade. you could probably make a struct with all the specs of the vehicle then make an array that is the type of the struct. that way each array index would be one vehicle and the vehicles stats could be saved. or if the stats dont need to be saved and its just a case of unlocked or not unlocked then you could easily make an array that is just boolean values, “isunlocked?” true or false.