04.11.2013, 18:28
Change this:
if(IsValidObject(VehicleObject[0]))
to
if(!IsValidObject(VehicleObject[0]))
Right now, you're doing a check to see if the object is valid, and if it is, you end up creating it again.
if(IsValidObject(VehicleObject[0]))
to
if(!IsValidObject(VehicleObject[0]))
Right now, you're doing a check to see if the object is valid, and if it is, you end up creating it again.