well, for Scripthookdotnet i would do this:
set it on a tick, but use this
| CODE |
| world.getallvehicles() |
on an array for .vb it would look like this:
| CODE |
Dim vehicles as vehicle() = world.getallvehicles() for each vehicle as vehicle in vehicles if exists(vehicle) andalso vehicle isnot nothing then blah blah |