19.02.2015, 15:25
I don't think there is a way to set vehicle ID's.
What you could do though is to create a vehicle even if the file isn't there and delete them when the loop has finished. I don't recommend doing that though, as it will cause an even worse fuss with ID's when you create cars in game then.
Another option is to run a loop when loading the cars. A loop that renames all the files in order.
As for the renaming, you have to take a look around the forum for how to do it.
What you could do though is to create a vehicle even if the file isn't there and delete them when the loop has finished. I don't recommend doing that though, as it will cause an even worse fuss with ID's when you create cars in game then.
Another option is to run a loop when loading the cars. A loop that renames all the files in order.
PHP код:
CreateVehicle(........);
new String[100];
format(String, sizeof(String), "Car %d", vehicleid);
Rename(oldname[], newname[]);