Unstable vehicles system?
#1

Well , my question is simple:


- Is better to create static vehicles for jobs , department of vehicles .
OR to create dynamic vehicles?

In the past i have been tried to create dynamic vehicles for every player , but sometimes the problem was:

- Somehow the player personal id got mistaken by a job car?!
... how is this even possible ? ... i mean there was nothing wrong in the script...
Reply
#2

Not sure what you mean by "dynamic vehicles." No such thing AFAIK. I use "CreateVehicle()" for every vehicle on the server. If you're loading them properly, they shouldn't be getting mixed-up ID's. Vehicle ID's start from 1 and each time AddStaticVehicle(Ex) or CreateVehicle() is called, that number continues to increase (there's always differences if you delete a vehicle and spawn a new one, though: that will take the ID of the vehicle you deleted if I remember correctly).

If you have some code, it might be a good idea to provide it so we can all take a look!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)