#how to despawn empty vehicles
8 messages · Page 1 of 1 (latest)
Wiki for the MTVehicles plugin
package index
this is the only stuff you can find, there isn't any wiki/tutorial for MTV API
but i can help u with despawning empty vehicles if you tried and couldn't figure out how to do it
all you need to do it is get all spawned vehicles in the world and check if they have any driver / passengers, if they don't, despawn them, all can be found in VehicleUtils class
yw
for (String license : VehicleUtils.getAllSpawnedVehiclePlates()) if (VehicleUtils.getCurrentDriver(license) == null) // do something