Per-player vehicles - Id's get mixed up (Car stealing problem)
#4

Quote:
Originally Posted by denNorske
Посмотреть сообщение
How can I prevent CreateVehicle to create one that is already taken? I can't do much about that part.
Also, that is part of what I'm tryin to achieve in first place, by assigning them in creation.
But it seems the id's mix up :/
Any examples? To prevent destroying old one if not unique?
I don't think you have understood what "CreateVehicle" returns, there is no way a vehicle created with "CreateVehicle" could have (somehow) the same id. If someone's vehicle is destroyed and their vehicle respawned, then just refresh the player's variable containing the id of the new vehicle's id.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)