Assigning an ID to a Car - Car spawn on login
#1

Hello. There is an issue with my gamemode i am experiencing,
when a person buy's a vehicle the vehicle ID will be assigned as the latest bought car id + 1.

For example if there are 300 spawned / bought vehicles, the next bought vehicle will have the ID 301.

The problem is that: i want the owned car to be removed as soon as the owner disconnects,
and i want it to spawn when the person logs in, and the problem is that if there are currently 300 spawned cars
and the persons vehicle "ID" is 350 and the person logs in, it gets messed up and the script won't work properly.

Any idea of how i should solve this issue?

Is there a way to assign an ID to the spawned vehicle?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)