Repair all vehicles on restart?

Yes I know but I am still looking for this script for my new server. Do you happen to know where I can get it? I would really appreciate it :)
 
If you are running vannila you can just run MySQL commands

EG:

"UPDATE instance_vehicle SET fuel=1, damage=0, parts = '[]'"

(Remove the fuel =1 if you don't want them refueled)
 
Ok, but how do I run this on every restart of the server for all vehicles automatically?
 
I'm sorry i'm unsure how to repeat it, maybe if your on a TCadmin host you can use the schedule task?

Maybe another member can assist you :)

For now just run the command before the server restarts, if you want you can have all vehicles spawn repaired?
 
Does anyone know how to make this run on every restart instead of a scheduled task in SQL every 3 hours? I would love for it to be on restart, instead of a set timer. Thanks!
 
Back
Top