Vehicle Spawn Script or Programm

You can do vehicles 1 by 1 with TSW, are you wanting to do every vehicle on your server at once ?
If you have access to your database run this sql query :
Code:
UPDATE instance_vehicle SET fuel=1, damage=0, parts = '[]'
This will repair and refuel every vehicle that is currently spawned, future spawns will not be affected.
 
ok thats sounds nice, but how can i do this i found the sql query but idk want it had to write in the gaps
 
If you don't know what you're doing then i strongly suggest not doing it :) This is messing with your database so if you make a mistake you're f00ked :(

I use phpMyAdmin so i can show you through that, anything else i can't help you with.
 
Doing this via the database is easy enough, but anyone know how to do this through a script? I've figured out how to set damage back to 0, but after each server reboot the vehicles are back to normal damage states again. Also if you look at the vehicle dashboard, all is green, but outside on examination you can still see the damaged parts.. How do I set the parts themselves to repaired?
 
Back
Top