Removing Vehicles

drek

New Member
Hey guys.

It's been a fun few days for me, I've made the jump from just playing dayz to buying a server and making a private hive chernarus. I've learned how to spawn vehicles via php script & whatnot which took some tinkering but works (no my host doens't have a user friendly gui to do so).

Anyways, long story short I accidentally ran a script twice and am spawning vehicles on top of each other. I figured the easy thing to do is just go into world_vehicle and delete the entry but it won't let me quoting "Cannot delete or update a parent row".

So, um, how do I remove vehicle spawns?
 
Sounds odd. Find the/a vehicle that has double spawn. Find it in vehicle, try to delete it. Now go to instance vehicle and delete it there, and thereafter to world vehicle. Should work :)
 
Are you sure I should be deleting the vehicle from 'vehicle' - wouldn't that effect the other spawns of the same type of vehicle?
 
Yes it would, however if you have created a new vehicle - Example a MV22 to ID 9000, you could delete that aswell in vehicle.
You are completely sure, that the instance_vehicle ID you deleted, are the same ID as in World_Vehicle?
 
Yeah the vehicle id was 1310, gone from instance, but still in world

Edit. I got it, I loaded up my Db in navicat instead of phpMyAdmin and was able to do it. Weird.
 
Back
Top