Dynamic Vehicle Issues
#10

Quote:
Originally Posted by FrankTimber
Посмотреть сообщение
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).
so lets say I spawned 3 cars, two are normal cars and one's a throwaway, ids gonna be
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
Reply


Messages In This Thread
Dynamic Vehicle Issues - by BornHuman - 18.07.2014, 02:59
Re: Dynamic Vehicle Issues - by GeekSiMo - 18.07.2014, 03:05
Re: Dynamic Vehicle Issues - by BornHuman - 18.07.2014, 03:09
Re: Dynamic Vehicle Issues - by BornHuman - 18.07.2014, 17:18
Re: Dynamic Vehicle Issues - by BornHuman - 20.07.2014, 18:50
Re: Dynamic Vehicle Issues - by Scottas - 20.07.2014, 20:09
Re: Dynamic Vehicle Issues - by Bob007 - 22.07.2015, 18:28
Re: Dynamic Vehicle Issues - by xVIP3Rx - 22.07.2015, 19:46
Re: Dynamic Vehicle Issues - by FrankTimber - 22.07.2015, 20:58
Re: Dynamic Vehicle Issues - by xVIP3Rx - 22.07.2015, 21:17

Forum Jump:


Users browsing this thread: 2 Guest(s)