16.06.2014, 15:24
Let's say you spawn a vehicle and its vehicle ID is 5. You store that value to the variable and the vehicle gets destroyed. Another player (B) spawns a vehicle and its vehicle ID is 5 and it's stored to the variable. You try to set the vehicle's position but it sets the position for the other player (B).
Solution: Reset the variable when a vehicle is destroyed to INVALID_VEHICLE_ID.
Solution: Reset the variable when a vehicle is destroyed to INVALID_VEHICLE_ID.