Replaced while loop with eventHandler in ws_fnc_betterVehicle