#how to despawn empty vehicles

8 messages · Page 1 of 1 (latest)

frank grove
#

you need to develope a plugin and use the api of MTVehicles, this feature doesn't exist by default

#

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

frank grove
#
for (String license : VehicleUtils.getAllSpawnedVehiclePlates()) if (VehicleUtils.getCurrentDriver(license) == null) // do something