22.07.2015, 21:17
Quote:
When you do /vdelete just set the vehicle to an unused model. For example 411(Infernus), save the vehicle in the DINI files, then DestroyVehicle it. In the script files it will show the vehicle model ID as being 411.
/vcreate will overwrite the car that you have previous /vdelete'd, but if you don't create a new vehicle before a restart then simply set a timer OnGameModeInti of maybe 5 seconds, that deletes all cars that have the model 411. That way cars spawn with their matching DINI file ID's, and continue to be delete. (What I used to do). |
0 - 1(throwaway one) - 2
then when the server restarts, I set the model of id 1 to 411( or something i don't use ) and save it
when I load and spawn cars, I should avoid spawning all the cars with that model, so car 0's gonna be the same id, but since one's not gonna spawn anymore 2's gonna be one, and still saved as two, I don't think setting models will fix this, except if you actually spawn that car and hiding/deleting it later, which will also take alot of unnecessary space in the database.
this idea is good if you're going to delete and spawn cars which will take their space, but what if no cars are going to be spawned after it and overwrite the "411" model, you'll spawn a random car in the server